code: def get_process_token():
  	
  	token = wintypes.HANDLE()
  	res = process.OpenProcessToken(
  		process.GetCurrentProcess(), process.TOKEN_ALL_ACCESS, token)
  	if not res > 0:
  		raise RuntimeError("Couldn't get process token")
  	return token
docs: Get the current process token