def is_process_64_from_handle(hProcess):
""" Take a process handle. return True if process is 64 bits, and False otherwise. """
iswow64 = c_bool(False)
if IsWow64Process is None:
return False
if not IsWow64Process(hProcess, byref(iswow64)):
raise WinError()
return not iswow64.value
评论列表
文章目录