dllhook/example/see_process.py

9 lines
164 B
Python

import ctypes
import dllhook
@dllhook.hook_dll('Kernel32.dll', b'CreateProcessW')
def see_process(arg1):
if arg1 != 0:
print(ctypes.wstring_at(arg1))