def enable_debug_privilege():
<EOL>size = ctypes.sizeof(TOKEN_PRIVILEGES)<EOL>size += ctypes.sizeof(LUID_AND_ATTRIBUTES)<EOL>buffer = ctypes.create_string_buffer(size)<EOL>tp = ctypes.cast(buffer, ctypes.POINTER(TOKEN_PRIVILEGES)).contents<EOL>tp.count = <NUM_LIT:1><EOL>tp.get_array()[<NUM_LIT:0>].enable()<EOL>tp.get_array()[<NUM_LIT:0>].LUID = get_debug_luid()<EOL>token = get_process_token()<EOL>res = AdjustTokenPrivileges(token, False, tp, <NUM_LIT:0>, None, None)<EOL>if res == <NUM_LIT:0>:<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>ERROR_NOT_ALL_ASSIGNED = <NUM_LIT><EOL>return ctypes.windll.kernel32.GetLastError() != ERROR_NOT_ALL_ASSIGNED<EOL>
Try to assign the symlink privilege to the current process token.
Return True if the assignment is successful.