mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
New ntstatus.py with ntstatus definition for NtDllProxy
This commit is contained in:
File diff suppressed because it is too large
Load Diff
+2
-1
@@ -5,6 +5,7 @@ from ctypes.wintypes import *
|
||||
from windows.generated_def.winstructs import *
|
||||
from windows.generated_def.windef import *
|
||||
import windows.generated_def.winfuncs as winfuncs
|
||||
from windows.generated_def.ntstatus import NtStatusException
|
||||
from windows.dbgprint import dbgprint
|
||||
|
||||
|
||||
@@ -74,7 +75,7 @@ def iphlpapi_error_check(func_name, result, func, args):
|
||||
|
||||
def error_ntstatus(func_name, result, func, args):
|
||||
if result:
|
||||
raise WindowsError("{0} failed with ntstatus <{1}>".format(func_name, hex(result & 0xffffffff)))
|
||||
raise NtStatusException(result & 0xffffffff)
|
||||
return args
|
||||
|
||||
class ExportNotFound(AttributeError):
|
||||
|
||||
Reference in New Issue
Block a user