mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Add winproxy.MessageBox[AW]
This commit is contained in:
@@ -1632,4 +1632,20 @@ BOOL WINAPI UpdateProcThreadAttribute(
|
||||
|
||||
VOID WINAPI DeleteProcThreadAttributeList(
|
||||
_Inout_ LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList
|
||||
);
|
||||
);
|
||||
|
||||
|
||||
INT WINAPI MessageBoxA(
|
||||
_In_opt_ HWND hWnd,
|
||||
_In_opt_ LPCSTR lpText,
|
||||
_In_opt_ LPCSTR lpCaption,
|
||||
_In_ UINT uType
|
||||
);
|
||||
|
||||
|
||||
INT WINAPI MessageBoxW(
|
||||
_In_opt_ HWND hWnd,
|
||||
_In_opt_ LPWSTR lpText,
|
||||
_In_opt_ LPWSTR lpCaption,
|
||||
_In_ UINT uType
|
||||
);
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1311,6 +1311,14 @@ def WindowFromPoint(Point):
|
||||
def GetWindowRect(hWnd, lpRect):
|
||||
return GetWindowRect.ctypes_function(hWnd, lpRect)
|
||||
|
||||
@User32Proxy("MessageBoxA")
|
||||
def MessageBoxA(hWnd=0, lpText=NeededParameter, lpCaption=None, uType=0):
|
||||
return MessageBoxA.ctypes_function(hWnd, lpText, lpCaption, uType)
|
||||
|
||||
@User32Proxy("MessageBoxW")
|
||||
def MessageBoxW(hWnd=0, lpText=NeededParameter, lpCaption=None, uType=0):
|
||||
return MessageBoxW.ctypes_function(hWnd, lpText, lpCaption, uType)
|
||||
|
||||
# ## Version stuff ## #
|
||||
|
||||
@VersionProxy("GetFileVersionInfoA")
|
||||
|
||||
Reference in New Issue
Block a user