|
3025 | 3025 | LookupAccountNameWPrototype = WINFUNCTYPE(BOOL, LPCWSTR, LPCWSTR, PSID, LPDWORD, LPWSTR, LPDWORD, PSID_NAME_USE) |
3026 | 3026 | LookupAccountNameWParams = ((1, 'lpSystemName'), (1, 'lpAccountName'), (1, 'Sid'), (1, 'cbSid'), (1, 'ReferencedDomainName'), (1, 'cchReferencedDomainName'), (1, 'peUse')) |
3027 | 3027 |
|
| 3028 | +#def IsWow64Process(hProcess, Wow64Process): |
| 3029 | +# return IsWow64Process.ctypes_function(hProcess, Wow64Process) |
| 3030 | +IsWow64ProcessPrototype = WINFUNCTYPE(BOOL, HANDLE, PBOOL) |
| 3031 | +IsWow64ProcessParams = ((1, 'hProcess'), (1, 'Wow64Process')) |
| 3032 | + |
| 3033 | +#def IsWow64Process2(hProcess, pProcessMachine, pNativeMachine): |
| 3034 | +# return IsWow64Process2.ctypes_function(hProcess, pProcessMachine, pNativeMachine) |
| 3035 | +IsWow64Process2Prototype = WINFUNCTYPE(BOOL, HANDLE, POINTER(USHORT), POINTER(USHORT)) |
| 3036 | +IsWow64Process2Params = ((1, 'hProcess'), (1, 'pProcessMachine'), (1, 'pNativeMachine')) |
| 3037 | + |
| 3038 | +#def IsWow64GuestMachineSupported(WowGuestMachine, MachineIsSupported): |
| 3039 | +# return IsWow64GuestMachineSupported.ctypes_function(WowGuestMachine, MachineIsSupported) |
| 3040 | +IsWow64GuestMachineSupportedPrototype = WINFUNCTYPE(HRESULT, USHORT, POINTER(BOOL)) |
| 3041 | +IsWow64GuestMachineSupportedParams = ((1, 'WowGuestMachine'), (1, 'MachineIsSupported')) |
| 3042 | + |
| 3043 | +#def GetSystemWow64DirectoryA(lpBuffer, uSize): |
| 3044 | +# return GetSystemWow64DirectoryA.ctypes_function(lpBuffer, uSize) |
| 3045 | +GetSystemWow64DirectoryAPrototype = WINFUNCTYPE(UINT, LPSTR, UINT) |
| 3046 | +GetSystemWow64DirectoryAParams = ((1, 'lpBuffer'), (1, 'uSize')) |
| 3047 | + |
| 3048 | +#def GetSystemWow64DirectoryW(lpBuffer, uSize): |
| 3049 | +# return GetSystemWow64DirectoryW.ctypes_function(lpBuffer, uSize) |
| 3050 | +GetSystemWow64DirectoryWPrototype = WINFUNCTYPE(UINT, LPWSTR, UINT) |
| 3051 | +GetSystemWow64DirectoryWParams = ((1, 'lpBuffer'), (1, 'uSize')) |
| 3052 | + |
| 3053 | +#def GetSystemWow64Directory2A(lpBuffer, uSize, ImageFileMachineType): |
| 3054 | +# return GetSystemWow64Directory2A.ctypes_function(lpBuffer, uSize, ImageFileMachineType) |
| 3055 | +GetSystemWow64Directory2APrototype = WINFUNCTYPE(UINT, LPSTR, UINT, WORD) |
| 3056 | +GetSystemWow64Directory2AParams = ((1, 'lpBuffer'), (1, 'uSize'), (1, 'ImageFileMachineType')) |
| 3057 | + |
| 3058 | +#def GetSystemWow64Directory2W(lpBuffer, uSize, ImageFileMachineType): |
| 3059 | +# return GetSystemWow64Directory2W.ctypes_function(lpBuffer, uSize, ImageFileMachineType) |
| 3060 | +GetSystemWow64Directory2WPrototype = WINFUNCTYPE(UINT, LPWSTR, UINT, WORD) |
| 3061 | +GetSystemWow64Directory2WParams = ((1, 'lpBuffer'), (1, 'uSize'), (1, 'ImageFileMachineType')) |
| 3062 | + |
| 3063 | +#def Wow64DisableWow64FsRedirection(OldValue): |
| 3064 | +# return Wow64DisableWow64FsRedirection.ctypes_function(OldValue) |
| 3065 | +Wow64DisableWow64FsRedirectionPrototype = WINFUNCTYPE(BOOL, POINTER(PVOID)) |
| 3066 | +Wow64DisableWow64FsRedirectionParams = ((1, 'OldValue'),) |
| 3067 | + |
| 3068 | +#def Wow64EnableWow64FsRedirection(Wow64FsEnableRedirection): |
| 3069 | +# return Wow64EnableWow64FsRedirection.ctypes_function(Wow64FsEnableRedirection) |
| 3070 | +Wow64EnableWow64FsRedirectionPrototype = WINFUNCTYPE(BOOLEAN, BOOLEAN) |
| 3071 | +Wow64EnableWow64FsRedirectionParams = ((1, 'Wow64FsEnableRedirection'),) |
| 3072 | + |
| 3073 | +#def Wow64RevertWow64FsRedirection(OlValue): |
| 3074 | +# return Wow64RevertWow64FsRedirection.ctypes_function(OlValue) |
| 3075 | +Wow64RevertWow64FsRedirectionPrototype = WINFUNCTYPE(BOOL, PVOID) |
| 3076 | +Wow64RevertWow64FsRedirectionParams = ((1, 'OlValue'),) |
| 3077 | + |
| 3078 | +#def Wow64GetThreadContext(hThread, lpContext): |
| 3079 | +# return Wow64GetThreadContext.ctypes_function(hThread, lpContext) |
| 3080 | +Wow64GetThreadContextPrototype = WINFUNCTYPE(BOOL, HANDLE, PWOW64_CONTEXT) |
| 3081 | +Wow64GetThreadContextParams = ((1, 'hThread'), (1, 'lpContext')) |
| 3082 | + |
| 3083 | +#def Wow64SetThreadContext(hThread, lpContext): |
| 3084 | +# return Wow64SetThreadContext.ctypes_function(hThread, lpContext) |
| 3085 | +Wow64SetThreadContextPrototype = WINFUNCTYPE(BOOL, HANDLE, POINTER(WOW64_CONTEXT)) |
| 3086 | +Wow64SetThreadContextParams = ((1, 'hThread'), (1, 'lpContext')) |
| 3087 | + |
| 3088 | +#def Wow64SetThreadDefaultGuestMachine(Machine): |
| 3089 | +# return Wow64SetThreadDefaultGuestMachine.ctypes_function(Machine) |
| 3090 | +Wow64SetThreadDefaultGuestMachinePrototype = WINFUNCTYPE(USHORT, USHORT) |
| 3091 | +Wow64SetThreadDefaultGuestMachineParams = ((1, 'Machine'),) |
| 3092 | + |
| 3093 | +#def Wow64SuspendThread(hThread): |
| 3094 | +# return Wow64SuspendThread.ctypes_function(hThread) |
| 3095 | +Wow64SuspendThreadPrototype = WINFUNCTYPE(DWORD, HANDLE) |
| 3096 | +Wow64SuspendThreadParams = ((1, 'hThread'),) |
| 3097 | + |
| 3098 | +#def NtWow64ReadVirtualMemory64(hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesRead): |
| 3099 | +# return NtWow64ReadVirtualMemory64.ctypes_function(hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesRead) |
| 3100 | +NtWow64ReadVirtualMemory64Prototype = WINFUNCTYPE(NTSTATUS, HANDLE, ULONG64, LPVOID, ULONG64, PULONG64) |
| 3101 | +NtWow64ReadVirtualMemory64Params = ((1, 'hProcess'), (1, 'lpBaseAddress'), (1, 'lpBuffer'), (1, 'nSize'), (1, 'lpNumberOfBytesRead')) |
| 3102 | + |
| 3103 | +#def NtWow64WriteVirtualMemory64(hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesWritten): |
| 3104 | +# return NtWow64WriteVirtualMemory64.ctypes_function(hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesWritten) |
| 3105 | +NtWow64WriteVirtualMemory64Prototype = WINFUNCTYPE(NTSTATUS, HANDLE, ULONG64, LPVOID, ULONG64, PULONG64) |
| 3106 | +NtWow64WriteVirtualMemory64Params = ((1, 'hProcess'), (1, 'lpBaseAddress'), (1, 'lpBuffer'), (1, 'nSize'), (1, 'lpNumberOfBytesWritten')) |
| 3107 | + |
3028 | 3108 | #def FileTimeToSystemTime(lpFileTime, lpSystemTime): |
3029 | 3109 | # return FileTimeToSystemTime.ctypes_function(lpFileTime, lpSystemTime) |
3030 | 3110 | FileTimeToSystemTimePrototype = WINFUNCTYPE(BOOL, POINTER(FILETIME), LPSYSTEMTIME) |
|
3415 | 3495 | ReadProcessMemoryPrototype = WINFUNCTYPE(BOOL, HANDLE, LPCVOID, LPVOID, SIZE_T, POINTER(SIZE_T)) |
3416 | 3496 | ReadProcessMemoryParams = ((1, 'hProcess'), (1, 'lpBaseAddress'), (1, 'lpBuffer'), (1, 'nSize'), (1, 'lpNumberOfBytesRead')) |
3417 | 3497 |
|
3418 | | -#def NtWow64ReadVirtualMemory64(hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesRead): |
3419 | | -# return NtWow64ReadVirtualMemory64.ctypes_function(hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesRead) |
3420 | | -NtWow64ReadVirtualMemory64Prototype = WINFUNCTYPE(NTSTATUS, HANDLE, ULONG64, LPVOID, ULONG64, PULONG64) |
3421 | | -NtWow64ReadVirtualMemory64Params = ((1, 'hProcess'), (1, 'lpBaseAddress'), (1, 'lpBuffer'), (1, 'nSize'), (1, 'lpNumberOfBytesRead')) |
3422 | | - |
3423 | 3498 | #def WriteProcessMemory(hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesWritten): |
3424 | 3499 | # return WriteProcessMemory.ctypes_function(hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesWritten) |
3425 | 3500 | WriteProcessMemoryPrototype = WINFUNCTYPE(BOOL, HANDLE, LPVOID, LPCVOID, SIZE_T, POINTER(SIZE_T)) |
3426 | 3501 | WriteProcessMemoryParams = ((1, 'hProcess'), (1, 'lpBaseAddress'), (1, 'lpBuffer'), (1, 'nSize'), (1, 'lpNumberOfBytesWritten')) |
3427 | 3502 |
|
3428 | | -#def NtWow64WriteVirtualMemory64(hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesWritten): |
3429 | | -# return NtWow64WriteVirtualMemory64.ctypes_function(hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesWritten) |
3430 | | -NtWow64WriteVirtualMemory64Prototype = WINFUNCTYPE(NTSTATUS, HANDLE, ULONG64, LPVOID, ULONG64, PULONG64) |
3431 | | -NtWow64WriteVirtualMemory64Params = ((1, 'hProcess'), (1, 'lpBaseAddress'), (1, 'lpBuffer'), (1, 'nSize'), (1, 'lpNumberOfBytesWritten')) |
3432 | | - |
3433 | 3503 | #def GetCurrentProcess(): |
3434 | 3504 | # return GetCurrentProcess.ctypes_function() |
3435 | 3505 | GetCurrentProcessPrototype = WINFUNCTYPE(HANDLE) |
|
3660 | 3730 | DeviceIoControlPrototype = WINFUNCTYPE(BOOL, HANDLE, DWORD, LPVOID, DWORD, LPVOID, DWORD, LPDWORD, LPOVERLAPPED) |
3661 | 3731 | DeviceIoControlParams = ((1, 'hDevice'), (1, 'dwIoControlCode'), (1, 'lpInBuffer'), (1, 'nInBufferSize'), (1, 'lpOutBuffer'), (1, 'nOutBufferSize'), (1, 'lpBytesReturned'), (1, 'lpOverlapped')) |
3662 | 3732 |
|
3663 | | -#def Wow64DisableWow64FsRedirection(OldValue): |
3664 | | -# return Wow64DisableWow64FsRedirection.ctypes_function(OldValue) |
3665 | | -Wow64DisableWow64FsRedirectionPrototype = WINFUNCTYPE(BOOL, POINTER(PVOID)) |
3666 | | -Wow64DisableWow64FsRedirectionParams = ((1, 'OldValue'),) |
3667 | | - |
3668 | | -#def Wow64RevertWow64FsRedirection(OldValue): |
3669 | | -# return Wow64RevertWow64FsRedirection.ctypes_function(OldValue) |
3670 | | -Wow64RevertWow64FsRedirectionPrototype = WINFUNCTYPE(BOOL, PVOID) |
3671 | | -Wow64RevertWow64FsRedirectionParams = ((1, 'OldValue'),) |
3672 | | - |
3673 | | -#def Wow64EnableWow64FsRedirection(Wow64FsEnableRedirection): |
3674 | | -# return Wow64EnableWow64FsRedirection.ctypes_function(Wow64FsEnableRedirection) |
3675 | | -Wow64EnableWow64FsRedirectionPrototype = WINFUNCTYPE(BOOLEAN, BOOLEAN) |
3676 | | -Wow64EnableWow64FsRedirectionParams = ((1, 'Wow64FsEnableRedirection'),) |
3677 | | - |
3678 | | -#def Wow64GetThreadContext(hThread, lpContext): |
3679 | | -# return Wow64GetThreadContext.ctypes_function(hThread, lpContext) |
3680 | | -Wow64GetThreadContextPrototype = WINFUNCTYPE(BOOL, HANDLE, PWOW64_CONTEXT) |
3681 | | -Wow64GetThreadContextParams = ((1, 'hThread'), (1, 'lpContext')) |
3682 | | - |
3683 | 3733 | #def SetConsoleCtrlHandler(HandlerRoutine, Add): |
3684 | 3734 | # return SetConsoleCtrlHandler.ctypes_function(HandlerRoutine, Add) |
3685 | 3735 | SetConsoleCtrlHandlerPrototype = WINFUNCTYPE(BOOL, PHANDLER_ROUTINE, BOOL) |
|
3815 | 3865 | GetProcessIdPrototype = WINFUNCTYPE(DWORD, HANDLE) |
3816 | 3866 | GetProcessIdParams = ((1, 'Process'),) |
3817 | 3867 |
|
3818 | | -#def Wow64SetThreadContext(hThread, lpContext): |
3819 | | -# return Wow64SetThreadContext.ctypes_function(hThread, lpContext) |
3820 | | -Wow64SetThreadContextPrototype = WINFUNCTYPE(BOOL, HANDLE, POINTER(WOW64_CONTEXT)) |
3821 | | -Wow64SetThreadContextParams = ((1, 'hThread'), (1, 'lpContext')) |
3822 | | - |
3823 | 3868 | #def GetMappedFileNameW(hProcess, lpv, lpFilename, nSize): |
3824 | 3869 | # return GetMappedFileNameW.ctypes_function(hProcess, lpv, lpFilename, nSize) |
3825 | 3870 | GetMappedFileNameWPrototype = WINFUNCTYPE(DWORD, HANDLE, LPVOID, PVOID, DWORD) |
|
0 commit comments