source: trunk/Include/api_window.sbp@ 324

Last change on this file since 324 was 324, checked in by NoWest, 17 years ago

ChangeDisplaySetting系を追加しました。

File size: 71.1 KB
Line 
1' api_window.sbp - Window Control API
2
3
4#ifndef _INC_WINDOW
5#define _INC_WINDOW
6
7'-------------
8' Window API Function Names
9#ifdef UNICODE
10Const _FuncName_CallWindowProc = "CallWindowProcW"
11Const _FuncName_CharLower = "CharLowerW"
12Const _FuncName_CharNext = "CharNextW"
13Const _FuncName_CharPrev = "CharPrevW"
14Const _FuncName_CharUpper = "CharUpperW"
15Const _FuncName_CreateAcceleratorTable = "CreateAcceleratorTableW"
16Const _FuncName_CreateWindowEx = "CreateWindowExW"
17Const _FuncName_DefDlgProc = "DefDlgProcW"
18Const _FuncName_DefWindowProc = "DefWindowProcW"
19Const _FuncName_DialogBoxIndirectParam = "DialogBoxIndirectParamW"
20Const _FuncName_DispatchMessage = "DispatchMessageW"
21Const _FuncName_DlgDirList = "DlgDirListW"
22Const _FuncName_DlgDirListComboBox = "DlgDirListComboBoxW"
23Const _FuncName_DlgDirSelectComboBoxEx = "DlgDirSelectComboBoxExW"
24Const _FuncName_DlgDirSelectEx = "DlgDirSelectExW"
25Const _FuncName_DrawText = "DrawTextW"
26Const _FuncName_DrawTextEx = "DrawTextExW"
27Const _FuncName_FindWindow = "FindWindowW"
28Const _FuncName_FindWindowEx = "FindWindowExW"
29Const _FuncName_GetClassInfoEx = "GetClassInfoExW"
30Const _FuncName_GetClassLong = "GetClassLongW"
31Const _FuncName_GetClassLongPtr = "GetClassLongPtrW"
32Const _FuncName_GetClassName = "GetClassNameW"
33Const _FuncName_GetClipboardFormatName = "GetClipboardFormatNameW"
34Const _FuncName_GetDlgItemText = "GetDlgItemTextW"
35Const _FuncName_GetMonitorInfo = "GetMonitorInfoW"
36Const _FuncName_GetMenuItemInfo = "GetMenuItemInfoW"
37Const _FuncName_GetMessage = "GetMessageW"
38Const _FuncName_GetProp = "GetPropW"
39Const _FuncName_GetWindowLong = "GetWindowLongW"
40Const _FuncName_GetWindowLongPtr = "GetWindowLongPtrW"
41Const _FuncName_GetWindowText = "GetWindowTextW"
42Const _FuncName_GetWindowTextLength = "GetWindowTextLengthW"
43Const _FuncName_GetWindowModuleFileName = "GetWindowModuleFileNameW"
44Const _FuncName_InsertMenuItem = "InsertMenuItemW"
45Const _FuncName_IsCharAlpha = "IsCharAlphaW"
46Const _FuncName_IsCharAlphaNumeric = "IsCharAlphaNumericW"
47Const _FuncName_IsCharLower = "IsCharLowerW"
48Const _FuncName_IsCharUpper = "IsCharUpperW"
49Const _FuncName_IsDialogMessage = "IsDialogMessageW"
50Const _FuncName_LoadBitmap = "LoadBitmapW"
51Const _FuncName_LoadCursor = "LoadCursorW"
52Const _FuncName_LoadCursorFromFile = "LoadCursorFromFileW"
53Const _FuncName_LoadIcon = "LoadIconW"
54Const _FuncName_LoadImage = "LoadImageW"
55Const _FuncName_LoadString = "LoadStringW"
56Const _FuncName_MapVirtualKey = "MapVirtualKeyW"
57Const _FuncName_PeekMessage = "PeekMessageW"
58Const _FuncName_PostMessage = "PostMessageW"
59Const _FuncName_PostThreadMessage = "PostThreadMessageW"
60Const _FuncName_RegisterClassEx = "RegisterClassExW"
61Const _FuncName_RegisterClipboardFormat = "RegisterClipboardFormatW"
62Const _FuncName_RegisterWindowMessage = "RegisterWindowMessageW"
63Const _FuncName_RemoveProp = "RemovePropW"
64Const _FuncName_SendDlgItemMessage = "SendDlgItemMessageW"
65Const _FuncName_SendMessage = "SendMessageW"
66Const _FuncName_SendNotifyMessage = "SendNotifyMessageW"
67Const _FuncName_SetDlgItemText = "SetDlgItemTextW"
68Const _FuncName_SetClassLong = "SetClassLongW"
69Const _FuncName_SetClassLongPtr = "SetClassLongPtrW"
70Const _FuncName_SetMenuItemInfo = "SetMenuItemInfoW"
71Const _FuncName_SetProp = "SetPropW"
72Const _FuncName_SetWindowLong = "SetWindowLongW"
73Const _FuncName_SetWindowLongPtr = "SetWindowLongPtrW"
74Const _FuncName_SetWindowText = "SetWindowTextW"
75Const _FuncName_SetWindowsHookEx = "SetWindowsHookExW"
76Const _FuncName_SystemParametersInfo = "SystemParametersInfoW"
77Const _FuncName_TranslateAccelerator = "TranslateAcceleratorW"
78Const _FuncName_UnregisterClass = "UnregisterClassW"
79Const _FuncName_wsprintf = "wsprintfW"
80Const _FuncName_wvsprintf = "wvsprintfW"
81Const _FuncName_ChangeDisplaySettings = "ChangeDisplaySettingsW"
82Const _FuncName_ChangeDisplaySettingsEx= "ChangeDisplaySettingsExW"
83Const _FuncName_EnumDisplaySettings= "EnumDisplaySettingsW"
84Const _FuncName_EnumDisplaySettingsEx= "EnumDisplaySettingsExW"
85Const _FuncName_EnumDisplayDevices= "EnumDisplayDevicesW"
86#else
87Const _FuncName_CallWindowProc = "CallWindowProcA"
88Const _FuncName_CharLower = "CharLowerA"
89Const _FuncName_CharNext = "CharNextA"
90Const _FuncName_CharPrev = "CharPrevA"
91Const _FuncName_CharUpper = "CharUpperA"
92Const _FuncName_CreateAcceleratorTable = "CreateAcceleratorTableA"
93Const _FuncName_CreateWindowEx = "CreateWindowExA"
94Const _FuncName_DefDlgProc = "DefDlgProcA"
95Const _FuncName_DefWindowProc = "DefWindowProcA"
96Const _FuncName_DialogBoxIndirectParam = "DialogBoxIndirectParamA"
97Const _FuncName_DispatchMessage = "DispatchMessageA"
98Const _FuncName_DlgDirList = "DlgDirListA"
99Const _FuncName_DlgDirListComboBox = "DlgDirListComboBoxA"
100Const _FuncName_DlgDirSelectComboBoxEx = "DlgDirSelectComboBoxExA"
101Const _FuncName_DlgDirSelectEx = "DlgDirSelectExA"
102Const _FuncName_DrawText = "DrawTextA"
103Const _FuncName_DrawTextEx = "DrawTextExA"
104Const _FuncName_FindWindow = "FindWindowA"
105Const _FuncName_FindWindowEx = "FindWindowExA"
106Const _FuncName_GetClassInfoEx = "GetClassInfoExA"
107Const _FuncName_GetClassLong = "GetClassLongA"
108Const _FuncName_GetClassLongPtr = "GetClassLongPtrA"
109Const _FuncName_GetClassName = "GetClassNameA"
110Const _FuncName_GetClipboardFormatName = "GetClipboardFormatNameA"
111Const _FuncName_GetDlgItemText = "GetDlgItemTextA"
112Const _FuncName_GetMenuItemInfo = "GetMenuItemInfoA"
113Const _FuncName_GetMessage = "GetMessageA"
114Const _FuncName_GetMonitorInfo = "GetMonitorInfoA"
115Const _FuncName_GetProp = "GetPropA"
116Const _FuncName_GetWindowLong = "GetWindowLongA"
117Const _FuncName_GetWindowLongPtr = "GetWindowLongPtrA"
118Const _FuncName_GetWindowText = "GetWindowTextA"
119Const _FuncName_GetWindowTextLength = "GetWindowTextLengthA"
120Const _FuncName_GetWindowModuleFileName = "GetWindowModuleFileNameA"
121Const _FuncName_InsertMenuItem = "InsertMenuItemA"
122Const _FuncName_IsCharAlpha = "IsCharAlphaA"
123Const _FuncName_IsCharAlphaNumeric = "IsCharAlphaNumericA"
124Const _FuncName_IsCharLower = "IsCharLowerA"
125Const _FuncName_IsCharUpper = "IsCharUpperA"
126Const _FuncName_IsDialogMessage = "IsDialogMessageA"
127Const _FuncName_LoadBitmap = "LoadBitmapA"
128Const _FuncName_LoadCursor = "LoadCursorA"
129Const _FuncName_LoadCursorFromFile = "LoadCursorFromFileA"
130Const _FuncName_LoadIcon = "LoadIconA"
131Const _FuncName_LoadImage = "LoadImageA"
132Const _FuncName_LoadString = "LoadStringA"
133Const _FuncName_MapVirtualKey = "MapVirtualKeyA"
134Const _FuncName_PeekMessage = "PeekMessageA"
135Const _FuncName_PostMessage = "PostMessageA"
136Const _FuncName_PostThreadMessage = "PostThreadMessageA"
137Const _FuncName_RegisterClassEx = "RegisterClassExA"
138Const _FuncName_RegisterClipboardFormat = "RegisterClipboardFormatA"
139Const _FuncName_RegisterWindowMessage = "RegisterWindowMessageA"
140Const _FuncName_RemoveProp = "RemovePropA"
141Const _FuncName_SendDlgItemMessage = "SendDlgItemMessageA"
142Const _FuncName_SendMessage = "SendMessageA"
143Const _FuncName_SendNotifyMessage = "SendNotifyMessageA"
144Const _FuncName_SetDlgItemText = "SetDlgItemTextA"
145Const _FuncName_SetClassLong = "SetClassLongA"
146Const _FuncName_SetClassLongPtr = "SetClassLongPtrA"
147Const _FuncName_SetMenuItemInfo = "SetMenuItemInfoA"
148Const _FuncName_SetProp = "SetPropA"
149Const _FuncName_SetWindowLong = "SetWindowLongA"
150Const _FuncName_SetWindowLongPtr = "SetWindowLongPtrA"
151Const _FuncName_SetWindowsHookEx = "SetWindowsHookExA"
152Const _FuncName_SetWindowText = "SetWindowTextA"
153Const _FuncName_SystemParametersInfo = "SystemParametersInfoA"
154Const _FuncName_TranslateAccelerator = "TranslateAcceleratorA"
155Const _FuncName_UnregisterClass = "UnregisterClassA"
156Const _FuncName_wsprintf = "wsprintfA"
157Const _FuncName_wvsprintf = "wvsprintfA"
158Const _FuncName_ChangeDisplaySettings = "ChangeDisplaySettingsA"
159Const _FuncName_ChangeDisplaySettingsEx= "ChangeDisplaySettingsExA"
160Const _FuncName_EnumDisplaySettings= "EnumDisplaySettingsA"
161Const _FuncName_EnumDisplaySettingsEx= "EnumDisplaySettingsExA"
162Const _FuncName_EnumDisplayDevices= "EnumDisplayDevicesA"
163#endif
164
165Type _System_DeclareHandle_HDWP:unused As DWord:End Type
166TypeDef HDWP = *_System_DeclareHandle_HDWP
167
168TypeDef WNDPROC = *Function(hwnd As HWND, msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
169TypeDef DLGPROC = *Function(hwnd As HWND, msg As DWord, wParam As WPARAM, lParam As LPARAM) As LONG_PTR
170
171Type MSG
172 hwnd As HWND
173 message As DWord
174 wParam As WPARAM
175 lParam As LPARAM
176 time As DWord
177 pt As POINTAPI
178End Type
179
180Const IS_INTRESOURCE(_r) = ((((_r) As ULONG_PTR) >> 16) = 0)
181Const MAKEINTRESOURCEW(i) = ((((i) As Word) As ULONG_PTR) As PCWSTR)
182Const MAKEINTRESOURCEA(i) = ((((i) As Word) As ULONG_PTR) As PCSTR)
183Const MAKEINTRESOURCE(i) = ((((i) As Word) As ULONG_PTR) As PCTSTR)
184
185Const RT_CURSOR = MAKEINTRESOURCE(1)
186Const RT_BITMAP = MAKEINTRESOURCE(2)
187Const RT_ICON = MAKEINTRESOURCE(3)
188Const RT_MENU = MAKEINTRESOURCE(4)
189Const RT_DIALOG = MAKEINTRESOURCE(5)
190Const RT_STRING = MAKEINTRESOURCE(6)
191Const RT_FONTDIR = MAKEINTRESOURCE(7)
192Const RT_FONT = MAKEINTRESOURCE(8)
193Const RT_ACCELERATOR = MAKEINTRESOURCE(9)
194Const RT_RCDATA = MAKEINTRESOURCE(10)
195Const RT_MESSAGETABLE = MAKEINTRESOURCE(11)
196
197Const DIFFERENCE = 11
198Const RT_GROUP_CURSOR = MAKEINTRESOURCE((RT_CURSOR) As ULONG_PTR + DIFFERENCE)
199Const RT_GROUP_ICON = MAKEINTRESOURCE((RT_ICON) As ULONG_PTR + DIFFERENCE)
200Const RT_VERSION = MAKEINTRESOURCE(16)
201Const RT_DLGINCLUDE = MAKEINTRESOURCE(17)
202Const RT_PLUGPLAY = MAKEINTRESOURCE(19)
203Const RT_VXD = MAKEINTRESOURCE(20)
204Const RT_ANICURSOR = MAKEINTRESOURCE(21)
205Const RT_ANIICON = MAKEINTRESOURCE(22)
206Const RT_HTML = MAKEINTRESOURCE(23)
207Const RT_MANIFEST = MAKEINTRESOURCE(24)
208Const CREATEPROCESS_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(1)
209Const ISOLATIONAWARE_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(2)
210Const ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(3)
211Const MINIMUM_RESERVED_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(1)
212Const MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID = MAKEINTRESOURCE(16)
213
214TypeDef WNDENUMPROC = *Function(hwnd As HWND, lParam As LPARAM) As BOOL
215TypeDef HOOKPROC = *Function(code As Long, wParam As WPARAM, lParam As LPARAM) As LRESULT
216TypeDef MONITORENUMPROC = *Function(hm As HMONITOR, hdc As HDC, ByRef rc As RECT, dwData As LPARAM) As BOOL
217
218Const CS_VREDRAW = &H0001
219Const CS_HREDRAW = &H0002
220Const CS_DBLCLKS = &H0008
221Const CS_OWNDC = &H0020
222Const CS_CLASSDC = &H0040
223Const CS_PARENTDC = &H0080
224Const CS_NOCLOSE = &H0200
225Const CS_SAVEBITS = &H0800
226Const CS_BYTEALIGNCLIENT = &H1000
227Const CS_BYTEALIGNWINDOW = &H2000
228Const CS_GLOBALCLASS = &H4000
229Type WNDCLASSEXA
230 cbSize As DWord
231 style As DWord
232 lpfnWndProc As WNDPROC
233 cbClsExtra As Long
234 cbWndExtra As Long
235 hInstance As HINSTANCE
236 hIcon As HICON
237 hCursor As HCURSOR
238 hbrBackground As HBRUSH
239 lpszMenuName As LPCSTR
240 lpszClassName As LPCSTR
241 hIconSm As HICON
242End Type
243Type WNDCLASSEXW
244 cbSize As DWord
245 style As DWord
246 lpfnWndProc As WNDPROC
247 cbClsExtra As Long
248 cbWndExtra As Long
249 hInstance As HINSTANCE
250 hIcon As HICON
251 hCursor As HCURSOR
252 hbrBackground As HBRUSH
253 lpszMenuName As LPCWSTR
254 lpszClassName As LPCWSTR
255 hIconSm As HICON
256End Type
257#ifdef UNICODE
258TypeDef WNDCLASSEX = WNDCLASSEXW
259#else
260TypeDef WNDCLASSEX = WNDCLASSEXA
261#endif
262
263'------------------------
264' Dialog Box Command IDs
265Const IDOK = 1
266Const IDCANCEL = 2
267Const IDABORT = 3
268Const IDRETRY = 4
269Const IDIGNORE = 5
270Const IDYES = 6
271Const IDNO = 7
272Const IDCLOSE = 8
273Const IDHELP = 9
274
275
276'------------------------
277' Menu flags and structs
278Const MF_INSERT = &H00000000
279Const MF_CHANGE = &H00000080
280Const MF_APPEND = &H00000100
281Const MF_DELETE = &H00000200
282Const MF_REMOVE = &H00001000
283Const MF_BYCOMMAND = &H00000000
284Const MF_BYPOSITION = &H00000400
285Const MF_SEPARATOR = &H00000800
286Const MF_ENABLED = &H00000000
287Const MF_GRAYED = &H00000001
288Const MF_DISABLED = &H00000002
289Const MF_UNCHECKED = &H00000000
290Const MF_CHECKED = &H00000008
291Const MF_USECHECKBITMAPS = &H00000200
292Const MF_STRING = &H00000000
293Const MF_BITMAP = &H00000004
294Const MF_OWNERDRAW = &H00000100
295Const MF_POPUP = &H00000010
296Const MF_MENUBARBREAK = &H00000020
297Const MF_MENUBREAK = &H00000040
298Const MF_UNHILITE = &H00000000
299Const MF_HILITE = &H00000080
300Const MF_DEFAULT = &H00001000
301Const MF_SYSMENU = &H00002000
302Const MF_HELP = &H00004000
303Const MF_RIGHTJUSTIFY = &H00004000
304Const MF_MOUSESELECT = &H00008000
305
306Const MFS_GRAYED = &H00000003
307Const MFS_DISABLED = MFS_GRAYED
308Const MFS_CHECKED = MF_CHECKED
309Const MFS_HILITE = MF_HILITE
310Const MFS_ENABLED = MF_ENABLED
311Const MFS_UNCHECKED = MF_UNCHECKED
312Const MFS_UNHILITE = MF_UNHILITE
313Const MFS_DEFAULT = MF_DEFAULT
314Const MFS_MASK = &H0000108B
315Const MFS_HOTTRACKDRAWN = &H10000000
316Const MFS_CACHEDBMP = &H20000000
317Const MFS_BOTTOMGAPDROP = &H40000000
318Const MFS_TOPGAPDROP = &H80000000
319Const MFS_GAPDROP = &HC0000000
320
321Const MIIM_STATE = &H00000001
322Const MIIM_ID = &H00000002
323Const MIIM_SUBMENU = &H00000004
324Const MIIM_CHECKMARKS = &H00000008
325Const MIIM_TYPE = &H00000010
326Const MIIM_DATA = &H00000020
327Const MIIM_STRING = &H00000040
328Const MIIM_BITMAP = &H00000080
329Const MIIM_FTYPE = &H00000100
330Const MFT_STRING = MF_STRING
331Const MFT_BITMAP = MF_BITMAP
332Const MFT_MENUBARBREAK = MF_MENUBARBREAK
333Const MFT_MENUBREAK = MF_MENUBREAK
334Const MFT_OWNERDRAW = MF_OWNERDRAW
335Const MFT_RADIOCHECK = &H00000200
336Const MFT_SEPARATOR = MF_SEPARATOR
337Const MFT_RIGHTORDER = &H00002000
338Const MFT_RIGHTJUSTIFY = MF_RIGHTJUSTIFY
339
340Type MENUITEMINFOW
341 cbSize As DWord
342 fMask As DWord
343 fType As DWord
344 fState As DWord
345 wID As DWord
346 hSubMenu As HMENU
347 hbmpChecked As HBITMAP
348 hbmpUnchecked As HBITMAP
349 dwItemData As ULONG_PTR
350 dwTypeData As LPWSTR
351 cch As DWord
352End Type
353Type MENUITEMINFOA
354 cbSize As DWord
355 fMask As DWord
356 fType As DWord
357 fState As DWord
358 wID As DWord
359 hSubMenu As HMENU
360 hbmpChecked As HBITMAP
361 hbmpUnchecked As HBITMAP
362 dwItemData As ULONG_PTR
363 dwTypeData As LPSTR
364 cch As DWord
365End Type
366#ifdef UNICODE
367TypeDef MENUITEMINFO = MENUITEMINFOW
368#else
369TypeDef MENUITEMINFO = MENUITEMINFOA
370#endif
371
372'------------
373' Scroll Bar
374Const SB_HORZ = 0
375Const SB_VERT = 1
376Const SB_CTL = 2
377Const SB_BOTH = 3
378
379' SCROLLINFO struct
380Const SIF_RANGE = &H0001
381Const SIF_PAGE = &H0002
382Const SIF_POS = &H0004
383Const SIF_DISABLENOSCROLL = &H0008
384Const SIF_TRACKPOS = &H0010
385Const SIF_ALL = SIF_RANGE or SIF_PAGE or SIF_POS or SIF_TRACKPOS
386Type SCROLLINFO
387 cbSize As DWord
388 fMask As DWord
389 nMin As Long
390 nMax As Long
391 nPage As DWord
392 nPos As Long
393 nTrackPos As Long
394End Type
395
396
397' combo box
398Const CB_ERR = -1
399Const CB_ERRSPACE = -2
400
401
402' Clipboard Formats
403Const CF_TEXT = 1
404Const CF_BITMAP = 2
405Const CF_METAFILEPICT = 3
406Const CF_SYLK = 4
407Const CF_DIF = 5
408Const CF_TIFF = 6
409Const CF_OEMTEXT = 7
410Const CF_DIB = 8
411Const CF_PALETTE = 9
412Const CF_PENDATA = 10
413Const CF_RIFF = 11
414Const CF_WAVE = 12
415Const CF_UNICODETEXT = 13
416Const CF_ENHMETAFILE = 14
417Const CF_HDROP = 15
418Const CF_LOCALE = 16
419Const CF_MAX = 17
420Const CF_OWNERDISPLAY = &H0080
421Const CF_DSPTEXT = &H0081
422Const CF_DSPBITMAP = &H0082
423Const CF_DSPMETAFILEPICT = &H0083
424Const CF_DSPENHMETAFILE = &H008E
425Const CF_PRIVATEFIRST = &H0200
426Const CF_PRIVATELAST = &H02FF
427Const CF_GDIOBJFIRST = &H0300
428Const CF_GDIOBJLAST = &H03FF
429
430'-------------
431' Window API
432
433Declare Function AdjustWindowRect Lib "user32" (ByRef Rect As RECT, dwStyle As DWord, bMenu As BOOL) As BOOL
434Declare Function AdjustWindowRectEx Lib "user32" (ByRef Rect As RECT, dwStyle As DWord, bMenu As BOOL, dwExStyle As DWord) As BOOL
435Declare Function AnyPopup Lib "user32" () As BOOL
436Declare Function ArrangeIconicWindows Lib "user32" (hWnd As HWND) As DWord
437
438Type PAINTSTRUCT
439 hdc As HDC
440 fErase As BOOL
441 rcPaint As RECT
442 fRestore As BOOL
443 fIncUpdate As BOOL
444 rgbReserved[ELM(32)] As Byte
445End Type
446Declare Function BeginPaint Lib "user32" (hWnd As HWND, ByRef Paint As PAINTSTRUCT) As HDC
447Declare Function BringWindowToTop Lib "user32" (hWnd As HWND) As Long
448Declare Function CallNextHookEx Lib "user32" (hHook As HHOOK, nCode As Long, wParam As WPARAM, lParam As LPARAM) As LRESULT
449Declare Function CallWindowProc Lib "user32" Alias _FuncName_CallWindowProc (lpPrevWndFunc As WNDPROC, hWnd As HWND, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
450Declare Function ChangeClipboardChain Lib "user32" (hwndRemove As HWND, hwndNewNext As HWND) As BOOL
451Declare Function CharLower Lib "user32" Alias _FuncName_CharLower (psz As PTSTR) As DWord
452Declare Function CharNext Lib "user32" Alias _FuncName_CharNext (lpszCurrent As LPCTSTR) As LPTSTR
453Declare Function CharNextExA Lib "user32" (CodePage As Word, lpCurrentChar As LPCSTR, dwFlags As DWord) As LPSTR
454Declare Function CharPrev Lib "user32" Alias _FuncName_CharPrev (lpszStart As LPCTSTR, lpszCurrent As LPCTSTR) As LPTSTR
455Declare Function CharPrevExA Lib "user32" (CodePage As Word, lpStart As LPCSTR, lpCurrentChar As LPCSTR, dwFlags As DWord) As LPSTR
456Declare Function CharUpper Lib "user32" Alias _FuncName_CharUpper (psz As PTSTR) As DWord
457Declare Function CheckMenuItem Lib "user32" (hMenu As HMENU, uIDCheckItem As DWord, uCheck As DWord) As DWord
458Declare Function CheckMenuRadioItem Lib "user32" (hMenu As HMENU, idFirst As DWord, idLast As DWord, idCheck As DWord, uFlags As DWord) As BOOL
459Declare Function CheckDlgButton Lib "user32" (hDlg As HWND, nIDButton As Long, uCheck As DWord) As BOOL
460Declare Function CheckRadioButton Lib "user32" (hDlg As HWND, nIDFirstButton As Long, nIDLastButton As Long, nIDCheckButton As Long) As BOOL
461Declare Function ChildWindowFromPoint Lib "user32" (hWndParent As HWND, x As Long, y As Long) As HWND
462Const CWP_ALL = &H0000
463Const CWP_SKIPINVISIBLE = &H0001
464Const CWP_SKIPDISABLED = &H0002
465Const CWP_SKIPTRANSPARENT = &H0004
466Declare Function ChildWindowFromPointEx Lib "user32" (hWndParent As HWND, x As Long, y As Long, uFlags As DWord) As HWND
467
468Declare Function ClientToScreen Lib "user32" (hWnd As HWND, ByRef lpPoint As POINTAPI) As BOOL
469Declare Function ClipCursor Lib "user32" (ByRef lpRect As RECT) As BOOL
470Declare Function CloseClipboard Lib "user32" () As BOOL
471Declare Function CloseWindow Lib "user32" (hWnd As HWND) As BOOL
472Declare Function CopyImage Lib "user32" (hImage As HANDLE, uType As DWord, cxDesired As Long, cyDesired As Long, fuFlags As DWord) As HANDLE
473Declare Function CountClipboardFormats Lib "user32" () As Long
474Const FVIRTKEY = &H01
475Const FNOINVERT = &H02
476Const FSHIFT = &H04
477Const FCONTROL = &H08
478Const FALT = &H10
479Type ACCEL
480 fVirt As Byte
481 key As Word
482 cmd As Word
483End Type
484Declare Function CreateAcceleratorTable Lib "user32" Alias _FuncName_CreateAcceleratorTable (ByRef acl As ACCEL, i As Long) As HACCEL
485Declare Function CreateCaret Lib "user32" (hWnd As HWND, hBitmap As HBITMAP, nWidth As Long, nHeight As Long) As BOOL
486Declare Function CreateCursor Lib "user32" (hInst As HINSTANCE, xHotSpot As Long, yHotSpot As Long, nWidth As Long, nHeight As Long, pvANDPlane As VoidPtr, pvXORPlane As VoidPtr) As HCURSOR
487Declare Function CreateIcon Lib "user32" (hInst As HINSTANCE, nWidth As Long, nHeight As Long, cPlanes As Byte, cBitsPixel As Byte, lpbANDbits As VoidPtr, lpbXORbits As VoidPtr) As HICON
488
489Type ICONINFO
490 fIcon As BOOL
491 xHotspot As DWord
492 yHotspot As DWord
493 hbmMask As HBITMAP
494 hbmColor As HBITMAP
495End Type
496Declare Function CreateIconIndirect Lib "user32" (ByRef pIconInfo As ICONINFO) As HICON
497
498Declare Function CreateMenu Lib "user32" () As HMENU
499Declare Function CreatePopupMenu Lib "user32" () As HMENU
500
501Const CW_USEDEFAULT = &H80000000
502Declare 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
503
504Declare Function DefDlgProc Lib "user32" Alias _FuncName_DefWindowProc (hDlg As HWND, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
505Declare Function DefWindowProc Lib "user32" Alias _FuncName_DefWindowProc (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
506Declare Function DeleteMenu Lib "user32" (hMenu As HMENU, uPosition As DWord, uFlags As DWord) As BOOL
507Declare Function DestroyAcceleratorTable Lib "user32" (hAccel As HACCEL) As BOOL
508Declare Function DestroyCaret Lib "user32" () As BOOL
509Declare Function DestroyCursor Lib "user32" (hCursor As HCURSOR) As BOOL
510Declare Function DestroyIcon Lib "user32" (hIcon As HICON) As BOOL
511Declare Function DestroyMenu Lib "user32" (hMenu As HMENU) As BOOL
512Declare Function DestroyWindow Lib "user32" (hWnd As HWND) As BOOL
513Type DLGITEMTEMPLATE
514 style As DWord
515 dwExtendedStyle As DWord
516 x As Integer
517 y As Integer
518 cx As Integer
519 cy As Integer
520 id As Word
521End Type
522Type DLGTEMPLATE
523 style As DWord
524 dwExtendedStyle As DWord
525 cdit As Word
526 x As Integer
527 y As Integer
528 cx As Integer
529 cy As Integer
530End Type
531Declare Function DialogBoxIndirectParam Lib "user32" Alias _FuncName_DialogBoxIndirectParam (hInstance As HINSTANCE, DialogTemplate As *DLGTEMPLATE, hwndParent As HWND, pDialogFunc As DLGPROC, InitParam As LPARAM) As LONG_PTR
532Declare Function DispatchMessage Lib "user32" Alias _FuncName_DispatchMessage (ByRef Msg As MSG) As LRESULT
533Declare Function DlgDirList Lib "user32" Alias _FuncName_DlgDirList (hDlg As HWND, lpPathSpec As LPTSTR, nIDListBox As Long, nIDStaticPath As Long, uFileType As DWord) As Long
534Declare Function DlgDirListComboBox Lib "user32" Alias _FuncName_DlgDirListComboBox (hDlg As HWND, lpPathSpec As LPTSTR, nIDComboBox As Long, nIDStaticPath As Long,uFileType As DWord) As Long
535Declare Function DlgDirSelectComboBoxEx Lib "user32" Alias _FuncName_DlgDirSelectComboBoxEx (hDlg As HWND, lpString As LPTSTR, nCount As Long, nIDComboBox As Long) As BOOL
536Declare Function DlgDirSelectEx Lib "user32" Alias _FuncName_DlgDirSelectEx (hDlg As HWND, lpString As LPTSTR, nCount As Long, nIDListBox As Long) As BOOL
537Const BDR_RAISEDOUTER = &H0001
538Const BDR_SUNKENOUTER = &H0002
539Const BDR_RAISEDINNER = &H0004
540Const BDR_SUNKENINNER = &H0008
541Const BDR_OUTER = &H0003
542Const BDR_INNER = &H000c
543Const EDGE_RAISED = BDR_RAISEDOUTER or BDR_RAISEDINNER
544Const EDGE_SUNKEN = BDR_SUNKENOUTER or BDR_SUNKENINNER
545Const EDGE_ETCHED = BDR_SUNKENOUTER or BDR_RAISEDINNER
546Const EDGE_BUMP = BDR_RAISEDOUTER or BDR_SUNKENINNER
547Const BF_LEFT = &H0001
548Const BF_TOP = &H0002
549Const BF_RIGHT = &H0004
550Const BF_BOTTOM = &H0008
551Const BF_TOPLEFT = BF_TOP or BF_LEFT
552Const BF_TOPRIGHT = BF_TOP or BF_RIGHT
553Const BF_BOTTOMLEFT = BF_BOTTOM or BF_LEFT
554Const BF_BOTTOMRIGHT = BF_BOTTOM or BF_RIGHT
555Const BF_RECT = BF_LEFT or BF_TOP or BF_RIGHT or BF_BOTTOM
556Const BF_DIAGONAL = &H0010
557Const BF_DIAGONAL_ENDTOPRIGHT = BF_DIAGONAL or BF_TOP or BF_RIGHT
558Const BF_DIAGONAL_ENDTOPLEFT = BF_DIAGONAL or BF_TOP or BF_LEFT
559Const BF_DIAGONAL_ENDBOTTOMLEFT = BF_DIAGONAL or BF_BOTTOM or BF_LEFT
560Const BF_DIAGONAL_ENDBOTTOMRIGHT = BF_DIAGONAL or BF_BOTTOM or BF_RIGHT
561Const BF_MIDDLE = &H0800
562Const BF_SOFT = &H1000
563Const BF_ADJUST = &H2000
564Const BF_FLAT = &H4000
565Const BF_MONO = &H8000
566Declare Function DrawEdge Lib "user32" (hdc As HDC, ByRef lpRect As RECT, edge As DWord, grfFlags As DWord) As BOOL
567
568Const DFC_CAPTION = 1
569Const DFC_MENU = 2
570Const DFC_SCROLL = 3
571Const DFC_BUTTON = 4
572Const DFC_POPUPMENU = 5
573Const DFCS_CAPTIONCLOSE = &H0000
574Const DFCS_CAPTIONMIN = &H0001
575Const DFCS_CAPTIONMAX = &H0002
576Const DFCS_CAPTIONRESTORE = &H0003
577Const DFCS_CAPTIONHELP = &H0004
578Const DFCS_MENUARROW = &H0000
579Const DFCS_MENUCHECK = &H0001
580Const DFCS_MENUBULLET = &H0002
581Const DFCS_MENUARROWRIGHT = &H0004
582Const DFCS_SCROLLUP = &H0000
583Const DFCS_SCROLLDOWN = &H0001
584Const DFCS_SCROLLLEFT = &H0002
585Const DFCS_SCROLLRIGHT = &H0003
586Const DFCS_SCROLLCOMBOBOX = &H0005
587Const DFCS_SCROLLSIZEGRIP = &H0008
588Const DFCS_SCROLLSIZEGRIPRIGHT = &H0010
589Const DFCS_BUTTONCHECK = &H0000
590Const DFCS_BUTTONRADIOIMAGE = &H0001
591Const DFCS_BUTTONRADIOMASK = &H0002
592Const DFCS_BUTTONRADIO = &H0004
593Const DFCS_BUTTON3STATE = &H0008
594Const DFCS_BUTTONPUSH = &H0010
595Const DFCS_INACTIVE = &H0100
596Const DFCS_PUSHED = &H0200
597Const DFCS_CHECKED = &H0400
598Const DFCS_TRANSPARENT = &H0800
599Const DFCS_HOT = &H1000
600Const DFCS_ADJUSTRECT = &H2000
601Const DFCS_FLAT = &H4000
602Const DFCS_MONO = &H8000
603Declare Function DrawFrameControl Lib "user32" (hdc As HDC, ByRef lpRect As RECT, uType As DWord, uState As DWord) As BOOL
604
605Declare Function DrawIcon Lib "user32" (hdc As HDC, x As Long, y As Long, hIcon As HICON) As BOOL
606
607Const DI_MASK = &H0001
608Const DI_IMAGE = &H0002
609Const DI_NORMAL = &H0003
610Const DI_COMPAT = &H0004
611Const DI_DEFAULTSIZE = &H0008
612Declare Function DrawIconEx Lib "user32" (hdc As HDC, xLeft As Long, yTop As Long, hIcon As HICON, cxWidth As Long, cyWidth As Long, istepIfAniCur As DWord, hbrFlickerFreeDraw As HBRUSH, diFlags As DWord) As BOOL
613
614Declare Function DrawMenuBar Lib "user32" (hwnd As HWND) As BOOL
615
616Const DT_TOP = &H00000000
617Const DT_LEFT = &H00000000
618Const DT_CENTER = &H00000001
619Const DT_RIGHT = &H00000002
620Const DT_VCENTER = &H00000004
621Const DT_BOTTOM = &H00000008
622Const DT_WORDBREAK = &H00000010
623Const DT_SINGLELINE = &H00000020
624Const DT_EXPANDTABS = &H00000040
625Const DT_TABSTOP = &H00000080
626Const DT_NOCLIP = &H00000100
627Const DT_EXTERNALLEADING =&H00000200
628Const DT_CALCRECT = &H00000400
629Const DT_NOPREFIX = &H00000800
630Const DT_INTERNAL = &H00001000
631Const DT_EDITCONTROL = &H00002000
632Const DT_PATH_ELLIPSIS = &H00004000
633Const DT_END_ELLIPSIS = &H00008000
634Const DT_MODIFYSTRING = &H00010000
635Const DT_RTLREADING = &H00020000
636Const DT_WORD_ELLIPSIS = &H00040000
637Declare 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
638
639Type DRAWTEXTPARAMS
640 cbSize As DWord
641 iTabLength As Long
642 iLeftMargin As Long
643 iRightMargin As Long
644 uiLengthDrawn As DWord
645End Type
646Declare 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
647
648Declare Function EmptyClipboard Lib "user32" () As BOOL
649Declare Function EnableMenuItem Lib "user32" (hMenu As HMENU, uIDEnableItem As DWord, uEnable As DWord) As BOOL
650
651Const ESB_ENABLE_BOTH = &H0000
652Const ESB_DISABLE_BOTH = &H0003
653Const ESB_DISABLE_LEFT = &H0001
654Const ESB_DISABLE_RIGHT = &H0002
655Const ESB_DISABLE_UP = &H0001
656Const ESB_DISABLE_DOWN = &H0002
657Const ESB_DISABLE_LTUP = ESB_DISABLE_LEFT
658Const ESB_DISABLE_RTDN = ESB_DISABLE_RIGHT
659Declare Function EnableScrollBar Lib "user32" (hWnd As HWND, dwSBflags As DWord, dwArrows As DWord) As BOOL
660
661Declare Function EnableWindow Lib "user32" (hWnd As HWND, bEnable As BOOL) As BOOL
662Declare Function EndDialogAPI Lib "user32" Alias "EndDialog" (hwndDlg As HWND, nRet As Long) As BOOL
663Declare Function EndPaint Lib "user32" (hWnd As HWND, ByRef lpPaint As PAINTSTRUCT) As BOOL
664Declare Function EnumClipboardFormats Lib "user32" (uFormat As DWord) As DWord
665Declare Function EnumChildWindows Lib "user32" (hwndParent As HWND, pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL
666Declare Function EnumDisplayMonitors Lib "user32.dll" (ByVal hdc As HDC, lprcClip As *RECT, ByVal lpfnEnum As MONITORENUMPROC, dwData As LPARAM) As BOOL
667Declare Function EnumThreadWindows Lib "user32" (dwThreadId As DWord, pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL
668Declare Function EnumWindows Lib "user32" (pEnumFunc As WNDENUMPROC, lParam As LPARAM) As BOOL
669Declare Function ExitWindowsEx Lib "user32" (uFlags As DWord, dwReserved As DWord) As BOOL
670Declare Function FillRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT, hBrush As HBRUSH) As BOOL
671Declare Function FindWindow Lib "user32" Alias _FuncName_FindWindow (pClassName As PCTSTR, lpWindowName As PCTSTR) As HWND
672Declare Function FindWindowEx Lib "user32" Alias _FuncName_FindWindowEx (hwndParent As HWND, hwndChildAfter As HWND, pszClass As PCTSTR, pszWindow As PCTSTR) As HWND
673Declare Function FlashWindow Lib "user32" (hWnd As HWND, bInvert As BOOL) As BOOL
674Const FLASHW_STOP = 0
675Const FLASHW_CAPTION = 1
676Const FLASHW_TRAY = 2
677Const FLASHW_ALL = (FLASHW_CAPTION Or FLASHW_TRAY)
678Const FLASHW_TIMER = 4
679Const FLASHW_TIMERNOFG = 12
680Type FLASHWINFO
681 cbSize As DWord
682 hWnd As HWND
683 dwFlags As DWord
684 uCount As DWord
685 dwTimeout As DWord
686End Type
687Declare Function FlashWindowEx Lib "user32" (ByRef fwi As FLASHWINFO) As Long
688Declare Function FrameRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT, hBrush As HBRUSH) As Long
689Declare Function GetActiveWindow Lib "user32" () As HWND
690Declare Function GetAsyncKeyState Lib "user32" (vKey As Long) As Integer
691Declare Function GetCapture Lib "user32" () As HWND
692Declare Function GetCaretPos Lib "user32" (ByRef lpPoint As POINTAPI) As BOOL
693Declare Function GetClassInfoEx Lib "user32" Alias _FuncName_GetClassInfoEx (hInst As HINSTANCE, pszClass As PCTSTR, ByRef lpwcx As WNDCLASSEX) As BOOL
694
695Const GCL_MENUNAME = -8
696Const GCL_HBRBACKGROUND = -10
697Const GCL_HCURSOR = -12
698Const GCL_HICON = -14
699Const GCL_HMODULE = -16
700Const GCL_CBWNDEXTRA = -18
701Const GCL_CBCLSEXTRA = -20
702Const GCL_WNDPROC = -24
703Const GCL_STYLE = -26
704Const GCW_ATOM = -32
705Const GCL_HICONSM = -34
706#ifdef _WIN64
707Declare Function GetClassLong Lib "user32" Alias _FuncName_GetClassLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR
708Declare Function GetClassLongPtr Lib "user32" Alias _FuncName_GetClassLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR
709#else
710Declare Function GetClassLong Lib "user32" Alias _FuncName_GetClassLong (hWnd As HWND, nIndex As Long) As LONG_PTR
711Declare Function GetClassLongPtr Lib "user32" Alias _FuncName_GetClassLong (hWnd As HWND, nIndex As Long) As LONG_PTR
712#endif
713
714Declare Function GetClassName Lib "user32" Alias _FuncName_GetClassName (hWnd As HWND, lpClassName As PTSTR, nMaxCount As Long) As Long
715Declare Function GetClientRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL
716Declare Function GetClipboardData Lib "user32" (uFormat As DWord) As HANDLE
717Declare Function GetClipboardFormatName Lib "user32" Alias _FuncName_GetClipboardFormatName (uFormat As DWord, pszFormatName As PTSTR, cchMaxCount As Long) As BOOL
718Declare Function GetClipboardOwner Lib "user32" () As HWND
719Declare Function GetClipboardViewer Lib "user32" () As HWND
720Declare Function GetClipCursor Lib "user32" (ByRef lpRect As RECT) As BOOL
721Declare Function GetCursor Lib "user32" () As HCURSOR
722Declare Function GetCursorPos Lib "user32" (ByRef lpPoint As POINTAPI) As BOOL
723Declare Function GetDC Lib "user32" (hWnd As HWND) As HDC
724
725Const DCX_WINDOW = &H00000001
726Const DCX_CACHE = &H00000002
727Const DCX_NORESETATTRS = &H00000004
728Const DCX_CLIPCHILDREN = &H00000008
729Const DCX_CLIPSIBLINGS = &H00000010
730Const DCX_PARENTCLIP = &H00000020
731Const DCX_EXCLUDERGN = &H00000040
732Const DCX_INTERSECTRGN = &H00000080
733Const DCX_EXCLUDEUPDATE = &H00000100
734Const DCX_INTERSECTUPDATE = &H00000200
735Const DCX_LOCKWINDOWUPDATE = &H00000400
736Const DCX_VALIDATE = &H00200000
737Declare Function GetDCEx Lib "user32" (hWnd As HWND, hrgnClip As HRGN, dwFlags As DWord) As HDC
738
739Declare Function GetDesktopWindow Lib "user32" () As HWND
740Declare Function GetDialogBaseUnits Lib "user32" () As Long
741Declare Function GetDlgCtrlID Lib "user32" (hWnd As HWND) As Long
742Declare Function GetDlgItem Lib "user32" (hDlg As HWND, nIDDlgItem As Long) As HWND
743Declare Function GetDlgItemInt Lib "user32" (hDlg As HWND, nIDDlgItem As Long, lpTranslated As *BOOL, bSigned As BOOL) As DWord
744Declare Function GetDlgItemText Lib "user32" Alias _FuncName_GetDlgItemText (hDlg As HWND, nIDDlgItem As Long, pString As PTSTR, nMaxCount As Long) As Long
745Declare Function GetDoubleClickTime Lib "user32" () As DWord
746Declare Function GetFocus Lib "user32" () As HWND
747Declare Function GetForegroundWindow Lib "user32" () As HWND
748Declare Function GetIconInfo Lib "user32" (hIcon As HICON, ByRef pIconInfo As ICONINFO) As Long
749Declare Function GetKeyboardState Lib "user32" (lpKeyState As *Byte) As BOOL
750Declare Function GetKeyState Lib "user32" (nVirtKey As Long) As Integer
751Declare Function GetListBoxInfo Lib "user32" (ByVal hwnd As HWND) As DWord
752Declare Function GetMenu Lib "user32" (hWnd As HWND) As HMENU
753
754Declare Function GetMenuContextHelpId Lib "user32" (hmenu As HMENU) As DWord
755Const GMDI_USEDISABLED = &H0001
756Const GMDI_GOINTOPOPUPS = &H0002
757Declare Function GetMenuDefaultItem Lib "user32" (hMenu As HMENU, fByPos As DWord, gmdiFlags As DWord) As DWord
758
759Declare Function GetMenuItemID Lib "user32" (hMenu As HMENU, nPos As Long) As DWord
760Declare Function GetMenuItemCount Lib "user32" (hMenu As HMENU) As Long
761Declare Function GetMenuItemInfo Lib "user32" Alias _FuncName_GetMenuItemInfo (hMenu As HMENU, uItem As DWord, fByPosition As DWord, ByRef mii As MENUITEMINFO) As BOOL
762Declare Function GetMessage Lib "user32" Alias _FuncName_GetMessage (ByRef Msg As MSG, hWnd As HWND, wMsgFilterMin As DWord, wMsgFilterMax As DWord) As Long
763Const CCHDEVICENAME = 32
764Type MONITORINFO
765 cbSize As DWord
766 rcMonitor As RECT
767 rcWork As RECT
768 dwFlags As DWord
769End Type
770Type MONITORINFOEXA
771 cbSize As DWord
772 rcMonitor As RECT
773 rcWork As RECT
774 dwFlags As DWord
775 szDevice[ELM(CCHDEVICENAME)] As SByte
776End Type
777Type MONITORINFOEXW
778 cbSize As DWord
779 rcMonitor As RECT
780 rcWork As RECT
781 dwFlags As DWord
782 szDevice[ELM(CCHDEVICENAME)] As WCHAR
783End Type
784Declare Function GetMonitorInfo Lib "user32.dll" Alias _FuncName_GetMonitorInfo (hMonitor As HMONITOR, ByRef mi As Any /*MONITORINFO*/) As BOOL
785Declare Function GetNextDlgGroupItem Lib "user32" (hDlg As HWND, hCtl As HWND, bPrevious As BOOL) As HWND
786Declare Function GetNextDlgTabItem Lib "user32" (hDlg As HWND, hCtl As HWND, bPrevious As BOOL) As HWND
787Declare Function GetOpenClipboardWindow Lib "user32" () As HWND
788Declare Function GetParent Lib "user32" (hWnd As HWND) As HWND
789Declare Function GetPriorityClipboardFormat Lib "user32" (lpFormatList As *DWord, FormatNum As Long) As Long
790Declare Function GetProp Lib "user32" Alias _FuncName_GetProp (hWnd As HWND, pString As PCTSTR) As HANDLE
791Declare Function GetScrollInfo Lib "user32" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO) As BOOL
792Declare Function GetSubMenu Lib "user32" (hMenu As HMENU, nPos As Long) As HMENU
793
794Const COLOR_SCROLLBAR = 0
795Const COLOR_BACKGROUND = 1
796Const COLOR_ACTIVECAPTION = 2
797Const COLOR_INACTIVECAPTION = 3
798Const COLOR_MENU = 4
799Const COLOR_WINDOW = 5
800Const COLOR_WINDOWFRAME = 6
801Const COLOR_MENUTEXT = 7
802Const COLOR_WINDOWTEXT = 8
803Const COLOR_CAPTIONTEXT = 9
804Const COLOR_ACTIVEBORDER = 10
805Const COLOR_INACTIVEBORDER = 11
806Const COLOR_APPWORKSPACE = 12
807Const COLOR_HIGHLIGHT = 13
808Const COLOR_HIGHLIGHTTEXT = 14
809Const COLOR_BTNFACE = 15
810Const COLOR_BTNSHADOW = 16
811Const COLOR_GRAYTEXT = 17
812Const COLOR_BTNTEXT = 18
813Const COLOR_INACTIVECAPTIONTEXT = 19
814Const COLOR_BTNHIGHLIGHT = 20
815Const COLOR_3DDKSHADOW = 21
816Const COLOR_3DLIGHT = 22
817Const COLOR_INFOTEXT = 23
818Const COLOR_INFOBK = 24
819Const COLOR_HOTLIGHT = 26
820Const COLOR_GRADIENTACTIVECAPTION = 27
821Const COLOR_GRADIENTINACTIVECAPTION = 28
822Const COLOR_DESKTOP = COLOR_BACKGROUND
823Const COLOR_3DFACE = COLOR_BTNFACE
824Const COLOR_3DSHADOW = COLOR_BTNSHADOW
825Const COLOR_3DHIGHLIGHT = COLOR_BTNHIGHLIGHT
826Const COLOR_3DHILIGHT = COLOR_BTNHIGHLIGHT
827Const COLOR_BTNHILIGHT = COLOR_BTNHIGHLIGHT
828Declare Function GetSysColor Lib "user32" (nIndex As Long) As DWord
829Declare Function GetSysColorBrush Lib "user32" (nIndex As Long) As HBRUSH
830
831Declare Function GetSystemMenu Lib "user32" (hWnd As HWND, bRevert As BOOL) As HMENU
832
833Const SM_CXSCREEN = 0
834Const SM_CYSCREEN = 1
835Const SM_CXVSCROLL = 2
836Const SM_CYHSCROLL = 3
837Const SM_CYCAPTION = 4
838Const SM_CXBORDER = 5
839Const SM_CYBORDER = 6
840Const SM_CXDLGFRAME = 7
841Const SM_CYDLGFRAME = 8
842Const SM_CYVTHUMB = 9
843Const SM_CXHTHUMB = 10
844Const SM_CXICON = 11
845Const SM_CYICON = 12
846Const SM_CXCURSOR = 13
847Const SM_CYCURSOR = 14
848Const SM_CYMENU = 15
849Const SM_CXFULLSCREEN = 16
850Const SM_CYFULLSCREEN = 17
851Const SM_CYKANJIWINDOW = 18
852Const SM_MOUSEPRESENT = 19
853Const SM_CYVSCROLL = 20
854Const SM_CXHSCROLL = 21
855Const SM_DEBUG = 22
856Const SM_SWAPBUTTON = 23
857Const SM_RESERVED1 = 24
858Const SM_RESERVED2 = 25
859Const SM_RESERVED3 = 26
860Const SM_RESERVED4 = 27
861Const SM_CXMIN = 28
862Const SM_CYMIN = 29
863Const SM_CXSIZE = 30
864Const SM_CYSIZE = 31
865Const SM_CXFRAME = 32
866Const SM_CYFRAME = 33
867Const SM_CXMINTRACK = 34
868Const SM_CYMINTRACK = 35
869Const SM_CXDOUBLECLK = 36
870Const SM_CYDOUBLECLK = 37
871Const SM_CXICONSPACING = 38
872Const SM_CYICONSPACING = 39
873Const SM_MENUDROPALIGNMENT = 40
874Const SM_PENWINDOWS = 41
875Const SM_DBCSENABLED = 42
876Const SM_CMOUSEBUTTONS = 43
877Const SM_CXFIXEDFRAME = SM_CXDLGFRAME
878Const SM_CYFIXEDFRAME = SM_CYDLGFRAME
879Const SM_CXSIZEFRAME = SM_CXFRAME
880Const SM_CYSIZEFRAME = SM_CYFRAME
881Const SM_SECURE = 44
882Const SM_CXEDGE = 45
883Const SM_CYEDGE = 46
884Const SM_CXMINSPACING = 47
885Const SM_CYMINSPACING = 48
886Const SM_CXSMICON = 49
887Const SM_CYSMICON = 50
888Const SM_CYSMCAPTION = 51
889Const SM_CXSMSIZE = 52
890Const SM_CYSMSIZE = 53
891Const SM_CXMENUSIZE = 54
892Const SM_CYMENUSIZE = 55
893Const SM_ARRANGE = 56
894Const SM_CXMINIMIZED = 57
895Const SM_CYMINIMIZED = 58
896Const SM_CXMAXTRACK = 59
897Const SM_CYMAXTRACK = 60
898Const SM_CXMAXIMIZED = 61
899Const SM_CYMAXIMIZED = 62
900Const SM_NETWORK = 63
901Const SM_CLEANBOOT = 67
902Const SM_CXDRAG = 68
903Const SM_CYDRAG = 69
904Const SM_SHOWSOUNDS = 70
905Const SM_CXMENUCHECK = 71
906Const SM_CYMENUCHECK = 72
907Const SM_SLOWMACHINE = 73
908Const SM_MIDEASTENABLED = 74
909Const SM_MOUSEWHEELPRESENT = 75
910Declare Function GetSystemMetrics Lib "user32" (nIndex As Long) As Long
911
912Declare Function GetUpdateRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT, bErase As BOOL) As BOOL
913Declare Function GetUpdateRgn Lib "user32" (hWnd As HWND, hRgn As HRGN, bErase As BOOL) As BOOL
914
915Const GW_HWNDFIRST = 0
916Const GW_HWNDLAST = 1
917Const GW_HWNDNEXT = 2
918Const GW_HWNDPREV = 3
919Const GW_OWNER = 4
920Const GW_CHILD = 5
921Declare Function GetWindow Lib "user32" (hWnd As HWND, uCmd As DWord) As HWND
922
923Declare Function GetWindowContextHelpId Lib "user32" (hwnd As HWND) As DWord
924
925Declare Function GetWindowDC Lib "user32" (hWnd As HWND) As HDC
926
927#ifndef _WIN64
928Const GWL_WNDPROC = -4
929Const GWL_HINSTANCE = -6
930Const GWL_HWNDPARENT = -8
931Const GWL_USERDATA = -21
932Const GWL_ID = -12
933#endif
934
935Const GWL_STYLE = -16
936Const GWL_EXSTYLE = -20
937
938Const GWLP_WNDPROC = -4
939Const GWLP_HINSTANCE = -6
940Const GWLP_HWNDPARENT = -8
941Const GWLP_USERDATA = -21
942Const GWLP_ID = -12
943
944
945#ifdef _WIN64
946Declare Function GetWindowLong Lib "user32" Alias _FuncName_GetWindowLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR
947Declare Function GetWindowLongPtr Lib "user32" Alias _FuncName_GetWindowLongPtr (hWnd As HWND, nIndex As Long) As LONG_PTR
948#else
949Declare Function GetWindowLong Lib "user32" Alias _FuncName_GetWindowLong (hWnd As HWND, nIndex As Long) As LONG_PTR
950Declare Function GetWindowLongPtr Lib "user32" Alias _FuncName_GetWindowLong (hWnd As HWND, nIndex As Long) As LONG_PTR
951#endif
952Declare Function GetWindowModuleFileName Lib "user32" Alias _FuncName_GetWindowModuleFileName (hwnd As HWND, pszFileName As LPTSTR, cchFileNameMax As DWord) As DWord
953
954Const WPF_SETMINPOSITION = &H0001
955Const WPF_RESTORETOMAXIMIZED = &H0002
956Type WINDOWPLACEMENT
957 length As DWord
958 flags As DWord
959 showCmd As DWord
960 ptMinPosition As POINTAPI
961 ptMaxPosition As POINTAPI
962 rcNormalPosition As RECT
963End Type
964Declare Function GetWindowPlacement Lib "user32" (hWnd As HWND, ByRef lpwndpl As WINDOWPLACEMENT) As BOOL
965
966Declare Function GetWindowRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL
967Declare Function GetWindowRgn Lib "user32" (hWnd As HWND, hRgn As HRGN) As Long
968Declare Function GetWindowText Lib "user32" Alias _FuncName_GetWindowText (hWnd As HWND, lpString As PTSTR, nMaxCount As Long) As Long
969Declare Function GetWindowTextLength Lib "user32" Alias _FuncName_GetWindowTextLength (hWnd As HWND) As Long
970Declare Function GetWindowThreadProcessId Lib "user32" (hWnd As HWND, pdwProcessId As *DWord) As DWord
971Declare Function HideCaret Lib "user32" (hWnd As HWND) As BOOL
972Declare Function InsertMenuItem Lib "user32" Alias _FuncName_InsertMenuItem (hMenu As HMENU, uItem As DWord, fByPosition As BOOL, ByRef mii As MENUITEMINFO) As BOOL
973Declare Function InvalidateRect Lib "user32" (hWnd As HWND, ByRef Rect As RECT, bErase As BOOL) As BOOL
974Declare Function InvalidateRgn Lib "user32" (hWnd As HWND, hRgn As HRGN, bErase As BOOL) As BOOL
975Declare Function InvertRect Lib "user32" (hdc As HDC, ByRef lpRect As RECT) As BOOL
976Declare Function IsCharAlpha Lib "user32" Alias _FuncName_IsCharAlpha (ch As TCHAR) As BOOL
977Declare Function IsCharAlphaNumeric Lib "user32" Alias _FuncName_IsCharAlphaNumeric (ch As TCHAR) As BOOL
978Declare Function IsCharLower Lib "user32" Alias _FuncName_IsCharLower (ch As TCHAR) As BOOL
979Declare Function IsCharUpper Lib "user32" Alias _FuncName_IsCharUpper (ch As TCHAR) As BOOL
980Declare Function IsChild Lib "user32" (hWndParent As HWND, hWnd As HWND) As BOOL
981Declare Function IsClipboardFormatAvailable Lib "user32" (ByVal wFormat As DWord) As BOOL
982Declare Function IsDialogMessage Lib "user32" Alias _FuncName_IsDialogMessage (hDlg As HWND, ByRef msg As MSG) As BOOL
983Declare Function IsDlgButtonChecked Lib "user32" (hDlg As HWND, nIDButton As Long) As DWord
984Declare Function IsIconic Lib "user32" (hWnd As HWND) As BOOL
985Declare Function IsWindow Lib "user32" (hWnd As HWND) As BOOL
986Declare Function IsWindowEnabled Lib "user32" (hWnd As HWND) As BOOL
987Declare Function IsWindowUnicode Lib "user32" (hWnd As HWND) As BOOL
988Declare Function IsWindowVisible Lib "user32" (hWnd As HWND) As BOOL
989Declare Function IsZoomed Lib "user32" (hWnd As HWND) As BOOL
990
991Const KEYEVENTF_EXTENDEDKEY = &H0001
992Const KEYEVENTF_KEYUP = &H0002
993Declare Sub keybd_event Lib "user32" (bVk As Byte, bScan As Byte, dwFlags As DWord, dwExtraInfo As DWord)
994
995Declare Function KillTimer Lib "user32" (hWnd As HWND, nIDEvent As ULONG_PTR) As BOOL
996Declare Function LoadBitmap Lib "user32" Alias _FuncName_LoadBitmap (hInst As HINSTANCE, pBitmapName As PCTSTR) As HBITMAP
997
998Const IDC_ARROW = 32512
999Const IDC_IBEAM = 32513
1000Const IDC_WAIT = 32514
1001Const IDC_CROSS = 32515
1002Const IDC_UPARROW = 32516
1003Const IDC_SIZE = 32640
1004Const IDC_ICON = 32641
1005Const IDC_SIZENWSE = 32642
1006Const IDC_SIZENESW = 32643
1007Const IDC_SIZEWE = 32644
1008Const IDC_SIZENS = 32645
1009Const IDC_SIZEALL = 32646
1010Const IDC_NO = 32648
1011Const IDC_HAND = 32649
1012Const IDC_APPSTARTING = 32650
1013Const IDC_HELP = 32651
1014Declare Function LoadCursor Lib "user32" Alias _FuncName_LoadCursor (hInst As HINSTANCE, pCursorName As PCTSTR) As HCURSOR
1015
1016Declare Function LoadCursorFromFile Lib "user32" Alias _FuncName_LoadCursorFromFile (pFileName As PCTSTR) As HCURSOR
1017
1018Const IDI_APPLICATION = 32512
1019Const IDI_HAND = 32513
1020Const IDI_QUESTION = 32514
1021Const IDI_EXCLAMATION = 32515
1022Const IDI_ASTERISK = 32516
1023Const IDI_WINLOGO = 32517
1024Declare Function LoadIcon Lib "user32" Alias _FuncName_LoadIcon (hInst As HINSTANCE, pIconName As PCTSTR) As HICON
1025
1026Const IMAGE_BITMAP = 0
1027Const IMAGE_ICON = 1
1028Const IMAGE_CURSOR = 2
1029Const IMAGE_ENHMETAFILE = 3
1030Const LR_DEFAULTCOLOR = &H0000
1031Const LR_MONOCHROME = &H0001
1032Const LR_COLOR = &H0002
1033Const LR_COPYRETURNORG = &H0004
1034Const LR_COPYDELETEORG = &H0008
1035Const LR_LOADFROMFILE = &H0010
1036Const LR_LOADTRANSPARENT = &H0020
1037Const LR_DEFAULTSIZE = &H0040
1038Const LR_VGACOLOR = &H0080
1039Const LR_LOADMAP3DCOLORS = &H1000
1040Const LR_CREATEDIBSECTION = &H2000
1041Const LR_COPYFROMRESOURCE = &H4000
1042Const LR_SHARED = &H8000
1043Declare 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
1044Declare Function LoadString Lib "user32" Alias _FuncName_LoadString (hInstance As HINSTANCE, uID As DWord, lpBuffer As LPTSTR, nBufferMax As Long) As Long
1045Declare Function LockWindowUpdate Lib "user32" (hWnd As HWND) As BOOL
1046Declare Function MapVirtualKey Lib "user32" Alias _FuncName_MapVirtualKey (wCode As DWord, wMapType As DWord) As DWord
1047Declare Function MapWindowPoints Lib "user32" (
1048 hWndFrom As HWND,
1049 hWndTo As HWND,
1050 pPoints As *POINTAPI,
1051 cPoints As DWord) As Long
1052Declare Function MessageBeep Lib "user32" (uType As DWord) As BOOL
1053
1054Const MB_OK = &H00000000
1055Const MB_OKCANCEL = &H00000001
1056Const MB_ABORTRETRYIGNORE = &H00000002
1057Const MB_YESNOCANCEL = &H00000003
1058Const MB_YESNO = &H00000004
1059Const MB_RETRYCANCEL = &H00000005
1060Const MB_ICONHAND = &H00000010
1061Const MB_ICONQUESTION = &H00000020
1062Const MB_ICONEXCLAMATION = &H00000030
1063Const MB_ICONASTERISK = &H00000040
1064Const MB_USERICON = &H00000080
1065Const MB_ICONWARNING = MB_ICONEXCLAMATION
1066Const MB_ICONERROR = MB_ICONHAND
1067Const MB_ICONINFORMATION = MB_ICONASTERISK
1068Const MB_ICONSTOP = MB_ICONHAND
1069Const MB_DEFBUTTON1 = &H00000000
1070Const MB_DEFBUTTON2 = &H00000100
1071Const MB_DEFBUTTON3 = &H00000200
1072Const MB_DEFBUTTON4 = &H00000300
1073Const MB_APPLMODAL = &H00000000
1074Const MB_SYSTEMMODAL = &H00001000
1075Const MB_TASKMODAL = &H00002000
1076Const MB_HELP = &H00004000
1077Const MB_NOFOCUS = &H00008000
1078Const MB_SETFOREGROUND = &H00010000
1079Const MB_DEFAULT_DESKTOP_ONLY = &H00020000
1080Const MB_TOPMOST = &H00040000
1081Const MB_RIGHT = &H00080000
1082Const MB_RTLREADING = &H00100000
1083Const MB_SERVICE_NOTIFICATION = &H00200000
1084#ifdef UNICODE
1085Declare Function MessageBox Lib "user32" Alias "MessageBoxW" (hwnd As HWND, pText As PCWSTR, pCaption As PCWSTR, uType As DWord) As Long
1086#else
1087Declare Function MessageBox Lib "user32" Alias "MessageBoxA" (hwnd As HWND, pText As PCSTR, pCaption As PCSTR, uType As DWord) As Long
1088#endif
1089Declare Function MessageBoxW Lib "user32" (hWnd As HWND, pText As PCWSTR, pCaption As PCWSTR, uType As DWord) As Long
1090Declare Function MessageBoxA Lib "user32" (hWnd As HWND, pText As PCSTR, pCaption As PCSTR, uType As DWord) As Long
1091Const MOUSEEVENTF_MOVE = &H0001
1092Const MOUSEEVENTF_LEFTDOWN = &H0002
1093Const MOUSEEVENTF_LEFTUP = &H0004
1094Const MOUSEEVENTF_RIGHTDOWN = &H0008
1095Const MOUSEEVENTF_RIGHTUP = &H0010
1096Const MOUSEEVENTF_MIDDLEDOWN = &H0020
1097Const MOUSEEVENTF_MIDDLEUP = &H0040
1098Const MOUSEEVENTF_WHEEL = &H0800
1099Const MOUSEEVENTF_ABSOLUTE = &H8000
1100Declare Sub mouse_event Lib "user32" (dwFlags As DWord, dx As DWord, dy As DWord, dwData As DWord, dwExtraInfo As DWord)
1101
1102Declare Function MoveWindow Lib "user32" (hWnd As HWND, x As Long, y As Long, nWidth As Long, nHight As Long, bRepaint As BOOL) As BOOL
1103Declare Function OpenClipboard Lib "user32" (hWndNewOwner As HWND) As BOOL
1104Declare Function OpenIcon Lib "user32" (hWnd As HWND) As BOOL
1105
1106Const PM_NOREMOVE = &H0000
1107Const PM_REMOVE = &H0001
1108Declare 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
1109
1110Const HWND_BROADCAST = &HFFFF
1111Declare Function PostMessage Lib "user32" Alias _FuncName_PostMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL
1112
1113Declare Sub PostQuitMessage Lib "user32" (nExitCode As Long)
1114Declare Function PostThreadMessage Lib "user32" Alias _FuncName_PostThreadMessage (idThread As DWord, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As BOOL
1115Declare Function RealChildWindowFromPoint Lib "user32" (hwndParent As HWND, xPoint As Long, yPoint As Long) As HWND
1116
1117Const RDW_INVALIDATE = &H0001
1118Const RDW_INTERNALPAINT = &H0002
1119Const RDW_ERASE = &H0004
1120Const RDW_VALIDATE = &H0008
1121Const RDW_NOINTERNALPAINT = &H0010
1122Const RDW_NOERASE = &H0020
1123Const RDW_NOCHILDREN = &H0040
1124Const RDW_ALLCHILDREN = &H0080
1125Const RDW_UPDATENOW = &H0100
1126Const RDW_ERASENOW = &H0200
1127Const RDW_FRAME = &H0400
1128Const RDW_NOFRAME = &H0800
1129Declare Function RedrawWindow Lib "user32" (hWnd As HWND, ByRef lprcUpdate As RECT, hrgnUpdate As HRGN, flags As DWord) As BOOL
1130
1131Declare Function RegisterClassEx Lib "user32" Alias _FuncName_RegisterClassEx (ByRef wcx As WNDCLASSEX) As ATOM
1132Declare Function RegisterClipboardFormat Lib "user32" Alias _FuncName_RegisterClipboardFormat (pszFormat As PCTSTR) As DWord
1133Declare Function RegisterHotKey lib "user32.dll" (hwnd As HWND, id As Long, dwModufuers As DWord, vk As DWord) As BOOL
1134Declare Function RegisterWindowMessage Lib "user32" Alias _FuncName_RegisterWindowMessage (pString As PCTSTR) As DWord
1135Declare Function ReleaseCapture Lib "user32" () As BOOL
1136Declare Function ReleaseDC Lib "user32" (hWnd As HWND, hdc As HDC) As BOOL
1137Declare Function RemoveMenu Lib "user32" (hMenu As HMENU, uPosition As DWord, uFlags As DWord) As BOOL
1138Declare Function RemoveProp Lib "user32" Alias _FuncName_RemoveProp (hWnd As HWND, pString As PCTSTR) As HANDLE
1139Declare Function TranslateAccelerator Lib "user32" Alias _FuncName_TranslateAccelerator (hwnd As HWND, hAccTable As HACCEL, ByRef msg As MSG) As Long
1140Declare Function TranslateMessage Lib "user32" (ByRef msg As MSG) As Long
1141Declare Function ScreenToClient Lib "user32" (hWnd As HWND, ByRef Point As POINTAPI) As BOOL
1142Declare Function ScrollDC Lib "user32" (hdc As HDC, dx As Long, dy As Long, ByRef rcScroll As RECT, ByRef rcClip As RECT, hrgnUpdate As HRGN, ByRef rcUpdate As RECT) As BOOL
1143
1144Const SW_SCROLLCHILDREN = &H0001
1145Const SW_INVALIDATE = &H0002
1146Const SW_ERASE = &H0004
1147Declare 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
1148
1149Declare Function SendDlgItemMessage Lib "user32" Alias _FuncName_SendDlgItemMessage (hDlg As HWND, nIDDlgItem As Long, Msg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
1150Declare Function SendMessage Lib "user32" Alias _FuncName_SendMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
1151Declare Function SendNotifyMessage Lib "user32" Alias _FuncName_SendNotifyMessage (hWnd As HWND, wMsg As DWord, wParam As WPARAM, lParam As LPARAM) As LRESULT
1152Declare Function SetActiveWindow Lib "user32" (hWnd As HWND) As HWND
1153Declare Function SetDlgItemInt Lib "user32" (hDlg As HWND, nIDDlgItem As Long, uValue As DWord, bSigned As BOOL) As BOOL
1154Declare Function SetDlgItemText Lib "user32" Alias _FuncName_SetDlgItemText (hDlg As HWND, nIDDlgItem As Long, lpString As PCTSTR) As BOOL
1155Declare Function SetCapture Lib "user32" (hWnd As HWND) As HWND
1156Declare Function SetCaretPos Lib "user32" (x As Long, y As Long) As BOOL
1157
1158#ifdef _WIN64
1159Declare Function SetClassLong Lib "user32" Alias _FuncName_SetClassLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
1160Declare Function SetClassLongPtr Lib "user32" Alias _FuncName_SetClassLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
1161#else
1162Declare Function SetClassLong Lib "user32" Alias _FuncName_SetClassLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
1163Declare Function SetClassLongPtr Lib "user32" Alias _FuncName_SetClassLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
1164#endif
1165
1166Declare Function SetClipboardData Lib "user32" (uFormat As DWord, hMem As HANDLE) As HANDLE
1167Declare Function SetClipboardViewer Lib "user32" (ByVal hWndNewViewer As HWND) As HWND
1168Declare Function SetCursor Lib "user32" (hCursor As HCURSOR) As HCURSOR
1169Declare Function SetCursorPos Lib "user32" (x As Long, y As Long) As BOOL
1170Declare Function SetDoubleClickTime Lib "user32" (uInterval As DWord) As BOOL
1171Declare Function SetFocus Lib "user32" (hWnd As HWND) As HWND
1172Declare Function SetForegroundWindow Lib "user32" (hWnd As HWND) As BOOL
1173Declare Function SetKeyboardState Lib "user32" (lpKeyState As *Byte) As BOOL
1174Declare Function SetMenu Lib "user32" (hWnd As HWND, hMenu As HMENU) As BOOL
1175Declare Function SetMenuContextHelpId Lib "user32" (hmenu As HMENU, dwContextHelpId As DWord) As BOOL
1176Declare Function SetMenuDefaultItem Lib "user32" (hMenu As HMENU, uItem As DWord, fByPos As DWord) As BOOL
1177Declare Function SetMenuItemInfo Lib "user32" Alias _FuncName_SetMenuItemInfo (hMenu As HMENU, uItem As DWord, fByPosition As BOOL, ByRef mii As MENUITEMINFO) As BOOL
1178Declare Function SetParent Lib "user32" (hWndChild As HWND, hWndNewParent As HWND) As HWND
1179Declare Function SetProp Lib "user32" Alias _FuncName_SetProp (hWnd As HWND, pString As PCTSTR, hData As HANDLE) As BOOL
1180Declare Function SetRect Lib "User32" (ByRef rc As RECT, xLeft As Long, yTop As Long, xRight As Long, yBottom As Long) As Long
1181Declare Function SetScrollInfo Lib "user32" (hWnd As HWND, fnBar As Long, ByRef lpsi As SCROLLINFO, bRedraw As Long) As BOOL
1182Declare Function SetSysColors Lib "user32" (cElements As Long, lpaElements As *DWord, lpaRgbValues As *DWord) As BOOL
1183
1184TypeDef TIMERPROC = *Sub(hwnd As HWND, msg As DWord, idEvent As ULONG_PTR, dwTime As DWord)
1185Declare Function SetTimer Lib "user32" (hWnd As HWND, nIDEvent As ULONG_PTR, nElapse As DWord, lpTimerFunc As TIMERPROC) As ULONG_PTR
1186
1187Declare Function SetWindowContextHelpId Lib "user32"(hwnd As HWND, dwContextHelpId As DWord) As BOOL
1188#ifdef _WIN64
1189Declare Function SetWindowLong Lib "user32" Alias _FuncName_SetWindowLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
1190Declare Function SetWindowLongPtr Lib "user32" Alias _FuncName_SetWindowLongPtr (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
1191#else
1192Declare Function SetWindowLong Lib "user32" Alias _FuncName_SetWindowLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
1193Declare Function SetWindowLongPtr Lib "user32" Alias _FuncName_SetWindowLong (hWnd As HWND, nIndex As Long, NewLong As LONG_PTR) As LONG_PTR
1194#endif
1195
1196Declare Function SetWindowPlacement Lib "user32" (hWnd As HWND, ByRef lpwndpl As WINDOWPLACEMENT) As BOOL
1197
1198Const HWND_TOP = 0 As HWND
1199Const HWND_BOTTOM = 1 As HWND
1200Const HWND_TOPMOST = -1 As HWND
1201Const HWND_NOTOPMOST = -2 As HWND
1202Const SWP_NOSIZE = &H0001
1203Const SWP_NOMOVE = &H0002
1204Const SWP_NOZORDER = &H0004
1205Const SWP_NOREDRAW = &H0008
1206Const SWP_NOACTIVATE = &H0010
1207Const SWP_FRAMECHANGED = &H0020
1208Const SWP_SHOWWINDOW = &H0040
1209Const SWP_HIDEWINDOW = &H0080
1210Const SWP_NOCOPYBITS = &H0100
1211Const SWP_NOOWNERZORDER = &H0200
1212Const SWP_NOSENDCHANGING = &H0400
1213Const SWP_DRAWFRAME = SWP_FRAMECHANGED
1214Const SWP_NOREPOSITION = SWP_NOOWNERZORDER
1215Const SWP_DEFERERASE = &H2000
1216Const SWP_ASYNCWINDOWPOS = &H4000
1217Declare Function SetWindowPos Lib "user32" (hWnd As HWND, hWndInsertAfter As HWND, X As Long, Y As Long, cx As Long, cy As Long, uFlags As DWord) As BOOL
1218
1219Declare Function SetWindowRgn Lib "user32" (hWnd As HWND, hRgn As HRGN, bRedraw As BOOL) As BOOL
1220Declare Function SetWindowsHookEx Lib "user32" Alias _FuncName_SetWindowsHookEx (idHook As Long, lpfn As HOOKPROC, hMod As HINSTANCE, dwThreadId As DWord) As HHOOK
1221Declare Function SetWindowText Lib "user32" Alias _FuncName_SetWindowText (hWnd As HWND, pString As PCTSTR) As BOOL
1222Declare Function ShowCaret Lib "user32" (hWnd As HWND) As BOOL
1223Declare Function ShowCursor Lib "user32" (bShow As Long) As BOOL
1224Declare Function ShowScrollBar Lib "user32" (hWnd As HWND, wBar As DWord, bShow As BOOL) As BOOL
1225
1226Const SW_HIDE = 0
1227Const SW_SHOWNORMAL = 1
1228Const SW_NORMAL = 1
1229Const SW_SHOWMINIMIZED = 2
1230Const SW_SHOWMAXIMIZED = 3
1231Const SW_MAXIMIZE = 3
1232Const SW_SHOWNOACTIVATE = 4
1233Const SW_SHOW = 5
1234Const SW_MINIMIZE = 6
1235Const SW_SHOWMINNOACTIVE = 7
1236Const SW_SHOWNA = 8
1237Const SW_RESTORE = 9
1238Const SW_SHOWDEFAULT = 10
1239Const SW_FORCEMINIMIZE = 11
1240Const SW_MAX = 11
1241Declare Function ShowWindow Lib "user32" (hWnd As HWND, nCmdShow As Long) As BOOL
1242Declare Function ShowWindowAsync Lib "user32" (hWnd As HWND, nCmdShow As Long) As BOOL
1243
1244Type NONCLIENTMETRICSW
1245 cbSize As DWord
1246 iBorderWidth As Long
1247 iScrollWidth As Long
1248 iScrollHeight As Long
1249 iCaptionWidth As Long
1250 iCaptionHeight As Long
1251 lfCaptionFont As LOGFONTW
1252 iSmCaptionWidth As Long
1253 iSmCaptionHeight As Long
1254 lfSmCaptionFont As LOGFONTW
1255 iMenuWidth As Long
1256 iMenuHeight As Long
1257 lfMenuFont As LOGFONTW
1258 lfStatusFont As LOGFONTW
1259 lfMessageFont As LOGFONTW
1260End Type
1261Type NONCLIENTMETRICSA
1262 cbSize As DWord
1263 iBorderWidth As Long
1264 iScrollWidth As Long
1265 iScrollHeight As Long
1266 iCaptionWidth As Long
1267 iCaptionHeight As Long
1268 lfCaptionFont As LOGFONTA
1269 iSmCaptionWidth As Long
1270 iSmCaptionHeight As Long
1271 lfSmCaptionFont As LOGFONTA
1272 iMenuWidth As Long
1273 iMenuHeight As Long
1274 lfMenuFont As LOGFONTA
1275 lfStatusFont As LOGFONTA
1276 lfMessageFont As LOGFONTA
1277End Type
1278#ifdef
1279TypeDef NONCLIENTMETRICS = NONCLIENTMETRICSW
1280#else
1281TypeDef NONCLIENTMETRICS = NONCLIENTMETRICSA
1282#endif
1283Const SPI_GETBEEP = 1
1284Const SPI_SETBEEP = 2
1285Const SPI_GETMOUSE = 3
1286Const SPI_SETMOUSE = 4
1287Const SPI_GETBORDER = 5
1288Const SPI_SETBORDER = 6
1289Const SPI_GETKEYBOARDSPEED = 10
1290Const SPI_SETKEYBOARDSPEED = 11
1291Const SPI_LANGDRIVER = 12
1292Const SPI_ICONHORIZONTALSPACING = 13
1293Const SPI_GETSCREENSAVETIMEOUT = 14
1294Const SPI_SETSCREENSAVETIMEOUT = 15
1295Const SPI_GETSCREENSAVEACTIVE = 16
1296Const SPI_SETSCREENSAVEACTIVE = 17
1297Const SPI_GETGRIDGRANULARITY = 18
1298Const SPI_SETGRIDGRANULARITY = 19
1299Const SPI_SETDESKWALLPAPER = 20
1300Const SPI_SETDESKPATTERN = 21
1301Const SPI_GETKEYBOARDDELAY = 22
1302Const SPI_SETKEYBOARDDELAY = 23
1303Const SPI_ICONVERTICALSPACING = 24
1304Const SPI_GETICONTITLEWRAP = 25
1305Const SPI_SETICONTITLEWRAP = 26
1306Const SPI_GETMENUDROPALIGNMENT = 27
1307Const SPI_SETMENUDROPALIGNMENT = 28
1308Const SPI_SETDOUBLECLKWIDTH = 29
1309Const SPI_SETDOUBLECLKHEIGHT = 30
1310Const SPI_GETICONTITLELOGFONT = 31
1311Const SPI_SETDOUBLECLICKTIME = 32
1312Const SPI_SETMOUSEBUTTONSWAP = 33
1313Const SPI_SETICONTITLELOGFONT = 34
1314Const SPI_GETFASTTASKSWITCH = 35
1315Const SPI_SETFASTTASKSWITCH = 36
1316Const SPI_SETDRAGFULLWINDOWS = 37
1317Const SPI_GETDRAGFULLWINDOWS = 38
1318Const SPI_GETNONCLIENTMETRICS = 41
1319Const SPI_SETNONCLIENTMETRICS = 42
1320Const SPI_GETMINIMIZEDMETRICS = 43
1321Const SPI_SETMINIMIZEDMETRICS = 44
1322Const SPI_GETICONMETRICS = 45
1323Const SPI_SETICONMETRICS = 46
1324Const SPI_SETWORKAREA = 47
1325Const SPI_GETWORKAREA = 48
1326Const SPI_SETPENWINDOWS = 49
1327Const SPI_GETHIGHCONTRAST = 66
1328Const SPI_SETHIGHCONTRAST = 67
1329Const SPI_GETKEYBOARDPREF = 68
1330Const SPI_SETKEYBOARDPREF = 69
1331Const SPI_GETSCREENREADER = 70
1332Const SPI_SETSCREENREADER = 71
1333Const SPI_GETANIMATION = 72
1334Const SPI_SETANIMATION = 73
1335Const SPI_GETFONTSMOOTHING = 74
1336Const SPI_SETFONTSMOOTHING = 75
1337Const SPI_SETDRAGWIDTH = 76
1338Const SPI_SETDRAGHEIGHT = 77
1339Const SPI_SETHANDHELD = 78
1340Const SPI_GETLOWPOWERTIMEOUT = 79
1341Const SPI_GETPOWEROFFTIMEOUT = 80
1342Const SPI_SETLOWPOWERTIMEOUT = 81
1343Const SPI_SETPOWEROFFTIMEOUT = 82
1344Const SPI_GETLOWPOWERACTIVE = 83
1345Const SPI_GETPOWEROFFACTIVE = 84
1346Const SPI_SETLOWPOWERACTIVE = 85
1347Const SPI_SETPOWEROFFACTIVE = 86
1348Const SPI_SETCURSORS = 87
1349Const SPI_SETICONS = 88
1350Const SPI_GETDEFAULTINPUTLANG = 89
1351Const SPI_SETDEFAULTINPUTLANG = 90
1352Const SPI_SETLANGTOGGLE = 91
1353Const SPI_GETWINDOWSEXTENSION = 92
1354Const SPI_SETMOUSETRAILS = 93
1355Const SPI_GETMOUSETRAILS = 94
1356Const SPI_SETSCREENSAVERRUNNING = 97
1357Const SPI_SCREENSAVERRUNNING = SPI_SETSCREENSAVERRUNNING
1358Const SPI_GETFILTERKEYS = 50
1359Const SPI_SETFILTERKEYS = 51
1360Const SPI_GETTOGGLEKEYS = 52
1361Const SPI_SETTOGGLEKEYS = 53
1362Const SPI_GETMOUSEKEYS = 54
1363Const SPI_SETMOUSEKEYS = 55
1364Const SPI_GETSHOWSOUNDS = 56
1365Const SPI_SETSHOWSOUNDS = 57
1366Const SPI_GETSTICKYKEYS = 58
1367Const SPI_SETSTICKYKEYS = 59
1368Const SPI_GETACCESSTIMEOUT = 60
1369Const SPI_SETACCESSTIMEOUT = 61
1370Const SPI_GETSERIALKEYS = 62
1371Const SPI_SETSERIALKEYS = 63
1372Const SPI_GETSOUNDSENTRY = 64
1373Const SPI_SETSOUNDSENTRY = 65
1374Const SPI_GETMOUSEHOVERWIDTH = 98
1375Const SPI_SETMOUSEHOVERWIDTH = 99
1376Const SPI_GETMOUSEHOVERHEIGHT = 100
1377Const SPI_SETMOUSEHOVERHEIGHT = 101
1378Const SPI_GETMOUSEHOVERTIME = 102
1379Const SPI_SETMOUSEHOVERTIME = 103
1380Const SPI_GETWHEELSCROLLLINES = 104
1381Const SPI_SETWHEELSCROLLLINES = 105
1382Const SPI_GETSHOWIMEUI = 110
1383Const SPI_SETSHOWIMEUI = 111
1384Const SPI_GETMOUSESPEED = 112
1385Const SPI_SETMOUSESPEED = 113
1386Const SPI_GETSCREENSAVERRUNNING = 114
1387Const SPI_GETACTIVEWINDOWTRACKING = &H1000 'Windows 2000 or later
1388Const SPI_SETACTIVEWINDOWTRACKING = &H1001
1389Const SPI_GETMENUANIMATION = &H1002
1390Const SPI_SETMENUANIMATION = &H1003
1391Const SPI_GETCOMBOBOXANIMATION = &H1004
1392Const SPI_SETCOMBOBOXANIMATION = &H1005
1393Const SPI_GETLISTBOXSMOOTHSCROLLING = &H1006
1394Const SPI_SETLISTBOXSMOOTHSCROLLING = &H1007
1395Const SPI_GETGRADIENTCAPTIONS = &H1008
1396Const SPI_SETGRADIENTCAPTIONS = &H1009
1397Const SPI_GETMENUUNDERLINES = &H100A
1398Const SPI_SETMENUUNDERLINES = &H100B
1399Const SPI_GETACTIVEWNDTRKZORDER = &H100C
1400Const SPI_SETACTIVEWNDTRKZORDER = &H100D
1401Const SPI_GETHOTTRACKING = &H100E
1402Const SPI_SETHOTTRACKING = &H100F
1403Const SPI_GETFOREGROUNDLOCKTIMEOUT = &H2000
1404Const SPI_SETFOREGROUNDLOCKTIMEOUT = &H2001
1405Const SPI_GETACTIVEWNDTRKTIMEOUT = &H2002
1406Const SPI_SETACTIVEWNDTRKTIMEOUT = &H2003
1407Const SPI_GETFOREGROUNDFLASHCOUNT = &H2004
1408Const SPI_SETFOREGROUNDFLASHCOUNT = &H2005
1409Const SPIF_UPDATEINIFILE = &H0001
1410Const SPIF_SENDWININICHANGE = &H0002
1411Const SPIF_SENDCHANGE = SPIF_SENDWININICHANGE
1412Declare Function SystemParametersInfo Lib "user32" Alias _FuncName_SystemParametersInfo (uiAction As DWord, uiParam As DWord, pvParam As VoidPtr, fWinIni As DWord) As BOOL
1413
1414Const CDS_UPDATEREGISTRY = &H00000001
1415Const CDS_TEST = &H00000002
1416Const CDS_FULLSCREEN = &H00000004
1417Const CDS_GLOBAL = &H00000008
1418Const CDS_SET_PRIMARY = &H00000010
1419Const CDS_VIDEOPARAMETERS = &H00000020
1420Const CDS_RESET = &H40000000
1421Const CDS_NORESET = &H10000000
1422
1423Const DISP_CHANGE_SUCCESSFUL = 0
1424Const DISP_CHANGE_RESTART = 1
1425Const DISP_CHANGE_FAILED = -1
1426Const DISP_CHANGE_BADMODE = -2
1427Const DISP_CHANGE_NOTUPDATED = -3
1428Const DISP_CHANGE_BADFLAGS = -4
1429Const DISP_CHANGE_BADPARAM = -5
1430Const DISP_CHANGE_BADDUALVIEW = -6
1431
1432#ifdef _INC_GDI
1433Declare Function ChangeDisplaySettingsA Lib "user32" (ByVal lpDevMode As *DEVMODEA, ByVal dwFlags As DWord) As Long
1434Declare Function ChangeDisplaySettingsW Lib "user32" (ByVal lpDevMode As *DEVMODEW, ByVal dwFlags As DWord) As Long
1435#ifdef UNICODE
1436Declare Function ChangeDisplaySettings Lib "user32" Alias _FuncName_ChangeDisplaySettings (ByVal lpDevMode As *DEVMODEW, ByVal dwFlags As DWord) As Long
1437#else
1438Declare Function ChangeDisplaySettings Lib "user32" Alias _FuncName_ChangeDisplaySettings (ByVal lpDevMode As *DEVMODEA, ByVal dwFlags As DWord) As Long
1439#endif
1440
1441Declare Function ChangeDisplaySettingsExA Lib "user32" (ByVal lpszDeviceName As LPCSTR, ByVal lpDevMode As *DEVMODEA, ByVal hwnd As HWND, ByVal dwFlags As DWord, ByVal lParam As VoidPtr) As Long
1442Declare Function ChangeDisplaySettingsExW Lib "user32" (ByVal lpszDeviceName As LPCWSTR, ByVal lpDevMode As *DEVMODEW, ByVal hwnd As HWND, ByVal dwFlags As DWord, ByVal lParam As VoidPtr) As Long
1443#ifdef UNICODE
1444Declare Function ChangeDisplaySettingsEx Lib "user32" Alias _FuncName_ChangeDisplaySettingsEx (ByVal lpszDeviceName As LPCWSTR, ByVal lpDevMode As *DEVMODEW, ByVal hwnd As HWND, ByVal dwFlags As DWord, ByVal lParam As VoidPtr) As Long
1445#else
1446Declare Function ChangeDisplaySettingsEx Lib "user32" Alias _FuncName_ChangeDisplaySettingsEx (ByVal lpszDeviceName As LPCSTR, ByVal lpDevMode As *DEVMODEA, ByVal hwnd As HWND, ByVal dwFlags As DWord, ByVal lParam As VoidPtr) As Long
1447#endif
1448
1449Const ENUM_CURRENT_SETTINGS = ((-1) As DWord)
1450Const ENUM_REGISTRY_SETTINGS = ((-2) As DWord)
1451
1452Declare Function EnumDisplaySettingsA Lib "user32" (ByVal lpszDeviceName As LPCSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEA) As BOOL
1453Declare Function EnumDisplaySettingsW Lib "user32" (ByVal lpszDeviceName As LPCWSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEW) As BOOL
1454#ifdef UNICODE
1455Declare Function EnumDisplaySettings Lib "user32" Alias _FuncName_EnumDisplaySettings (ByVal lpszDeviceName As LPCWSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEW) As BOOL
1456#else
1457Declare Function EnumDisplaySettings Lib "user32" Alias _FuncName_EnumDisplaySettings (ByVal lpszDeviceName As LPCSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEA) As BOOL
1458#endif
1459
1460/*#ifdef(WINVER >= 0x0500)
1461Declare Function EnumDisplaySettingsExA Lib "user32" (ByVal lpszDeviceName As LPCSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEA, ByVal dwFlags As DWord) As BOOL
1462Declare Function EnumDisplaySettingsExW Lib "user32" (ByVal lpszDeviceName As LPCWSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEW, ByVal dwFlags As DWord) As BOOL
1463#ifdef UNICODE
1464Declare Function EnumDisplaySettingsEx Lib "user32" Alias _FuncName_EnumDisplaySettingsEx (ByVal lpszDeviceName As LPCWSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEW, ByVal dwFlags As DWord) As BOOL
1465#else
1466Declare Function EnumDisplaySettingsEx Lib "user32" Alias _FuncName_EnumDisplaySettingsEx (ByVal lpszDeviceName As LPCSTR, ByVal iModeNum As DWord, ByVal lpDevMode As *DEVMODEA, ByVal dwFlags As DWord) As BOOL
1467#endif
1468
1469Const EDS_RAWMODE = &H00000002
1470
1471Declare Function EnumDisplayDevicesA Lib "user32" (ByVal lpDevice As LPCSTR, ByVal iDevNum As DWord, ByVal lpDisplayDevice As *DISPLAY_DEVICEA, ByVal dwFlags As DWord) As BOOL
1472Declare Function EnumDisplayDevicesW Lib "user32" (ByVal lpDevice As LPCWSTR, ByVal iDevNum As DWord, ByVal lpDisplayDevice As *DISPLAY_DEVICEW, ByVal dwFlags As DWord)As BOOL
1473#ifdef UNICODE
1474Declare Function EnumDisplayDevices Lib "user32" Alias _FuncName_EnumDisplayDevices (ByVal lpDevice As LPCWSTR, ByVal iDevNum As DWord, ByVal lpDisplayDevice As *DISPLAY_DEVICEW, ByVal dwFlags As DWord)As BOOL
1475#else
1476Declare Function EnumDisplayDevices Lib "user32" Alias _FuncName_EnumDisplayDevices (ByVal lpDevice As LPCSTR, ByVal iDevNum As DWord, ByVal lpDisplayDevice As *DISPLAY_DEVICEA, ByVal dwFlags As DWord) As BOOL
1477#endif
1478#endif */ /* WINVER >= 0x0500 */
1479#endif ' _INC_GDI
1480
1481Const TME_HOVER = &H00000001
1482Const TME_LEAVE = &H00000002
1483Const TME_NONCLIENT = &H00000010
1484Const TME_QUERY = &H40000000
1485Const TME_CANCEL = &H80000000
1486Const HOVER_DEFAULT = &HFFFFFFFF
1487Type TRACKMOUSEEVENT
1488 cbSize As DWord
1489 dwFlags As DWord
1490 hwndTrack As HWND
1491 dwHoverTime As DWord
1492End Type
1493Declare Function TrackMouseEvent Lib "user32" (ByRef EventTrack As TRACKMOUSEEVENT) As BOOL
1494
1495Const TPM_LEFTBUTTON = &H0000
1496Const TPM_RIGHTBUTTON = &H0002
1497Const TPM_LEFTALIGN = &H0000
1498Const TPM_CENTERALIGN = &H0004
1499Const TPM_RIGHTALIGN = &H0008
1500Const TPM_TOPALIGN = &H0000
1501Const TPM_VCENTERALIGN = &H0010
1502Const TPM_BOTTOMALIGN = &H0020
1503Const TPM_HORIZONTAL = &H0000
1504Const TPM_VERTICAL = &H0040
1505Const TPM_NONOTIFY = &H0080
1506Const TPM_RETURNCMD = &H0100
1507Const TPM_RECURSE = &H0001
1508Declare Function TrackPopupMenu Lib "user32" (hMenu As HMENU, uFlags As DWord, x As Long, y As Long, nReserved As Long, ByVal hWnd As HWND, ByRef prcRect As RECT) As BOOL
1509
1510declare function UnhookWindowsHookEx lib "user32" (ByVal hhk As HHOOK) As BOOL
1511Declare Function UnregisterClass Lib "user32" Alias _FuncName_UnregisterClass (pClassName As PCTSTR, hinst As HINSTANCE) As BOOL
1512Declare Function UnregisterHotKey Lib "user32" (hwnd As HWND, id As Long) As BOOL
1513Declare Function UpdateWindow Lib "user32" (hWnd As HWND) As BOOL
1514Declare Function ValidateRect Lib "user32" (hWnd As HWND, ByRef lpRect As RECT) As BOOL
1515Declare Function ValidateRgn Lib "user32" (hWnd As HWND, hRgn As HRGN) As BOOL
1516Declare Function WaitForInputIdle Lib "user32" (hProcess As HANDLE, dwMilliseconds As DWord) As DWord
1517
1518Declare Function WaitMessage Lib "user32" () As BOOL
1519Declare Function WindowFromDC Lib "user32" (hDC As HDC) As HWND
1520Declare Function WindowFromPoint Lib "user32" (ptX As Long, ptY As Long) As HWND
1521Declare Function wsprintf cdecl Lib "user32" Alias _FuncName_wsprintf (pText As PTSTR, pFormat As PCTSTR, ...) As Long
1522Declare Function wvsprintf Lib "user32" Alias _FuncName_wvsprintf (pOutput As PTSTR, pFormat As PCTSTR, arglist As DWordPtr) As Long
1523
1524
1525#endif '_INC_WINDOW
Note: See TracBrowser for help on using the repository browser.