diff --git a/k32testing.py b/k32testing.py index 18efd0f..4eed467 100644 --- a/k32testing.py +++ b/k32testing.py @@ -374,6 +374,11 @@ def DeviceIoControl(hDevice, dwIoControlCode, lpInBuffer, nInBufferSize=None, lp def NtWow64ReadVirtualMemory64(hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesRead=None): return NtWow64ReadVirtualMemory64.ctypes_function(hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesRead) +@NtdllProxy('NtQuerySystemInformation') +def NtQuerySystemInformation(SystemInformationClass, SystemInformation=None, SystemInformationLength=0, ReturnLength=NeededParameter): + if SystemInformation is not None and SystemInformation == 0: + SystemInformationLength = ctypes.sizeof(SystemInformation) + return NtQuerySystemInformation.ctypes_function(SystemInformationClass, SystemInformation, SystemInformationLength, ReturnLength) ###### ADVAPI32 ########