Browse Source

Fixed GetDesktopWindow() return type.

woollybah 9 years ago
parent
commit
78601eee11
2 changed files with 6 additions and 3 deletions
  1. 5 3
      win32.mod/user32.bmx
  2. 1 0
      win32.mod/user32.x

+ 5 - 3
win32.mod/user32.bmx

@@ -1137,8 +1137,8 @@ Function RegisterClassA( lpWndClass:Byte Ptr )
 Function RegisterClassW( lpWndClass:Byte Ptr )
 Function CreateWindowExA:Byte Ptr( dwExStyle,lpClassName:Byte Ptr,lpWindowName:Byte Ptr,dwStyle,x,y,nWidth,nHeight,hWndParent,hmenu:Byte Ptr,hInstance:Byte Ptr,lpParam:Byte Ptr )
 Function CreateWindowExW:Byte Ptr( dwExStyle,lpClassName$w,lpWindowName$w,dwStyle,x,y,nWidth,nHeight,hWndParent:Byte Ptr,hmenu:Byte Ptr,hInstance:Byte Ptr,lpParam:Byte Ptr )
-Function DefWindowProcA:Byte Ptr( hWnd:Byte Ptr,MSG,wParam:Byte Ptr,lParam:Byte Ptr )
-Function DefWindowProcW:Byte Ptr( hWnd:Byte Ptr,MSG,wParam:Byte Ptr,lParam:Byte Ptr )
+Function DefWindowProcA:Byte Ptr( hWnd:Byte Ptr,MSG:UInt,wParam:Byte Ptr,lParam:Byte Ptr )
+Function DefWindowProcW:Byte Ptr( hWnd:Byte Ptr,MSG:UInt,wParam:Byte Ptr,lParam:Byte Ptr )
 Function DispatchMessageA( lpMsg:Byte Ptr )
 Function DispatchMessageW( lpMsg:Byte Ptr )
 Function GetMessageA( lpMsg:Byte Ptr,hWnd:Byte Ptr,wMsgFilterMin,wMsgFilterMax )
@@ -1170,7 +1170,7 @@ Function GetProcAddress:Byte Ptr( libhandle:Byte Ptr,func$z )
 Function LoadLibraryW:Byte Ptr( dll$w )
 Function GetClientRect( hWnd:Byte Ptr,lpRect:Int Ptr )
 Function GetWindowRect( hWnd:Byte Ptr,lpRect:Int Ptr )
-Function GetDesktopWindow()
+Function GetDesktopWindow:Byte Ptr()
 Function AdjustWindowRect( rect:Int Ptr,style,menu )
 Function AdjustWindowRectEx( rect:Int Ptr,style,menu:Byte Ptr,exstyle )
 Function ClientToScreen( hWnd:Byte Ptr,point:Byte Ptr )
@@ -1261,6 +1261,8 @@ Function GetModuleFileNameW:Int( hmodule:Byte Ptr, buffer:Short Ptr, sz:Int)
 Function GetWindowModuleFileNameW:UInt(hwnd:Byte Ptr, lpszFileName:Short Ptr, cchFileNameMax:UInt)
 Function GetClassNameW:Int( hwnd:Byte Ptr, dst:Short Ptr, maxlen:Int)
 
+Function MessageBoxW:Int(hWnd:Byte Ptr, lpText:Short Ptr, lpCaption:Short Ptr, uType:UInt)
+
 'shellapi
 
 Function DragAcceptFiles(hWnd:Byte Ptr,fAccept)

+ 1 - 0
win32.mod/user32.x

@@ -125,3 +125,4 @@ DWORD __stdcall GetModuleFileNameW(HMODULE , LPWSTR , DWORD )!
 int __stdcall GetWindowTextA(HWND ,LPSTR ,int )!
 int __stdcall GetWindowTextW(HWND ,LPWSTR ,int )!
 int __stdcall GetClassNameW(HWND ,LPWSTR ,int )!
+int __stdcall MessageBoxW(HWND ,LPCWSTR ,LPCWSTR ,UINT )!