Changeset 141 for Include/api_window.sbp
- Timestamp:
- Mar 8, 2007, 10:42:50 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/api_window.sbp
r137 r141 5 5 #define _INC_WINDOW 6 6 7 '------------- 8 ' Window API Function Names 7 9 #ifdef UNICODE 8 10 Const _FuncName_CreateWindowEx = "CreateWindowExW" 11 Const _FuncName_CallWindowProc = "CallWindowProcW" 12 Const _FuncName_CharLower = "CharLowerW" 13 Const _FuncName_CharUpper = "CharUpperW" 14 Const _FuncName_DefWindowProc = "DefWindowProcW" 15 Const _FuncName_DispatchMessage = "DispatchMessageW" 16 Const _FuncName_DrawText = "DrawTextW" 17 Const _FuncName_DrawTextEx = "DrawTextExW" 18 Const _FuncName_FindWindow = "FindWindowW" 19 Const _FuncName_FindWindowEx = "FindWindowExW" 20 Const _FuncName_GetClassInfoEx = "GetClassInfoExW" 21 Const _FuncName_GetClassLong = "GetClassLongW" 22 Const _FuncName_GetClassLongPtr = "GetClassLongPtrW" 23 Const _FuncName_GetClassName = "GetClassNameW" 24 Const _FuncName_GetClipboardFormatName = "GetClipboardFormatNameW" 25 Const _FuncName_GetDlgItemText = "GetDlgItemTextW" 26 Const _FuncName_GetMenuItemInfo = "GetMenuItemInfoW" 27 Const _FuncName_GetMessage = "GetMessageW" 28 Const _FuncName_GetProp = "GetPropW" 29 Const _FuncName_GetWindowLong = "GetWindowLongW" 30 Const _FuncName_GetWindowLongPtr = "GetWindowLongPtrW" 31 Const _FuncName_GetWindowText = "GetWindowTextW" 32 Const _FuncName_GetWindowTextLength = "GetWindowTextLengthW" 33 Const _FuncName_InsertMenuItem = "InsertMenuItemW" 34 Const _FuncName_IsCharAlpha = "IsCharAlphaW" 35 Const _FuncName_IsCharAlphaNumeric = "IsCharAlphaNumericW" 36 Const _FuncName_IsCharLower = "IsCharLowerW" 37 Const _FuncName_IsCharUpper = "IsCharUpperW" 38 Const _FuncName_IsDialogMessage = "IsDialogMessageW" 39 Const _FuncName_LoadBitmap = "LoadBitmapW" 40 Const _FuncName_LoadCursor = "LoadCursorW" 41 Const _FuncName_LoadCursorFromFile = "LoadCursorFromFileW" 42 Const _FuncName_LoadIcon = "LoadIconW" 43 Const _FuncName_LoadImage = "LoadImageW" 44 Const _FuncName_PeekMessage = "PeekMessageW" 45 Const _FuncName_PostMessage = "PostMessageW" 46 Const _FuncName_PostThreadMessage = "PostThreadMessageW" 9 47 Const _FuncName_RegisterClassEx = "RegisterClassExW" 48 Const _FuncName_RegisterClipboardFormat = "RegisterClipboardFormatW" 49 Const _FuncName_RegisterWindowMessage = "RegisterWindowMessageW" 50 Const _FuncName_RemoveProp = "RemovePropW" 51 Const _FuncName_SendDlgItemMessage = "SendDlgItemMessageW" 52 Const _FuncName_SendMessage = "SendMessageW" 53 Const _FuncName_SendNotifyMessage = "SendNotifyMessageW" 54 Const _FuncName_SetDlgItemText = "SetDlgItemTextW" 55 Const _FuncName_SetClassLong = "SetClassLongW" 56 Const _FuncName_SetClassLong = "SetClassLongW" 57 Const _FuncName_SetMenuItemInfo = "SetMenuItemInfoW" 58 Const _FuncName_SetProp = "SetPropW" 59 Const _FuncName_SetWindowLong = "SetWindowLongW" 60 Const _FuncName_SetWindowLongPtr = "SetWindowLongPtrW" 61 Const _FuncName_SetWindowText = "SetWindowTextW" 62 Const _FuncName_SystemParametersInfo = "SystemParametersInfoW" 63 Const _FuncName_UnregisterClass = "UnregisterClassW" 64 Const _FuncName_wsprintf = "wsprintfW" 65 Const _FuncName_wvsprintf = "wvsprintfW" 10 66 #else 11 67 Const _FuncName_CreateWindowEx = "CreateWindowExA" 68 Const _FuncName_CallWindowProc = "CallWindowProcA" 69 Const _FuncName_CharLower = "CharLowerA" 70 Const _FuncName_CharUpper = "CharUpperA" 71 Const _FuncName_DefWindowProc = "DefWindowProcA" 72 Const _FuncName_DispatchMessage = "DispatchMessageA" 73 Const _FuncName_DrawText = "DrawTextA" 74 Const _FuncName_DrawTextEx = "DrawTextExA" 75 Const _FuncName_FindWindow = "FindWindowA" 76 Const _FuncName_FindWindowEx = "FindWindowExA" 77 Const _FuncName_GetClassInfoEx = "GetClassInfoExA" 78 Const _FuncName_GetClassLong = "GetClassLongA" 79 Const _FuncName_GetClassLongPtr = "GetClassLongPtrA" 80 Const _FuncName_GetClassName = "GetClassNameA" 81 Const _FuncName_GetClipboardFormatName = "GetClipboardFormatNameA" 82 Const _FuncName_GetDlgItemText = "GetDlgItemTextA" 83 Const _FuncName_GetMenuItemInfo = "GetMenuItemInfoA" 84 Const _FuncName_GetMessage = "GetMessageA" 85 Const _FuncName_GetProp = "GetPropA" 86 Const _FuncName_GetWindowLong = "GetWindowLongA" 87 Const _FuncName_GetWindowLongPtr = "GetWindowLongPtrA" 88 Const _FuncName_GetWindowText = "GetWindowTextA" 89 Const _FuncName_GetWindowTextLength = "GetWindowTextLengthA" 90 Const _FuncName_InsertMenuItem = "InsertMenuItemA" 91 Const _FuncName_IsCharAlpha = "IsCharAlphaA" 92 Const _FuncName_IsCharAlphaNumeric = "IsCharAlphaNumericA" 93 Const _FuncName_IsCharLower = "IsCharLowerA" 94 Const _FuncName_IsCharUpper = "IsCharUpperA" 95 Const _FuncName_IsDialogMessage = "IsDialogMessageA" 96 Const _FuncName_LoadBitmap = "LoadBitmapA" 97 Const _FuncName_LoadCursor = "LoadCursorA" 98 Const _FuncName_LoadCursorFromFile = "LoadCursorFromFileA" 99 Const _FuncName_LoadIcon = "LoadIconA" 100 Const _FuncName_LoadImage = "LoadImageA" 101 Const _FuncName_PeekMessage = "PeekMessageA" 102 Const _FuncName_PostMessage = "PostMessageA" 103 Const _FuncName_PostThreadMessage = "PostThreadMessageA" 12 104 Const _FuncName_RegisterClassEx = "RegisterClassExA" 105 Const _FuncName_RegisterClipboardFormat = "RegisterClipboardFormatA" 106 Const _FuncName_RegisterWindowMessage = "RegisterWindowMessageA" 107 Const _FuncName_RemoveProp = "RemovePropA" 108 Const _FuncName_SendDlgItemMessage = "SendDlgItemMessageA" 109 Const _FuncName_SendMessage = "SendMessageA" 110 Const _FuncName_SendNotifyMessage = "SendNotifyMessageA" 111 Const _FuncName_SetDlgItemText = "SetDlgItemTextA" 112 Const _FuncName_SetClassLong = "SetClassLongA" 113 Const _FuncName_SetClassLongPtr = "SetClassLongPtrA" 114 Const _FuncName_SetMenuItemInfo = "SetMenuItemInfoA" 115 Const _FuncName_SetProp = "SetPropA" 116 Const _FuncName_SetWindowLong = "SetWindowLongA" 117 Const _FuncName_SetWindowLongPtr = "SetWindowLongPtrA" 118 Const _FuncName_SetWindowText = "SetWindowTextA" 119 Const _FuncName_SystemParametersInfo = "SystemParametersInfoA" 120 Const _FuncName_UnregisterClass = "UnregisterClassA" 121 Const _FuncName_wsprintf = "wsprintfA" 122 Const _FuncName_wvsprintf = "wvsprintfA" 13 123 #endif 14 124 … … 26 136 27 137 28 Const MAKEINTRESOURCE(i) = i As PCSTR 138 Const MAKEINTRESOURCEW(i) = i As PCWSTR 139 Const MAKEINTRESOURCEA(i) = i As PCSTR 140 Const MAKEINTRESOURCE(i) = i As PCTSTR 29 141 30 142 TypeDef WNDENUMPROC = *Function(ByVal hwnd As HWND, ByVal lParam As LPARAM) As BOOL … … 152 264 Const MFT_RIGHTJUSTIFY = MF_RIGHTJUSTIFY 153 265 154 Type MENUITEMINFO 266 Type MENUITEMINFOW 267 cbSize As DWord 268 fMask As DWord 269 fType As DWord 270 fState As DWord 271 wID As DWord 272 hSubMenu As HMENU 273 hbmpChecked As HBITMAP 274 hbmpUnchecked As HBITMAP 275 dwItemData As ULONG_PTR 276 dwTypeData As LPWSTR 277 cch As DWord 278 End Type 279 Type MENUITEMINFOA 155 280 cbSize As DWord 156 281 fMask As DWord … … 165 290 cch As DWord 166 291 End Type 167 292 #ifdef UNICODE 293 TypeDef MENUITEMINFO = MENUITEMINFOW 294 #else 295 TypeDef MENUITEMINFO = MENUITEMINFOA 296 #endif 168 297 169 298 '------------ … … 226 355 227 356 '------------- 228 ' Window API Function Names229 230 /*231 CreateWindowEx232 CallWindowProc233 DefWindowProc234 DispatchMessage235 DrawText236 DrawTextEx237 FindWindow238 FindWindowEx239 GetClassInfoEx240 GetClassLong241 GetClassLongPtr242 GetClassName243 GetClipboardFormatName244 GetDlgItemText245 GetMenuItemInfo246 GetMessage247 GetWindowLong248 GetWindowLongPtr249 GetWindowText250 GetWindowTextLength251 InsertMenuItem252 IsCharAlpha253 IsCharAlphaNumeric254 IsDialogMessage255 LoadBitmap256 LoadCursor257 LoadCursorFromFile258 LoadIcon259 LoadImage260 PeekMessage261 PostMessage262 PostThreadMessage263 RegisterClassEx264 RegisterClipboardFormat265 RegisterWindowMessage266 RemoveProp267 SendDlgItemMessage268 SendMessage269 SendNotifyMessage270 SetDlgItemText271 SetClassLong272 SetClassLong273 SetMenuItemInfo274 SetWindowLong275 SetWindowLongPtr276 SetWindowText277 SystemParametersInfo278 UnregisterClass279 wsprintf280 wvsprintf281 */282 283 '-------------284 357 ' Window API 285 358 … … 295 368 fRestore As BOOL 296 369 fIncUpdate As BOOL 297 rgbReserved (31)As Byte370 rgbReserved[ELM(32)] As Byte 298 371 End Type 299 372 Declare Function BeginPaint Lib "user32" (hWnd As HWND, ByRef Paint As PAINTSTRUCT) As HDC 300 373 301 374 Declare Function BringWindowToTop Lib "user32" (hWnd As HWND) As Long 302 Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA"(lpPrevWndFunc As WNDPROC, hWnd As HWND, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT303 Declare Function CharLower Lib "user32" Alias "CharLowerA" (lpsz As BytePtr) As DWord304 Declare Function CharUpper Lib "user32" Alias "CharUpperA" (lpsz As BytePtr) As DWord375 Declare Function CallWindowProc Lib "user32" Alias _FuncName_CallWindowProc (lpPrevWndFunc As WNDPROC, hWnd As HWND, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 376 Declare Function CharLower Lib "user32" Alias _FuncName_CharLower (psz As PTSTR) As DWord 377 Declare Function CharUpper Lib "user32" Alias _FuncName_CharUpper (psz As PTSTR) As DWord 305 378 Declare Function CheckMenuItem Lib "user32" (hMenu As HMENU, uIDCheckItem As DWord, uCheck As DWord) As DWord 306 379 Declare Function CheckMenuRadioItem Lib "user32" (hMenu As HMENU, idFirst As DWord, idLast As DWord, idCheck As DWord, uFlags As DWord) As BOOL … … 338 411 Declare Function CreateWindowEx Lib "user32" Alias _FuncName_CreateWindowEx (dwExStyle As DWord, pClassName As PCTSTR, lpWindowName As PCTSTR, dwStyle As DWord, x As Long, y As Long, nWidth As Long, nHeight As Long, hwndParent As HWND, hmenu As HMENU, hInstance As HINSTANCE, pParm As VoidPtr) As HWND 339 412 340 Declare Function DefWindowProc Lib "user32" Alias "DefWindowProcA"(hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT413 Declare Function DefWindowProc Lib "user32" Alias _FuncName_DefWindowProc (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 341 414 Declare Function DeleteMenu Lib "user32" (hMenu As HMENU, uPosition As DWord, uFlags As DWord) As BOOL 342 415 Declare Function DestroyCaret Lib "user32" () As BOOL … … 345 418 Declare Function DestroyMenu Lib "user32" (hMenu As HMENU) As BOOL 346 419 Declare Function DestroyWindow Lib "user32" (hWnd As HWND) As BOOL 347 Declare Function DispatchMessage Lib "user32" Alias "DispatchMessageA" (ByRef lpMsg As MSG) As LRESULT420 Declare Function DispatchMessage Lib "user32" Alias _FuncName_DispatchMessage (ByRef Msg As MSG) As LRESULT 348 421 349 422 Const BDR_RAISEDOUTER = &H0001 … … 447 520 Const DT_RTLREADING = &H00020000 448 521 Const DT_WORD_ELLIPSIS = &H00040000 449 Declare Function DrawText Lib "user32" Alias "DrawTextA" (hdc As HDC, lpStr As PCSTR, nCount As Long, ByRef lpRect As RECT, dwFormat As DWord) As BOOL522 Declare Function DrawText Lib "user32" Alias _FuncName_DrawText (hdc As HDC, lpStr As PCTSTR, nCount As Long, ByRef Rect As RECT, dwFormat As DWord) As BOOL 450 523 451 524 Type DRAWTEXTPARAMS … … 456 529 uiLengthDrawn As DWord 457 530 End Type 458 Declare Function DrawTextEx Lib "user32" Alias "DrawTextExA" (hdc As HDC, lpchText As PCSTR, cchText As Long, ByRef lpRect As RECT, dwDTFormat As DWord, ByRef lpDTParams As DRAWTEXTPARAMS) As BOOL531 Declare Function DrawTextEx Lib "user32" Alias _FuncName_DrawTextEx (hdc As HDC, pchText As PCTSTR, cchText As Long, ByRef Rect As RECT, dwDTFormat As DWord, ByRef DTParams As DRAWTEXTPARAMS) As BOOL 459 532 460 533 Declare Function EmptyClipboard Lib "user32" () As BOOL … … 478 551 Declare Function EnumWindows Lib "user32" (pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL 479 552 Declare Function FillRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT, hBrush As HBRUSH) As BOOL 480 Declare Function FindWindow Lib "user32" Alias "FindWindowA" (lpClassName As PCSTR, lpWindowName As PCSTR) As HWND481 Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (hwndParent As HWND, hwndChildAfter As HWND, pszClass As PCSTR, pszWindow As PCSTR) As HWND553 Declare Function FindWindow Lib "user32" Alias _FuncName_FindWindow (pClassName As PCTSTR, lpWindowName As PCTSTR) As HWND 554 Declare Function FindWindowEx Lib "user32" Alias _FuncName_FindWindowEx (hwndParent As HWND, hwndChildAfter As HWND, pszClass As PCTSTR, pszWindow As PCTSTR) As HWND 482 555 Declare Function FlashWindow Lib "user32" (hWnd As HWND, bInvert As BOOL) As BOOL 483 556 Declare Function FrameRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT, hBrush As HBRUSH) As Long … … 486 559 Declare Function GetCapture Lib "user32" () As HWND 487 560 Declare Function GetCaretPos Lib "user32" (ByRef lpPoint As POINTAPI) As BOOL 488 Declare Function GetClassInfoEx Lib "user32" Alias "GetClassInfoExA" (hInst As HINSTANCE, lpszClass As PCSTR, ByRef lpwcx As WNDCLASSEX) As BOOL561 Declare Function GetClassInfoEx Lib "user32" Alias _FuncName_GetClassInfoEx (hInst As HINSTANCE, pszClass As PCTSTR, ByRef lpwcx As WNDCLASSEX) As BOOL 489 562 490 563 Const GCL_MENUNAME = -8 … … 500 573 Const GCL_HICONSM = -34 501 574 #ifdef _WIN64 502 Declare Function GetClassLong Lib "user32" Alias "GetClassLongPtrA"(hWnd As HWND, nIndex As Long) As LONG_PTR503 Declare Function GetClassLongPtr Lib "user32" Alias "GetClassLongPtrA"(hWnd As HWND, nIndex As Long) As LONG_PTR575 Declare Function GetClassLong Lib "user32" Alias _FuncName_GetClassLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR 576 Declare Function GetClassLongPtr Lib "user32" Alias _FuncName_GetClassLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR 504 577 #else 505 Declare Function GetClassLong Lib "user32" Alias "GetClassLongA"(hWnd As HWND, nIndex As Long) As LONG_PTR506 Declare Function GetClassLongPtr Lib "user32" Alias "GetClassLongA"(hWnd As HWND, nIndex As Long) As LONG_PTR578 Declare Function GetClassLong Lib "user32" Alias _FuncName_GetClassLong (hWnd As HWND, nIndex As Long) As LONG_PTR 579 Declare Function GetClassLongPtr Lib "user32" Alias _FuncName_GetClassLong (hWnd As HWND, nIndex As Long) As LONG_PTR 507 580 #endif 508 581 509 Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (hWnd As HWND, lpClassName As PSTR, nMaxCount As Long) As Long582 Declare Function GetClassName Lib "user32" Alias _FuncName_GetClassName (hWnd As HWND, lpClassName As PTSTR, nMaxCount As Long) As Long 510 583 Declare Function GetClientRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL 511 584 Declare Function GetClipboardData Lib "user32" (uFormat As DWord) As HANDLE 512 Declare Function GetClipboardFormatName Lib "user32" Alias "GetClipboardFormatNameA" (uFormat As DWord, lpszFormatName As BytePtr, cchMaxCount As Long) As BOOL585 Declare Function GetClipboardFormatName Lib "user32" Alias _FuncName_GetClipboardFormatName (uFormat As DWord, pszFormatName As PTSTR, cchMaxCount As Long) As BOOL 513 586 Declare Function GetClipCursor Lib "user32" (ByRef lpRect As RECT) As BOOL 514 587 Declare Function GetCursor Lib "user32" () As HCURSOR … … 533 606 Declare Function GetDlgCtrlID Lib "user32" (hWnd As HWND) As Long 534 607 Declare Function GetDlgItem Lib "user32" (hDlg As HWND, nIDDlgItem As Long) As HWND 535 Declare Function GetDlgItemText Lib "user32" Alias "GetDlgItemTextA" (hDlg As HWND, nIDDlgItem As Long, lpString As PSTR, nMaxCount As Long) As Long608 Declare Function GetDlgItemText Lib "user32" Alias _FuncName_GetDlgItemText (hDlg As HWND, nIDDlgItem As Long, pString As PTSTR, nMaxCount As Long) As Long 536 609 Declare Function GetDoubleClickTime Lib "user32" () As DWord 537 610 Declare Function GetFocus Lib "user32" () As HWND … … 549 622 Declare Function GetMenuItemID Lib "user32" (hMenu As HMENU, nPos As Long) As DWord 550 623 Declare Function GetMenuItemCount Lib "user32" (hMenu As HMENU) As Long 551 Declare Function GetMenuItemInfo Lib "user32" Alias "GetMenuItemInfoA" (hMenu As HMENU, uItem As DWord, fByPosition As DWord, ByRef lpmii As MENUITEMINFO) As BOOL552 Declare Function GetMessage Lib "user32" Alias "GetMessageA" (ByRef lpMsg As MSG, hWnd As HWND, wMsgFilterMin As DWord, wMsgFilterMax As DWord) As Long624 Declare Function GetMenuItemInfo Lib "user32" Alias _FuncName_GetMenuItemInfo (hMenu As HMENU, uItem As DWord, fByPosition As DWord, ByRef mii As MENUITEMINFO) As BOOL 625 Declare Function GetMessage Lib "user32" Alias _FuncName_GetMessage (ByRef Msg As MSG, hWnd As HWND, wMsgFilterMin As DWord, wMsgFilterMax As DWord) As Long 553 626 Declare Function GetParent Lib "user32" (hWnd As HWND) As HWND 554 Declare Function GetProp Lib "user32" Alias "GetPropA" (hWnd As HWND, pString As PCSTR) As HANDLE627 Declare Function GetProp Lib "user32" Alias _FuncName_GetProp (hWnd As HWND, pString As PCTSTR) As HANDLE 555 628 Declare Function GetScrollInfo Lib "user32" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO) As BOOL 556 629 Declare Function GetSubMenu Lib "user32" (hMenu As HMENU, nPos As Long) As HMENU … … 708 781 709 782 #ifdef _WIN64 710 Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongPtrA"(hWnd As HWND, nIndex As Long) As LONG_PTR711 Declare Function GetWindowLongPtr Lib "user32" Alias "GetWindowLongPtrA"(hWnd As HWND, nIndex As Long) As LONG_PTR783 Declare Function GetWindowLong Lib "user32" Alias _FuncName_GetWindowLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR 784 Declare Function GetWindowLongPtr Lib "user32" Alias _FuncName_GetWindowLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR 712 785 #else 713 Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA"(hWnd As HWND, nIndex As Long) As LONG_PTR714 Declare Function GetWindowLongPtr Lib "user32" Alias "GetWindowLongA"(hWnd As HWND, nIndex As Long) As LONG_PTR786 Declare Function GetWindowLong Lib "user32" Alias _FuncName_GetWindowLong (hWnd As HWND, nIndex As Long) As LONG_PTR 787 Declare Function GetWindowLongPtr Lib "user32" Alias _FuncName_GetWindowLong (hWnd As HWND, nIndex As Long) As LONG_PTR 715 788 #endif 716 789 … … 729 802 Declare Function GetWindowRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL 730 803 Declare Function GetWindowRgn Lib "user32" (hWnd As HWND, hRgn As HRGN) As Long 731 Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (hWnd As HWND, lpString As PSTR, nMaxCount As Long) As Long732 Declare Function GetWindowTextLength Lib "user32" Alias "GetWindowTextLengthA"(hWnd As HWND) As Long733 Declare Function GetWindowThreadProcessId Lib "user32" (hWnd As HWND, lpdwProcessId As DWordPtr) As DWord804 Declare Function GetWindowText Lib "user32" Alias _FuncName_GetWindowText (hWnd As HWND, lpString As PTSTR, nMaxCount As Long) As Long 805 Declare Function GetWindowTextLength Lib "user32" Alias _FuncName_GetWindowTextLength (hWnd As HWND) As Long 806 Declare Function GetWindowThreadProcessId Lib "user32" (hWnd As HWND, pdwProcessId As *DWord) As DWord 734 807 Declare Function HideCaret Lib "user32" (hWnd As HWND) As BOOL 735 Declare Function InsertMenuItem Lib "user32" Alias "InsertMenuItemA" (hMenu As HMENU, uItem As DWord, fByPosition As BOOL, ByRef lpmii As MENUITEMINFO) As BOOL736 Declare Function InvalidateRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT, bErase As BOOL) As BOOL808 Declare Function InsertMenuItem Lib "user32" Alias _FuncName_InsertMenuItem (hMenu As HMENU, uItem As DWord, fByPosition As BOOL, ByRef mii As MENUITEMINFO) As BOOL 809 Declare Function InvalidateRect Lib "user32" (hWnd As HWND, ByRef Rect As RECT, bErase As BOOL) As BOOL 737 810 Declare Function InvalidateRgn Lib "user32" (hWnd As HWND, hRgn As HRGN, bErase As BOOL) As BOOL 738 811 Declare Function InvertRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT) As BOOL 739 Declare Function IsCharAlpha Lib "user32" Alias "IsCharAlphaA" (ch As Byte) As BOOL740 Declare Function IsCharAlphaNumeric Lib "user32" Alias "IsCharAlphaNumericA" (ch As Byte) As BOOL741 Declare Function IsCharLower Lib "user32" Alias "IsCharLowerA" (ch As Byte) As BOOL742 Declare Function IsCharUpper Lib "user32" Alias "IsCharUpperA" (ch As Byte) As BOOL812 Declare Function IsCharAlpha Lib "user32" Alias _FuncName_IsCharAlpha (ch As TCHAR) As BOOL 813 Declare Function IsCharAlphaNumeric Lib "user32" Alias _FuncName_IsCharAlphaNumeric (ch As TCHAR) As BOOL 814 Declare Function IsCharLower Lib "user32" Alias _FuncName_IsCharLower (ch As TCHAR) As BOOL 815 Declare Function IsCharUpper Lib "user32" Alias _FuncName_IsCharUpper (ch As TCHAR) As BOOL 743 816 Declare Function IsChild Lib "user32" (hWndParent As HWND, hWnd As HWND) As BOOL 744 Declare Function IsDialogMessage Lib "user32" Alias "IsDialogMessageA" (hDlg As HWND, ByRef ref_msg As MSG) As BOOL817 Declare Function IsDialogMessage Lib "user32" Alias _FuncName_IsDialogMessage (hDlg As HWND, ByRef msg As MSG) As BOOL 745 818 Declare Function IsIconic Lib "user32" (hWnd As HWND) As BOOL 746 819 Declare Function IsWindow Lib "user32" (hWnd As HWND) As BOOL … … 755 828 756 829 Declare Function KillTimer Lib "user32" (hWnd As HWND, nIDEvent As ULONG_PTR) As BOOL 757 Declare Function LoadBitmap Lib "user32" Alias "LoadBitmapA" (hInst As HINSTANCE, lpBitmapName As PCSTR) As HBITMAP830 Declare Function LoadBitmap Lib "user32" Alias _FuncName_LoadBitmap (hInst As HINSTANCE, pBitmapName As PCTSTR) As HBITMAP 758 831 759 832 Const IDC_ARROW = 32512 … … 773 846 Const IDC_APPSTARTING = 32650 774 847 Const IDC_HELP = 32651 775 Declare Function LoadCursor Lib "user32" Alias "LoadCursorA" (hInst As HINSTANCE, lpCursorName As PCSTR) As HCURSOR776 777 Declare Function LoadCursorFromFile Lib "user32" Alias "LoadCursorFromFileA" (lpFileName As PCSTR) As HCURSOR848 Declare Function LoadCursor Lib "user32" Alias _FuncName_LoadCursor (hInst As HINSTANCE, pCursorName As PCTSTR) As HCURSOR 849 850 Declare Function LoadCursorFromFile Lib "user32" Alias _FuncName_LoadCursorFromFile (pFileName As PCTSTR) As HCURSOR 778 851 779 852 Const IDI_APPLICATION = 32512 … … 783 856 Const IDI_ASTERISK = 32516 784 857 Const IDI_WINLOGO = 32517 785 Declare Function LoadIcon Lib "user32" Alias "LoadIconA" (hInst As HINSTANCE, lpIconName As PCSTR) As HICON858 Declare Function LoadIcon Lib "user32" Alias _FuncName_LoadIcon (hInst As HINSTANCE, pIconName As PCTSTR) As HICON 786 859 787 860 Const IMAGE_BITMAP = 0 … … 802 875 Const LR_COPYFROMRESOURCE = &H4000 803 876 Const LR_SHARED = &H8000 804 Declare Function LoadImage Lib "user32" Alias "LoadImageA" (hInst As HINSTANCE, lpszName As PCSTR, dwImageType As DWord, cxDesired As Long, cyDesired As Long, dwFlags As DWord) As HANDLE877 Declare Function LoadImage Lib "user32" Alias _FuncName_LoadImage (hinst As HINSTANCE, pszName As PCTSTR, dwImageType As DWord, cxDesired As Long, cyDesired As Long, dwFlags As DWord) As HANDLE 805 878 806 879 Declare Function LockWindowUpdate Lib "user32" (hWnd As HWND) As BOOL … … 842 915 Const MB_RTLREADING = &H00100000 843 916 #ifdef UNICODE 844 Declare Function MessageBox Lib "user32" Alias "MessageBoxW" (h Wnd As HWND, pText As PCWSTR, pCaption As PCWSTR, uType As DWord) As Long917 Declare Function MessageBox Lib "user32" Alias "MessageBoxW" (hwnd As HWND, pText As PCWSTR, pCaption As PCWSTR, uType As DWord) As Long 845 918 #else 846 Declare Function MessageBox Lib "user32" Alias "MessageBoxA" (h Wnd As HWND, pText As PCSTR, pCaption As PCSTR, uType As DWord) As Long919 Declare Function MessageBox Lib "user32" Alias "MessageBoxA" (hwnd As HWND, pText As PCSTR, pCaption As PCSTR, uType As DWord) As Long 847 920 #endif 848 921 Declare Function MessageBoxW Lib "user32" (hWnd As HWND, pText As PCWSTR, pCaption As PCWSTR, uType As DWord) As Long … … 865 938 Const PM_NOREMOVE = &H0000 866 939 Const PM_REMOVE = &H0001 867 Declare Function PeekMessage Lib "user32" Alias "PeekMessageA" (ByRef lpMsg As MSG, hWnd As HWND, wMsgFilterMin As DWord, wMsgFilterMax As DWord, wRemoveMsg As DWord) As BOOL940 Declare Function PeekMessage Lib "user32" Alias _FuncName_PeekMessage (ByRef Msg As MSG, hWnd As HWND, wMsgFilterMin As DWord, wMsgFilterMax As DWord, wRemoveMsg As DWord) As BOOL 868 941 869 942 Const HWND_BROADCAST = &HFFFF 870 Declare Function PostMessage Lib "user32" Alias "PostMessageA"(hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL943 Declare Function PostMessage Lib "user32" Alias _FuncName_PostMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL 871 944 872 945 Declare Sub PostQuitMessage Lib "user32" (nExitCode As Long) 873 Declare Function PostThreadMessage Lib "user32" Alias "PostThreadMessageA"(idThread As DWord, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL946 Declare Function PostThreadMessage Lib "user32" Alias _FuncName_PostThreadMessage (idThread As DWord, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL 874 947 875 948 Const RDW_INVALIDATE = &H0001 … … 888 961 889 962 Declare Function RegisterClassEx Lib "user32" Alias _FuncName_RegisterClassEx (ByRef wcx As WNDCLASSEX) As ATOM 890 Declare Function RegisterClipboardFormat Lib "user32" Alias "RegisterClipboardFormatA" (lpszFormat As PCSTR) As DWord891 Declare Function RegisterWindowMessage Lib "user32" Alias "RegisterWindowMessageA" (lpString As PCSTR) As DWord963 Declare Function RegisterClipboardFormat Lib "user32" Alias _FuncName_RegisterClipboardFormat (pszFormat As PCTSTR) As DWord 964 Declare Function RegisterWindowMessage Lib "user32" Alias _FuncName_RegisterWindowMessage (pString As PCTSTR) As DWord 892 965 Declare Function ReleaseCapture Lib "user32" () As BOOL 893 966 Declare Function ReleaseDC Lib "user32" (hWnd As HWND, hdc As HDC) As BOOL 894 967 Declare Function RemoveMenu Lib "user32" (hMenu As HMENU, uPosition As DWord, uFlags As DWord) As BOOL 895 Declare Function RemoveProp Lib "user32" Alias "RemovePropA" (hWnd As HWND, lpString As PCSTR) As HANDLE968 Declare Function RemoveProp Lib "user32" Alias _FuncName_RemoveProp (hWnd As HWND, pString As PCTSTR) As HANDLE 896 969 Declare Function TranslateMessage Lib "user32" (ByRef lpMsg As MSG) As Long 897 970 Declare Function ScreenToClient Lib "user32" (hWnd As HWND, ByRef lpPoint As POINTAPI) As BOOL … … 903 976 Declare Function ScrollWindowEx Lib "user32" (hWnd As HWND, dx As Long, dy As Long, ByRef rcScroll As RECT, ByRef rcClip As RECT, hrgnUpdate As HRGN, ByRef rcUpdate As RECT, flags As DWord) As BOOL 904 977 905 Declare Function SendDlgItemMessage Lib "user32" Alias "SendDlgItemMessageA"(hDlg As HWND, nIDDlgItem As Long, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT906 Declare Function SendMessage Lib "user32" Alias "SendMessageA"(hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT907 Declare Function SendNotifyMessage Lib "user32" Alias "SendNotifyMessageA"(hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT978 Declare Function SendDlgItemMessage Lib "user32" Alias _FuncName_SendDlgItemMessage (hDlg As HWND, nIDDlgItem As Long, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 979 Declare Function SendMessage Lib "user32" Alias _FuncName_SendMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 980 Declare Function SendNotifyMessage Lib "user32" Alias _FuncName_SendNotifyMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT 908 981 Declare Function SetActiveWindow Lib "user32" (hWnd As HWND) As HWND 909 Declare Function SetDlgItemText Lib "user32" Alias "SetDlgItemTextA" (hDlg As HWND, nIDDlgItem As Long, lpString As PCSTR) As BOOL982 Declare Function SetDlgItemText Lib "user32" Alias _FuncName_SetDlgItemText (hDlg As HWND, nIDDlgItem As Long, lpString As PCTSTR) As BOOL 910 983 Declare Function SetCapture Lib "user32" (hWnd As HWND) As HWND 911 984 Declare Function SetCaretPos Lib "user32" (x As Long, y As Long) As BOOL 912 985 913 986 #ifdef _WIN64 914 Declare Function SetClassLong Lib "user32" Alias "SetClassLongPtrA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR915 Declare Function SetClassLongPtr Lib "user32" Alias "SetClassLongPtrA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR987 Declare Function SetClassLong Lib "user32" Alias _FuncName_SetClassLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 988 Declare Function SetClassLongPtr Lib "user32" Alias _FuncName_SetClassLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 916 989 #else 917 Declare Function SetClassLong Lib "user32" Alias "SetClassLongA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR918 Declare Function SetClassLongPtr Lib "user32" Alias "SetClassLongA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR990 Declare Function SetClassLong Lib "user32" Alias _FuncName_SetClassLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 991 Declare Function SetClassLongPtr Lib "user32" Alias _FuncName_SetClassLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 919 992 #endif 920 993 … … 929 1002 Declare Function SetMenuContextHelpId Lib "user32" (hmenu As HMENU, dwContextHelpId As DWord) As BOOL 930 1003 Declare Function SetMenuDefaultItem Lib "user32" (hMenu As HMENU, uItem As DWord, fByPos As DWord) As BOOL 931 Declare Function SetMenuItemInfo Lib "user32" Alias "SetMenuItemInfoA" (hMenu As HMENU, uItem As DWord, fByPosition As BOOL, ByRef lpmii As MENUITEMINFO) As BOOL1004 Declare Function SetMenuItemInfo Lib "user32" Alias _FuncName_SetMenuItemInfo (hMenu As HMENU, uItem As DWord, fByPosition As BOOL, ByRef mii As MENUITEMINFO) As BOOL 932 1005 Declare Function SetParent Lib "user32" (hWndChild As HWND, hWndNewParent As HWND) As HWND 933 Declare Function SetProp Lib "user32" Alias "SetPropA" (hWnd As HWND, pString As PCSTR, hData As HANDLE) As BOOL1006 Declare Function SetProp Lib "user32" Alias _FuncName_SetProp (hWnd As HWND, pString As PCTSTR, hData As HANDLE) As BOOL 934 1007 Declare Function SetScrollInfo Lib "user32" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO, bRedraw As Long) As BOOL 935 1008 Declare Function SetSysColors Lib "user32" (cElements As Long, lpaElements As *DWord, lpaRgbValues As *DWord) As BOOL … … 941 1014 942 1015 #ifdef _WIN64 943 Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongPtrA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR944 Declare Function SetWindowLongPtr Lib "user32" Alias "SetWindowLongPtrA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR1016 Declare Function SetWindowLong Lib "user32" Alias _FuncName_SetWindowLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 1017 Declare Function SetWindowLongPtr Lib "user32" Alias _FuncName_SetWindowLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 945 1018 #else 946 Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR947 Declare Function SetWindowLongPtr Lib "user32" Alias "SetWindowLongA"(hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR1019 Declare Function SetWindowLong Lib "user32" Alias _FuncName_SetWindowLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 1020 Declare Function SetWindowLongPtr Lib "user32" Alias _FuncName_SetWindowLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR 948 1021 #endif 949 1022 … … 972 1045 973 1046 Declare Function SetWindowRgn Lib "user32" (hWnd As HWND, hRgn As HRGN, bRedraw As BOOL) As BOOL 974 Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (hWnd As HWND, pString As PCSTR) As BOOL1047 Declare Function SetWindowText Lib "user32" Alias _FuncName_SetWindowText (hWnd As HWND, pString As PCTSTR) As BOOL 975 1048 Declare Function ShowCaret Lib "user32" (hWnd As HWND) As BOOL 976 1049 Declare Function ShowCursor Lib "user32" (bShow As Long) As BOOL … … 995 1068 Declare Function ShowWindowAsync Lib "user32" (hWnd As HWND, nCmdShow As Long) As BOOL 996 1069 997 Type NONCLIENTMETRICS 1070 Type NONCLIENTMETRICSW 998 1071 cbSize As DWord 999 1072 iBorderWidth As Long … … 1002 1075 iCaptionWidth As Long 1003 1076 iCaptionHeight As Long 1004 lfCaptionFont As LOGFONT 1077 lfCaptionFont As LOGFONTW 1005 1078 iSmCaptionWidth As Long 1006 1079 iSmCaptionHeight As Long 1007 lfSmCaptionFont As LOGFONT 1080 lfSmCaptionFont As LOGFONTW 1008 1081 iMenuWidth As Long 1009 1082 iMenuHeight As Long 1010 lfMenuFont As LOGFONT 1011 lfStatusFont As LOGFONT 1012 lfMessageFont As LOGFONT 1083 lfMenuFont As LOGFONTW 1084 lfStatusFont As LOGFONTW 1085 lfMessageFont As LOGFONTW 1013 1086 End Type 1087 Type NONCLIENTMETRICSA 1088 cbSize As DWord 1089 iBorderWidth As Long 1090 iScrollWidth As Long 1091 iScrollHeight As Long 1092 iCaptionWidth As Long 1093 iCaptionHeight As Long 1094 lfCaptionFont As LOGFONTA 1095 iSmCaptionWidth As Long 1096 iSmCaptionHeight As Long 1097 lfSmCaptionFont As LOGFONTA 1098 iMenuWidth As Long 1099 iMenuHeight As Long 1100 lfMenuFont As LOGFONTA 1101 lfStatusFont As LOGFONTA 1102 lfMessageFont As LOGFONTA 1103 End Type 1104 #ifdef 1105 TypeDef NONCLIENTMETRICS = NONCLIENTMETRICSW 1106 #else 1107 TypeDef NONCLIENTMETRICS = NONCLIENTMETRICSA 1108 #endif 1014 1109 Const SPI_GETBEEP = 1 1015 1110 Const SPI_SETBEEP = 2 … … 1141 1236 Const SPIF_SENDWININICHANGE = &H0002 1142 1237 Const SPIF_SENDCHANGE = SPIF_SENDWININICHANGE 1143 Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA"(uiAction As DWord, uiParam As DWord, pvParam As VoidPtr, fWinIni As DWord) As BOOL1238 Declare Function SystemParametersInfo Lib "user32" Alias _FuncName_SystemParametersInfo (uiAction As DWord, uiParam As DWord, pvParam As VoidPtr, fWinIni As DWord) As BOOL 1144 1239 1145 1240 Const TME_HOVER = &H00000001 … … 1172 1267 Declare Function TrackPopupMenu Lib "user32" (hMenu As HMENU, uFlags As DWord, x As Long, y As Long, nReserved As Long, hWnd As HWND, ByRef prcRect As RECT) As BOOL 1173 1268 1174 Declare Function UnregisterClass Lib "user32" Alias "UnregisterClassA" (lpClassName As BytePtr, hInst As HINSTANCE) As BOOL1269 Declare Function UnregisterClass Lib "user32" Alias _FuncName_UnregisterClass (pClassName As PCTSTR, hinst As HINSTANCE) As BOOL 1175 1270 Declare Function UpdateWindow Lib "user32" (hWnd As HWND) As BOOL 1176 1271 Declare Function ValidateRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL … … 1181 1276 Declare Function WindowFromDC Lib "user32" (hDC As HDC) As HWND 1182 1277 Declare Function WindowFromPoint Lib "user32" (ptX As Long, ptY As Long) As HWND 1183 Declare Function wsprintf cdecl Lib "user32" Alias "wsprintfA" (pText As PSTR, pFormat As PCSTR, ...) As Long1184 Declare Function wvsprintf Lib "user32" Alias "wvsprintfA" (pOutput As PSTR, pFormat As PCSTR, arglist As DWordPtr) As Long1278 Declare Function wsprintf cdecl Lib "user32" Alias _FuncName_wsprintf (pText As PTSTR, pFormat As PCTSTR, ...) As Long 1279 Declare Function wvsprintf Lib "user32" Alias _FuncName_wvsprintf (pOutput As PTSTR, pFormat As PCTSTR, arglist As DWordPtr) As Long 1185 1280 1186 1281
Note:
See TracChangeset
for help on using the changeset viewer.