Skip to content

Commit

Permalink
Regenerate ctypes
Browse files Browse the repository at this point in the history
  • Loading branch information
hakril committed Jan 8, 2025
1 parent 9bd9ddb commit 68ea3c3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions windows/generated_def/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,13 @@
'EXIT_THREAD_DEBUG_EVENT',
'EXPORT_PRIVATE_KEYS',
'EXTENDED_STARTUPINFO_PRESENT',
'FACILITY_DISPATCH',
'FACILITY_ITF',
'FACILITY_NULL',
'FACILITY_RPC',
'FACILITY_STORAGE',
'FACILITY_WIN32',
'FACILITY_WINDOWS',
'FAILED_ACCESS_ACE_FLAG',
'FAX_CONFIG_QUERY',
'FAX_CONFIG_SET',
Expand Down Expand Up @@ -3006,6 +3013,8 @@
'STARTF_USESHOWWINDOW',
'STARTF_USESIZE',
'STARTF_USESTDHANDLES',
'STATUS_SEVERITY_COERROR',
'STATUS_SEVERITY_SUCCESS',
'STD_ERROR_HANDLE',
'STD_INPUT_HANDLE',
'STD_OUTPUT_HANDLE',
Expand Down
16 changes: 16 additions & 0 deletions windows/generated_def/windef.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@

def CTL_CODE(DeviceType, Function, Method, Access):
return (((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method))

# https://learn.microsoft.com/en-us/windows/win32/api/winerror/nf-winerror-hresult_facility
# Original MACRO:
# #define HRESULT_FACILITY(hr) (((hr) >> 16) & 0x1fff)

def HRESULT_FACILITY(hr):
return (((hr) >> 16) & 0x1fff)
from .ntstatus import *
from .winerror import *
BG_JOB_ENUM_ALL_USERS = make_flag("BG_JOB_ENUM_ALL_USERS", 0x0001)
Expand Down Expand Up @@ -516,6 +523,15 @@ def CTL_CODE(DeviceType, Function, Method, Access):
ERROR_SEVERITY_INFORMATIONAL = make_flag("ERROR_SEVERITY_INFORMATIONAL", 0x40000000)
ERROR_SEVERITY_WARNING = make_flag("ERROR_SEVERITY_WARNING", 0x80000000)
ERROR_SEVERITY_ERROR = make_flag("ERROR_SEVERITY_ERROR", 0xC0000000)
FACILITY_WINDOWS = make_flag("FACILITY_WINDOWS", 0x8)
FACILITY_WIN32 = make_flag("FACILITY_WIN32", 0x7)
FACILITY_STORAGE = make_flag("FACILITY_STORAGE", 0x3)
FACILITY_RPC = make_flag("FACILITY_RPC", 0x1)
FACILITY_NULL = make_flag("FACILITY_NULL", 0x0)
FACILITY_ITF = make_flag("FACILITY_ITF", 0x4)
FACILITY_DISPATCH = make_flag("FACILITY_DISPATCH", 0x2)
STATUS_SEVERITY_SUCCESS = make_flag("STATUS_SEVERITY_SUCCESS", 0x0)
STATUS_SEVERITY_COERROR = make_flag("STATUS_SEVERITY_COERROR", 0x2)
EVENT_TRACE_FLAG_DISPATCHER = make_flag("EVENT_TRACE_FLAG_DISPATCHER", 0x00000800)
EVENT_TRACE_FLAG_VIRTUAL_ALLOC = make_flag("EVENT_TRACE_FLAG_VIRTUAL_ALLOC", 0x00004000)
EVENT_TRACE_FLAG_VAMAP = make_flag("EVENT_TRACE_FLAG_VAMAP", 0x00008000)
Expand Down

0 comments on commit 68ea3c3

Please sign in to comment.