19
|
1 /**
|
3
|
2 * This module declared window APIs required by DWT but not in std.c.windows.windows,
|
|
3 * The one in the std.c.windows.windows module are aliased
|
|
4 */
|
|
5
|
|
6
|
|
7 module dwt.internal.win32.WINAPI;
|
|
8
|
15
|
9 public import dwt.internal.win32.WINTYPES;
|
19
|
10 import tango_sys_win32.Types;
|
|
11 import STDWIN = tango_sys_win32.UserGdi;
|
|
12
|
|
13 extern (Windows){
|
|
14 int AddFontResourceExA(char* lpszFilename, int fl, void* pdv);
|
|
15 int AddFontResourceExW(wchar* lpszFilename, int fl, void* pdv);
|
|
16
|
24
|
17 BOOL AlphaBlend(
|
|
18 HDC hdcDest, // handle to destination DC
|
|
19 int nXOriginDest, // x-coord of upper-left corner
|
|
20 int nYOriginDest, // y-coord of upper-left corner
|
|
21 int nWidthDest, // destination width
|
|
22 int nHeightDest, // destination height
|
|
23 HDC hdcSrc, // handle to source DC
|
|
24 int nXOriginSrc, // x-coord of upper-left corner
|
|
25 int nYOriginSrc, // y-coord of upper-left corner
|
|
26 int nWidthSrc, // source width
|
|
27 int nHeightSrc, // source height
|
|
28 BLENDFUNCTION blendFunction // alpha-blending function
|
|
29 );
|
25
|
30 BOOL TransparentBlt(
|
|
31 HDC hdcDest, // handle to destination DC
|
|
32 int nXOriginDest, // x-coord of destination upper-left corner
|
|
33 int nYOriginDest, // y-coord of destination upper-left corner
|
|
34 int nWidthDest, // width of destination rectangle
|
|
35 int hHeightDest, // height of destination rectangle
|
|
36 HDC hdcSrc, // handle to source DC
|
|
37 int nXOriginSrc, // x-coord of source upper-left corner
|
|
38 int nYOriginSrc, // y-coord of source upper-left corner
|
|
39 int nWidthSrc, // width of source rectangle
|
|
40 int nHeightSrc, // height of source rectangle
|
|
41 UINT crTransparent // color to make transparent
|
|
42 );
|
28
|
43 int IIDFromString (wchar* lpsz, byte* lpiid);
|
30
|
44 HRESULT ScriptJustify(
|
|
45 SCRIPT_VISATTR* psva,
|
|
46 int* piAdvance,
|
|
47 int cGlyphs,
|
|
48 int iDx,
|
|
49 int iMinKashida,
|
|
50 int* piJustify
|
|
51 );
|
28
|
52
|
30
|
53 HRESULT ScriptRecordDigitSubstitution(
|
|
54 LCID Locale,
|
|
55 SCRIPT_DIGITSUBSTITUTE* psds
|
|
56 );
|
|
57 HRESULT ScriptApplyDigitSubstitution(
|
|
58 SCRIPT_DIGITSUBSTITUTE* psds,
|
|
59 SCRIPT_CONTROL* psc,
|
|
60 SCRIPT_STATE* pss
|
|
61 );
|
32
|
62
|
|
63 // UxTheme.dll
|
|
64 BOOL IsAppThemed();
|
|
65
|
|
66 HRESULT DrawThemeBackground(
|
|
67 HTHEME hTheme,
|
|
68 HDC hdc,
|
|
69 int iPartId,
|
|
70 int iStateId,
|
|
71 RECT *pRect,
|
|
72 RECT *pClipRect
|
|
73 );
|
|
74 HRESULT DrawThemeEdge(
|
|
75 HTHEME hTheme,
|
|
76 HDC hdc,
|
|
77 int iPartId,
|
|
78 int iStateId,
|
|
79 LPCRECT pDestRect,
|
|
80 UINT uEdge,
|
|
81 UINT uFlags,
|
|
82 LPRECT pContentRect
|
|
83 );
|
|
84 HRESULT DrawThemeIcon(
|
|
85 HTHEME hTheme,
|
|
86 HDC hdc,
|
|
87 int iPartId,
|
|
88 int iStateId,
|
|
89 LPCRECT pRect,
|
|
90 HIMAGELIST himl,
|
|
91 int iImageIndex
|
|
92 );
|
|
93 HRESULT DrawThemeParentBackground(
|
|
94 HWND hwnd,
|
|
95 HDC hdc,
|
|
96 RECT *prc
|
|
97 );
|
|
98 HRESULT DrawThemeText(
|
|
99 HTHEME hTheme,
|
|
100 HDC hdc,
|
|
101 int iPartId,
|
|
102 int iStateId,
|
|
103 LPCWSTR pszText,
|
|
104 int iCharCount,
|
|
105 DWORD dwTextFlags,
|
|
106 DWORD dwTextFlags2,
|
|
107 LPCRECT pRect
|
|
108 );
|
|
109
|
|
110
|
|
111
|
19
|
112 }
|
3
|
113
|
|
114
|
|
115 // Windows API
|
|
116 extern (Windows){
|
|
117 int AbortDoc(HDC hdc);
|
|
118 HKL ActivateKeyboardLayout(
|
|
119 HKL hkl, // handle to keyboard layout
|
|
120 UINT Flags // keyboard layout flags
|
|
121 );
|
|
122 BOOL AdjustWindowRectEx(
|
|
123 LPRECT lpRect, // pointer to client-rectangle structure
|
|
124 DWORD dwStyle, // window styles
|
|
125 BOOL bMenu, // menu-present flag
|
|
126 DWORD dwExStyle // extended style
|
|
127 );
|
|
128 BOOL Arc(
|
|
129 HDC hdc, // handle to device context
|
|
130 int nLeftRect, // x-coord of bounding rectangle's upper-left corner
|
|
131 int nTopRect, // y-coord of bounding rectangle's upper-left corner
|
|
132 int nRightRect, // x-coord of bounding rectangle's lower-right corner
|
|
133 int nBottomRect, // y-coord of bounding rectangle's lower-right corner
|
|
134 int nXStartArc, // first radial ending point
|
|
135 int nYStartArc, // first radial ending point
|
|
136 int nXEndArc, // second radial ending point
|
|
137 int nYEndArc // second radial ending point
|
|
138 );
|
|
139 HDWP BeginDeferWindowPos(
|
|
140 int nNumWindows
|
|
141 );
|
|
142 alias STDWIN.BeginPaint BeginPaint;
|
|
143 BOOL BitBlt(
|
|
144 HDC hdcDest, // handle to destination device context
|
|
145 int nXDest, // x-coordinate of destination rectangle's upper-left corner
|
|
146 int nYDest, // y-coordinate of destination rectangle's upper-left corner
|
|
147 int nWidth, // width of destination rectangle
|
|
148 int nHeight, // height of destination rectangle
|
|
149 HDC hdcSrc, // handle to source device context
|
|
150 int nXSrc, // x-coordinate of source rectangle's upper-left corner
|
|
151 int nYSrc, // y-coordinate of source rectangle's upper-left corner
|
|
152 DWORD dwRop // raster operation code
|
|
153 );
|
|
154 BOOL BringWindowToTop(
|
|
155 HWND hWnd // handle to window
|
|
156 );
|
|
157 LRESULT CallNextHookEx(
|
|
158 HHOOK hhk, // handle to current hook
|
|
159 int nCode, // hook code passed to hook procedure
|
|
160 WPARAM_I wParam, // value passed to hook procedure
|
|
161 LPARAM lParam // value passed to hook procedure
|
|
162 );
|
|
163 LRESULT CallWindowProcA(
|
|
164 WNDPROC_I lpPrevWndFunc, // pointer to previous procedure
|
|
165 HWND hWnd, // handle to window
|
|
166 UINT Msg, // message
|
|
167 WPARAM_I wParam, // first message parameter
|
|
168 LPARAM lParam // second message parameter
|
|
169 );
|
|
170 LRESULT CallWindowProcW(
|
|
171 WNDPROC_I lpPrevWndFunc, // pointer to previous procedure
|
|
172 HWND hWnd, // handle to window
|
|
173 UINT Msg, // message
|
|
174 WPARAM_I wParam, // first message parameter
|
|
175 LPARAM lParam // second message parameter
|
|
176 );
|
|
177 LPSTR CharLowerA(
|
|
178 LPSTR lpsz // single character or pointer to string
|
|
179 );
|
|
180 LPWSTR CharLowerW(
|
|
181 LPWSTR lpsz // single character or pointer to string
|
|
182 );
|
|
183 LPSTR CharUpperA(
|
|
184 LPSTR lpsz // single character or pointer to string
|
|
185 );
|
|
186 LPWSTR CharUpperW(
|
|
187 LPWSTR lpsz // single character or pointer to string
|
|
188 );
|
|
189 DWORD CheckMenuItem(
|
|
190 HMENU hmenu, // handle to menu
|
|
191 UINT uIDCheckItem, // menu item to check or uncheck
|
|
192 UINT uCheck // menu item flags
|
|
193 );
|
|
194 BOOL ChooseColorA(
|
|
195 LPCHOOSECOLORA lpcc // pointer to structure with initialization data
|
|
196 );
|
|
197 BOOL ChooseColorW(
|
|
198 LPCHOOSECOLORW lpcc // pointer to structure with initialization data
|
|
199 );
|
|
200 BOOL ChooseFontA(
|
|
201 LPCHOOSEFONTA lpcf // pointer to structure with initialization data
|
|
202 );
|
|
203 BOOL ChooseFontW(
|
|
204 LPCHOOSEFONTW lpcf // pointer to structure with initialization data
|
|
205 );
|
|
206 alias STDWIN.ClientToScreen ClientToScreen;
|
|
207 BOOL CloseClipboard();
|
|
208 int CombineRgn(
|
|
209 HRGN hrgnDest, // handle to destination region
|
|
210 HRGN hrgnSrc1, // handle to source region
|
|
211 HRGN hrgnSrc2, // handle to source region
|
|
212 int fnCombineMode // region combining mode
|
|
213 );
|
|
214 alias STDWIN.CloseHandle CloseHandle;
|
|
215 DWORD CommDlgExtendedError();
|
|
216
|
|
217 version(WinCE){
|
|
218 BOOL CommandBar_AddAdornments(HWND hwndCB, DWORD dwFlags, DWORD dwReserved);
|
|
219 HWND CommandBar_Create(HINSTANCE hInst, HWND hwndParent, int idCmdBar);
|
|
220 void CommandBar_Destroy(HWND hwndCB);
|
|
221 BOOL CommandBar_DrawMenuBar(HWND hwndCB, int iButton);
|
|
222 int CommandBar_Height(HWND hwndCB);
|
|
223 int CommandBar_InsertMenubarEx(HWND hwndCB, HINSTANCE hInst, int pszMenu, int iButton);
|
|
224 int CommandBar_Show(HWND hwndCB, int fShow);
|
|
225 }
|
|
226
|
|
227 HANDLE CopyImage(
|
|
228 HANDLE hImage, // handle to the image to copy
|
|
229 UINT uType, // type of image to copy
|
|
230 int cxDesired, // desired width of new image
|
|
231 int cyDesired, // desired height of new image
|
|
232 UINT fuFlags // copy flags
|
|
233 );
|
|
234 HACCEL CreateAcceleratorTableA(
|
|
235 LPACCEL lpaccl, // pointer to structure array with accelerator data
|
|
236 int cEntries // number of structures in the array
|
|
237 );
|
|
238 HACCEL CreateAcceleratorTableW(
|
|
239 LPACCEL lpaccl, // pointer to structure array with accelerator data
|
|
240 int cEntries // number of structures in the array
|
|
241 );
|
|
242 HBITMAP CreateBitmap(
|
|
243 int nWidth, // bitmap width, in pixels
|
|
244 int nHeight, // bitmap height, in pixels
|
|
245 UINT cPlanes, // number of color planes used by device
|
|
246 UINT cBitsPerPel, // number of bits required to identify a color
|
|
247 VOID *lpvBits // pointer to array containing color data
|
|
248 );
|
|
249 alias STDWIN.CreateCaret CreateCaret;
|
|
250 HBITMAP CreateCompatibleBitmap(
|
|
251 HDC hdc, // handle to device context
|
|
252 int nWidth, // width of bitmap, in pixels
|
|
253 int nHeight // height of bitmap, in pixels
|
|
254 );
|
|
255 alias STDWIN.CreateCompatibleDC CreateCompatibleDC;
|
|
256 HCURSOR CreateCursor(
|
|
257 HINSTANCE hInst, // handle to application instance
|
|
258 int xHotSpot, // horizontal position of hot spot
|
|
259 int yHotSpot, // vertical position of hot spot
|
|
260 int nWidth, // cursor width
|
|
261 int nHeight, // cursor height
|
|
262 VOID *pvANDPlane, // pointer to AND bitmask array
|
|
263 VOID *pvXORPlane // pointer to XOR bitmask array
|
|
264 );
|
|
265 HDC CreateDCA(
|
|
266 LPCSTR lpszDriver, // pointer to string specifying driver name
|
|
267 LPCSTR lpszDevice, // pointer to string specifying device name
|
|
268 LPCSTR lpszOutput, // do not use; set to NULL
|
|
269 DEVMODE *lpInitData
|
|
270 // pointer to optional printer data
|
|
271 );
|
|
272 HDC CreateDCW(
|
|
273 LPCWSTR lpszDriver, // pointer to string specifying driver name
|
|
274 LPCWSTR lpszDevice, // pointer to string specifying device name
|
|
275 LPCWSTR lpszOutput, // do not use; set to NULL
|
|
276 DEVMODE *lpInitData
|
|
277 // pointer to optional printer data
|
|
278 );
|
|
279 HBITMAP CreateDIBSection(
|
|
280 HDC hdc, // handle to device context
|
|
281 BITMAPINFO *pbmi,
|
|
282 // pointer to structure containing bitmap size,
|
|
283 // format, and color data
|
|
284 UINT iUsage, // color data type indicator: RGB values or
|
|
285 // palette indexes
|
|
286 VOID *ppvBits, // pointer to variable to receive a pointer to
|
|
287 // the bitmap's bit values
|
|
288 HANDLE hSection, // optional handle to a file mapping object
|
|
289 DWORD dwOffset // offset to the bitmap bit values within the
|
|
290 // file mapping object
|
|
291 );
|
|
292 HANDLE CreateEventA(
|
|
293 LPSECURITY_ATTRIBUTES lpEventAttributes,
|
|
294 // pointer to security attributes
|
|
295 BOOL bManualReset, // flag for manual-reset event
|
|
296 BOOL bInitialState, // flag for initial state
|
|
297 LPCSTR lpName // pointer to event-object name
|
|
298 );
|
|
299 HANDLE CreateEventW(
|
|
300 LPSECURITY_ATTRIBUTES lpEventAttributes,
|
|
301 // pointer to security attributes
|
|
302 BOOL bManualReset, // flag for manual-reset event
|
|
303 BOOL bInitialState, // flag for initial state
|
|
304 LPCWSTR lpName // pointer to event-object name
|
|
305 );
|
|
306
|
|
307 alias STDWIN.CreateFileA CreateFileA;
|
|
308 alias STDWIN.CreateFileW CreateFileW;
|
|
309 HFONT CreateFontIndirectA(LOGFONTA* lplf );
|
|
310 HFONT CreateFontIndirectW(LOGFONTW* lplf );
|
|
311 HICON CreateIconIndirect(
|
|
312 PICONINFO piconinfo // pointer to icon information structure
|
|
313 );
|
|
314 HMENU CreateMenu();
|
|
315 HPALETTE CreatePalette(
|
|
316 LOGPALETTE *lplgpl // pointer to logical color palette
|
|
317 );
|
|
318 HBRUSH CreatePatternBrush(
|
|
319 HBITMAP hbmp // handle to bitmap
|
|
320 );
|
|
321 alias STDWIN.CreatePen CreatePen;
|
|
322 HRGN CreatePolygonRgn(
|
|
323 POINT *lppt, // pointer to array of points
|
|
324 int cPoints, // number of points in array
|
|
325 int fnPolyFillMode // polygon-filling mode
|
|
326 );
|
|
327 HMENU CreatePopupMenu();
|
|
328 alias STDWIN.CreateRectRgn CreateRectRgn;
|
|
329 HBRUSH CreateSolidBrush(
|
|
330 COLORREF crColor // brush color value
|
|
331 );
|
|
332
|
|
333 alias STDWIN.CreateWindowExA CreateWindowExA;
|
|
334 HWND CreateWindowExW(
|
|
335 DWORD dwExStyle, // extended window style
|
|
336 LPCWSTR lpClassName, // pointer to registered class name
|
|
337 LPCWSTR lpWindowName, // pointer to window name
|
|
338 DWORD dwStyle, // window style
|
|
339 int x, // horizontal position of window
|
|
340 int y, // vertical position of window
|
|
341 int nWidth, // window width
|
|
342 int nHeight, // window height
|
|
343 HWND hWndParent, // handle to parent or owner window
|
|
344 HMENU hMenu, // handle to menu, or child-window identifier
|
|
345 HINSTANCE hInstance, // handle to application instance
|
|
346 LPVOID lpParam // pointer to window-creation data
|
|
347 );
|
|
348
|
|
349 LRESULT DefFrameProcA(
|
|
350 HWND hWnd, // handle to MDI frame window
|
|
351 HWND hWndMDIClient, // handle to MDI client window
|
|
352 UINT uMsg, // message
|
|
353 WPARAM_I wParam, // first message parameter
|
|
354 LPARAM lParam // second message parameter
|
|
355 );
|
|
356 LRESULT DefFrameProcW(
|
|
357 HWND hWnd, // handle to MDI frame window
|
|
358 HWND hWndMDIClient, // handle to MDI client window
|
|
359 UINT uMsg, // message
|
|
360 WPARAM_I wParam, // first message parameter
|
|
361 LPARAM lParam // second message parameter
|
|
362 );
|
|
363 LRESULT DefMDIChildProcA(
|
|
364 HWND hWnd, // handle to MDI child window
|
|
365 UINT uMsg, // message
|
|
366 WPARAM_I wParam, // first message parameter
|
|
367 LPARAM lParam // second message parameter
|
|
368 );
|
|
369 LRESULT DefMDIChildProcW(
|
|
370 HWND hWnd, // handle to MDI child window
|
|
371 UINT uMsg, // message
|
|
372 WPARAM_I wParam, // first message parameter
|
|
373 LPARAM lParam // second message parameter
|
|
374 );
|
|
375 alias STDWIN.DefWindowProcA DefWindowProcA;
|
|
376 LRESULT DefWindowProcW(
|
|
377 HWND hWnd, // handle to window
|
|
378 UINT Msg, // message identifier
|
|
379 WPARAM_I wParam, // first message parameter
|
|
380 LPARAM lParam // second message parameter
|
|
381 );
|
|
382
|
|
383 HDWP DeferWindowPos(
|
|
384 HDWP hWinPosInfo, // handle to internal structure
|
|
385 HWND hWnd, // handle to window to position
|
|
386 HWND hWndInsertAfter, // placement-order handle
|
|
387 int x, // horizontal position
|
|
388 int y, // vertical position
|
|
389 int cx, // width
|
|
390 int cy, // height
|
|
391 UINT uFlags // window-positioning flags
|
|
392 );
|
|
393
|
|
394 alias STDWIN.DeleteDC DeleteDC;
|
|
395 alias STDWIN.DeleteFileA DeleteFileA;
|
|
396 alias STDWIN.DeleteFileW DeleteFileW;
|
|
397 BOOL DeleteMenu(
|
|
398 HMENU hMenu, // handle to menu
|
|
399 UINT uPosition, // menu item identifier or position
|
|
400 UINT uFlags // menu item flag
|
|
401 );
|
|
402 alias STDWIN.DeleteObject DeleteObject;
|
|
403 BOOL DestroyAcceleratorTable(
|
|
404 HACCEL hAccel // handle to accelerator table
|
|
405 );
|
|
406 int DestroyCaret();
|
|
407 BOOL DestroyCursor(
|
|
408 HCURSOR hCursor // handle to cursor to destroy
|
|
409 );
|
|
410 BOOL DestroyIcon(
|
|
411 HICON hIcon // handle to icon to destroy
|
|
412 );
|
|
413 BOOL DestroyMenu(
|
|
414 HMENU hMenu // handle to menu to destroy
|
|
415 );
|
|
416 BOOL DestroyWindow(
|
|
417 HWND hWnd // handle to window to destroy
|
|
418 );
|
|
419 LONG DispatchMessageA(
|
|
420 MSG *lpmsg // pointer to structure with message
|
|
421 );
|
|
422 LONG DispatchMessageW(
|
|
423 MSG *lpmsg // pointer to structure with message
|
|
424 );
|
|
425 BOOL DragDetect(
|
|
426 HWND hwnd,
|
|
427 POINT pt
|
|
428 );
|
|
429 void DragFinish(
|
|
430 HDROP hDrop
|
|
431 );
|
|
432 UINT DragQueryFileA(
|
|
433 HDROP hDrop,
|
|
434 UINT iFile,
|
|
435 LPSTR lpszFile,
|
|
436 UINT cch
|
|
437 );
|
|
438 UINT DragQueryFileW(
|
|
439 HDROP hDrop,
|
|
440 UINT iFile,
|
|
441 LPWSTR lpszFile,
|
|
442 UINT cch
|
|
443 );
|
|
444 BOOL DrawEdge(
|
|
445 HDC hdc, // handle to device context
|
|
446 LPRECT qrc, // pointer to rectangle coordinates
|
|
447 UINT edge, // type of inner and outer edge to draw
|
|
448 UINT grfFlags // type of border
|
|
449 );
|
|
450 BOOL DrawFocusRect(
|
|
451 HDC hDC, // handle to device context
|
|
452 RECT *lprc // pointer to structure for rectangle
|
|
453 );
|
|
454 BOOL DrawFrameControl(
|
|
455 HDC hdc, // handle to device context
|
|
456 LPRECT lprc, // pointer to bounding rectangle
|
|
457 UINT uType, // frame-control type
|
|
458 UINT uState // frame-control state
|
|
459 );
|
|
460 BOOL DrawIconEx(
|
|
461 HDC hdc, // handle to device context
|
|
462 int xLeft, // x-coordinate of upper left corner
|
|
463 int yTop, // y-coordinate of upper left corner
|
|
464 HICON hIcon, // handle to icon to draw
|
|
465 int cxWidth, // width of the icon
|
|
466 int cyWidth, // height of the icon
|
|
467 UINT istepIfAniCur, // index of frame in animated cursor
|
|
468 HBRUSH hbrFlickerFreeDraw, // handle to background brush
|
|
469 UINT diFlags // icon-drawing flags
|
|
470 );
|
|
471 BOOL DrawMenuBar(
|
|
472 HWND hWnd // handle to window with menu bar to redraw
|
|
473 );
|
|
474 BOOL DrawStateA(
|
|
475 HDC hdc, // handle to device context
|
|
476 HBRUSH hbr, // handle to brush
|
|
477 DRAWSTATEPROC lpOutputFunc, // pointer to callback function
|
|
478 LPARAM lData, // image information
|
|
479 WPARAM_I wData, // more image information
|
|
480 int x, // horizontal location of image
|
|
481 int y, // vertical location of image
|
|
482 int cx, // width of image
|
|
483 int cy, // height of image
|
|
484 UINT fuFlags // image type and state
|
|
485 );
|
|
486 BOOL DrawStateW(
|
|
487 HDC hdc, // handle to device context
|
|
488 HBRUSH hbr, // handle to brush
|
|
489 DRAWSTATEPROC lpOutputFunc, // pointer to callback function
|
|
490 LPARAM lData, // image information
|
|
491 WPARAM_I wData, // more image information
|
|
492 int x, // horizontal location of image
|
|
493 int y, // vertical location of image
|
|
494 int cx, // width of image
|
|
495 int cy, // height of image
|
|
496 UINT fuFlags // image type and state
|
|
497 );
|
|
498 int DrawTextA(
|
|
499 HDC hDC, // handle to device context
|
|
500 LPCSTR lpString, // pointer to string to draw
|
|
501 int nCount, // string length, in characters
|
|
502 LPRECT lpRect, // pointer to struct with formatting dimensions
|
|
503 UINT uFormat // text-drawing flags
|
|
504 );
|
|
505 int DrawTextW(
|
|
506 HDC hDC, // handle to device context
|
|
507 LPCWSTR lpString, // pointer to string to draw
|
|
508 int nCount, // string length, in characters
|
|
509 LPRECT lpRect, // pointer to struct with formatting dimensions
|
|
510 UINT uFormat // text-drawing flags
|
|
511 );
|
|
512
|
|
513 BOOL Ellipse(
|
|
514 HDC hdc, // handle to device context
|
|
515 int nLeftRect, // x-coord of bounding rectangle's upper-left corner
|
|
516 int nTopRect, // y-coord of bounding rectangle's upper-left corner
|
|
517 int nRightRect, // x-coord of bounding rectangle's lower-right corner
|
|
518 int nBottomRect // y-coord of bounding rectangle's lower-right corner
|
|
519 );
|
|
520 BOOL EnableMenuItem(
|
|
521 HMENU hMenu, // handle to menu
|
|
522 UINT uIDEnableItem, // menu item to enable, disable, or gray
|
|
523 UINT uEnable // menu item flags
|
|
524 );
|
|
525 alias STDWIN.EnableScrollBar EnableScrollBar;
|
19
|
526 BOOL EnableWindow(
|
3
|
527 HWND hWnd,
|
|
528 BOOL bEnable
|
|
529 );
|
|
530 BOOL EndDeferWindowPos(
|
|
531 HDWP hWinPosInfo // handle to internal structure
|
|
532 );
|
|
533 int EndDoc(HDC hDC);
|
|
534 int EndPage(HDC hDC);
|
|
535 alias STDWIN.EndPaint EndPaint;
|
|
536 BOOL EnumDisplayMonitors(
|
|
537 HDC hdc, // handle to display DC
|
|
538 LPCRECT lprcClip, // clipping rectangle
|
|
539 MONITORENUMPROC lpfnEnum, // callback function
|
|
540 LPARAM dwData // data for callback function
|
|
541 );
|
|
542 int EnumFontFamiliesExA(
|
|
543 HDC hdc, // handle to device context
|
|
544 LPLOGFONTA lpLogfont, // pointer to logical font information
|
|
545 FONTENUMEXPROC lpEnumFontFamExProc,
|
|
546 // pointer to callback function
|
|
547 LPARAM lParam, // application-supplied data
|
|
548 DWORD dwFlags // reserved; must be zero
|
|
549 );
|
|
550 int EnumFontFamiliesExW(
|
|
551 HDC hdc, // handle to device context
|
|
552 LPLOGFONTW lpLogfont, // pointer to logical font information
|
|
553 FONTENUMEXPROC lpEnumFontFamExProc,
|
|
554 // pointer to callback function
|
|
555 LPARAM lParam, // application-supplied data
|
|
556 DWORD dwFlags // reserved; must be zero
|
|
557 );
|
|
558
|
|
559 int EnumFontFamiliesA(
|
|
560 HDC hdc, // handle to device control
|
|
561 LPCSTR lpszFamily, // pointer to family-name string
|
|
562 FONTENUMPROC lpEnumFontFamProc,
|
|
563 // pointer to callback function
|
|
564 LPARAM lParam // pointer to application-supplied data
|
|
565 );
|
|
566 int EnumFontFamiliesW(
|
|
567 HDC hdc, // handle to device control
|
|
568 LPCWSTR lpszFamily, // pointer to family-name string
|
|
569 FONTENUMPROC lpEnumFontFamProc,
|
|
570 // pointer to callback function
|
|
571 LPARAM lParam // pointer to application-supplied data
|
|
572 );
|
|
573 BOOL EnumSystemLanguageGroupsA(
|
|
574 LANGUAGEGROUP_ENUMPROC pLangGroupEnumProc, // callback function
|
|
575 DWORD dwFlags, // language groups
|
|
576 LONG_PTR lParam // callback parameter
|
|
577 );
|
|
578 BOOL EnumSystemLanguageGroupsW(
|
|
579 LANGUAGEGROUP_ENUMPROC pLangGroupEnumProc, // callback function
|
|
580 DWORD dwFlags, // language groups
|
|
581 LONG_PTR lParam // callback parameter
|
|
582 );
|
|
583 BOOL EnumSystemLocalesA(
|
|
584 LOCALE_ENUMPROC lpLocaleEnumProc, // callback function
|
|
585 DWORD dwFlags // locales
|
|
586 );
|
|
587 BOOL EnumSystemLocalesW(
|
|
588 LOCALE_ENUMPROC lpLocaleEnumProc, // callback function
|
|
589 DWORD dwFlags // locales
|
|
590 );
|
|
591 BOOL EqualRect(
|
|
592 RECT *lprc1, // pointer to structure with first rectangle
|
|
593 RECT *lprc2 // pointer to structure with second rectangle
|
|
594 );
|
|
595 BOOL EqualRgn(
|
|
596 HRGN hSrcRgn1, // handle to first region
|
|
597 HRGN hSrcRgn2 // handle to second region
|
|
598 );
|
|
599 DWORD ExpandEnvironmentStringsA(
|
|
600 LPCSTR lpSrc, // pointer to string with environment variables
|
|
601 LPSTR lpDst, // pointer to string with expanded environment
|
|
602 // variables
|
|
603 DWORD nSize // maximum characters in expanded string
|
|
604 );
|
|
605 DWORD ExpandEnvironmentStringsW(
|
|
606 LPCWSTR lpSrc, // pointer to string with environment variables
|
|
607 LPWSTR lpDst, // pointer to string with expanded environment
|
|
608 // variables
|
|
609 DWORD nSize // maximum characters in expanded string
|
|
610 );
|
|
611 BOOL ExtTextOutA(
|
|
612 HDC hdc, // handle to device context
|
|
613 int X, // x-coordinate of reference point
|
|
614 int Y, // y-coordinate of reference point
|
|
615 UINT fuOptions, // text-output options
|
|
616 RECT *lprc, // optional clipping and/or opaquing rectangle
|
|
617 LPCSTR lpString, // points to string
|
|
618 UINT cbCount, // number of characters in string
|
|
619 INT *lpDx // pointer to array of intercharacter spacing
|
|
620 // values
|
|
621 );
|
|
622 BOOL ExtTextOutW(
|
|
623 HDC hdc, // handle to device context
|
|
624 int X, // x-coordinate of reference point
|
|
625 int Y, // y-coordinate of reference point
|
|
626 UINT fuOptions, // text-output options
|
|
627 RECT *lprc, // optional clipping and/or opaquing rectangle
|
|
628 LPCWSTR lpString, // points to string
|
|
629 UINT cbCount, // number of characters in string
|
|
630 INT *lpDx // pointer to array of intercharacter spacing
|
|
631 // values
|
|
632 );
|
|
633 UINT ExtractIconExA(
|
|
634 LPCSTR lpszFile,
|
|
635 int nIconIndex,
|
|
636 HICON *phiconLarge,
|
|
637 HICON *phiconSmall,
|
|
638 UINT nIcons
|
|
639 );
|
|
640 UINT ExtractIconExW(
|
|
641 LPCWSTR lpszFile,
|
|
642 int nIconIndex,
|
|
643 HICON *phiconLarge,
|
|
644 HICON *phiconSmall,
|
|
645 UINT nIcons
|
|
646 );
|
|
647 alias STDWIN.FillRect FillRect;
|
|
648 HRSRC FindResourceA(
|
|
649 HMODULE hModule, // module handle
|
|
650 LPCSTR lpName, // pointer to resource name
|
|
651 LPCSTR lpType // pointer to resource type
|
|
652 );
|
|
653 HRSRC FindResourceW(
|
|
654 HMODULE hModule, // module handle
|
|
655 LPCWSTR lpName, // pointer to resource name
|
|
656 LPCWSTR lpType // pointer to resource type
|
|
657 );
|
|
658 HWND FindWindowA(
|
|
659 LPCSTR lpClassName, // pointer to class name
|
|
660 LPCSTR lpWindowName // pointer to window name
|
|
661 );
|
|
662 HWND FindWindowW(
|
|
663 LPCWSTR lpClassName, // pointer to class name
|
|
664 LPCWSTR lpWindowName // pointer to window name
|
|
665 );
|
|
666 DWORD FormatMessageA(
|
|
667 DWORD dwFlags, // source and processing options
|
|
668 LPCVOID lpSource, // pointer to message source
|
|
669 DWORD dwMessageId, // requested message identifier
|
|
670 DWORD dwLanguageId, // language identifier for requested message
|
|
671 LPSTR lpBuffer, // pointer to message buffer
|
|
672 DWORD nSize, // maximum size of message buffer
|
|
673 // va_list *Arguments // pointer to array of message inserts
|
|
674 void* Arguments
|
|
675 );
|
|
676 DWORD FormatMessageW(
|
|
677 DWORD dwFlags, // source and processing options
|
|
678 LPCVOID lpSource, // pointer to message source
|
|
679 DWORD dwMessageId, // requested message identifier
|
|
680 DWORD dwLanguageId, // language identifier for requested message
|
|
681 LPWSTR lpBuffer, // pointer to message buffer
|
|
682 DWORD nSize, // maximum size of message buffer
|
|
683 // va_list *Arguments // pointer to array of message inserts
|
|
684 void* Arguments
|
|
685 );
|
|
686 alias STDWIN.FreeLibrary FreeLibrary;
|
|
687 DWORD GdiSetBatchLimit(
|
|
688 DWORD dwLimit // batch limit
|
|
689 );
|
|
690 UINT GetACP();
|
|
691 HWND GetActiveWindow();
|
|
692 COLORREF GetBkColor(
|
|
693 HDC hdc // handle of device context
|
|
694 );
|
|
695 HWND GetCapture();
|
|
696 BOOL GetCaretPos(
|
|
697 LPPOINT lpPoint // address of structure to receive coordinates
|
|
698 );
|
|
699 BOOL GetCharABCWidthsA(
|
|
700 HDC hdc, // handle to device context
|
|
701 UINT uFirstChar, // first character in range to query
|
|
702 UINT uLastChar, // last character in range to query
|
|
703 LPABC lpabc // pointer to character-width structure
|
|
704 );
|
|
705 BOOL GetCharABCWidthsW(
|
|
706 HDC hdc, // handle to device context
|
|
707 UINT uFirstChar, // first character in range to query
|
|
708 UINT uLastChar, // last character in range to query
|
|
709 LPABC lpabc // pointer to character-width structure
|
|
710 );
|
|
711
|
|
712 BOOL GetCharWidthA(
|
|
713 HDC hdc, // handle to device context
|
|
714 UINT iFirstChar, // first character in range to query
|
|
715 UINT iLastChar, // last character in range to query
|
|
716 LPINT lpBuffer // pointer to buffer for widths
|
|
717 );
|
|
718 BOOL GetCharWidthW(
|
|
719 HDC hdc, // handle to device context
|
|
720 UINT iFirstChar, // first character in range to query
|
|
721 UINT iLastChar, // last character in range to query
|
|
722 LPINT lpBuffer // pointer to buffer for widths
|
|
723 );
|
|
724 DWORD GetCharacterPlacementA(
|
|
725 HDC hdc, // handle to device context
|
|
726 LPCSTR lpString, // pointer to string
|
|
727 int nCount, // number of characters in string
|
|
728 int nMaxExtent, // maximum extent for displayed string
|
|
729 LPGCP_RESULTS lpResults,
|
|
730 // pointer to buffer for placement result
|
|
731 DWORD dwFlags // placement flags
|
|
732 );
|
|
733 DWORD GetCharacterPlacementW(
|
|
734 HDC hdc, // handle to device context
|
|
735 LPCWSTR lpString, // pointer to string
|
|
736 int nCount, // number of characters in string
|
|
737 int nMaxExtent, // maximum extent for displayed string
|
|
738 LPGCP_RESULTS lpResults,
|
|
739 // pointer to buffer for placement result
|
|
740 DWORD dwFlags // placement flags
|
|
741 );
|
|
742 BOOL GetClassInfoA(
|
|
743 HINSTANCE hInstance, // handle of application instance
|
|
744 LPCSTR lpClassName, // address of class name string
|
|
745 LPWNDCLASSA lpWndClass // address of structure for class data
|
|
746 );
|
|
747 BOOL GetClassInfoW(
|
|
748 HINSTANCE hInstance, // handle of application instance
|
|
749 LPCWSTR lpClassName, // address of class name string
|
|
750 LPWNDCLASSW lpWndClass // address of structure for class data
|
|
751 );
|
|
752 alias STDWIN.GetClientRect GetClientRect;
|
|
753 alias STDWIN.GetClipBox GetClipBox;
|
|
754 alias STDWIN.GetClipRgn GetClipRgn;
|
|
755 HANDLE GetClipboardData(
|
|
756 UINT uFormat // clipboard format
|
|
757 );
|
|
758 int GetClipboardFormatNameA(
|
|
759 UINT format, // clipboard format to retrieve
|
|
760 LPSTR lpszFormatName, // address of buffer for name
|
|
761 int cchMaxCount // length of name string in characters
|
|
762 );
|
|
763 int GetClipboardFormatNameW(
|
|
764 UINT format, // clipboard format to retrieve
|
|
765 LPWSTR lpszFormatName, // address of buffer for name
|
|
766 int cchMaxCount // length of name string in characters
|
|
767 );
|
|
768 BOOL GetComboBoxInfo(
|
|
769 HWND hwndCombo,
|
|
770 PCOMBOBOXINFO pcbi
|
|
771 );
|
|
772 alias STDWIN.GetCurrentObject GetCurrentObject;
|
|
773 DWORD GetCurrentProcessId();
|
|
774 DWORD GetCurrentThreadId();
|
|
775 HCURSOR GetCursor();
|
|
776 BOOL GetCursorPos(
|
|
777 LPPOINT lpPoint // address of structure for cursor position
|
|
778 );
|
|
779 alias STDWIN.GetDC GetDC;
|
|
780 alias STDWIN.GetDCEx GetDCEx;
|
|
781 UINT GetDIBColorTable(
|
|
782 HDC hdc, // handle to device context whose DIB is of
|
|
783 // interest
|
|
784 UINT uStartIndex, // color table index of first entry to retrieve
|
|
785 UINT cEntries, // number of color table entries to retrieve
|
|
786 RGBQUAD *pColors // pointer to buffer that receives color table
|
|
787 // entries
|
|
788 );
|
|
789 int GetDIBits(
|
|
790 HDC hdc, // handle to device context
|
|
791 HBITMAP hbmp, // handle to bitmap
|
|
792 UINT uStartScan, // first scan line to set in destination bitmap
|
|
793 UINT cScanLines, // number of scan lines to copy
|
|
794 LPVOID lpvBits, // address of array for bitmap bits
|
|
795 LPBITMAPINFO lpbi, // address of structure with bitmap data
|
|
796 UINT uUsage // RGB or palette index
|
|
797 );
|
|
798 HWND GetDesktopWindow();
|
|
799 alias STDWIN.GetDeviceCaps GetDeviceCaps;
|
|
800 int GetDialogBaseUnits();
|
|
801 alias STDWIN.GetDlgItem GetDlgItem;
|
|
802 int GetDoubleClickTime();
|
|
803 alias STDWIN.GetFocus GetFocus;
|
|
804 DWORD GetFontLanguageInfo(
|
|
805 HDC hdc // handle to a device context
|
|
806 );
|
|
807 BOOL GetGUIThreadInfo(
|
|
808 DWORD idThread,
|
|
809 LPGUITHREADINFO lpgui
|
|
810 );
|
|
811 BOOL GetIconInfo(
|
|
812 HICON hIcon, // icon handle
|
|
813 PICONINFO piconinfo // address of icon structure
|
|
814 );
|
|
815 int GetKeyNameTextA(
|
|
816 LONG lParam, // second parameter of keyboard message
|
|
817 LPSTR lpString, // pointer to buffer for key name
|
|
818 int nSize // maximum length of key-name string length
|
|
819 );
|
|
820 int GetKeyNameTextW(
|
|
821 LONG lParam, // second parameter of keyboard message
|
|
822 LPWSTR lpString, // pointer to buffer for key name
|
|
823 int nSize // maximum length of key-name string length
|
|
824 );
|
|
825 HKL GetKeyboardLayout(
|
|
826 DWORD dwLayout // thread identifier
|
|
827 );
|
|
828 SHORT GetKeyState(
|
|
829 int nVirtKey // virtual-key code
|
|
830 );
|
|
831 UINT GetKeyboardLayoutList(
|
|
832 int nBuff, // size of buffer in array element
|
|
833 HKL *lpList // buffer for keyboard layout handles
|
|
834 );
|
|
835 BOOL GetKeyboardState(
|
|
836 PBYTE lpKeyState // pointer to array to receive status data
|
|
837 );
|
|
838 HWND GetLastActivePopup(HWND hWnd);
|
|
839 DWORD GetLastError();
|
|
840 DWORD GetLayout(
|
|
841 HDC hdc // handle to DC
|
|
842 );
|
|
843 int GetLocaleInfoA(
|
|
844 LCID Locale, // locale identifier
|
|
845 LCTYPE LCType, // type of information
|
|
846 LPSTR lpLCData, // address of buffer for information
|
|
847 int cchData // size of buffer
|
|
848 );
|
|
849 int GetLocaleInfoW(
|
|
850 LCID Locale, // locale identifier
|
|
851 LCTYPE LCType, // type of information
|
|
852 LPWSTR lpLCData, // address of buffer for information
|
|
853 int cchData // size of buffer
|
|
854 );
|
|
855 HMENU GetMenu(
|
|
856 HWND hWnd // handle to window
|
|
857 );
|
|
858 BOOL GetMenuBarInfo(
|
|
859 HWND hwnd,
|
|
860 LONG idObject,
|
|
861 LONG idItem,
|
|
862 PMENUBARINFO pmbi
|
|
863 );
|
19
|
864 UINT GetMenuDefaultItem(
|
3
|
865 HMENU hMenu,
|
|
866 UINT fByPos,
|
|
867 UINT gmdiFlags
|
|
868 );
|
19
|
869 BOOL GetMenuInfo(
|
3
|
870 HMENU hmenu,
|
|
871 LPCMENUINFO lpcmi
|
|
872 );
|
|
873 int GetMenuItemCount(HMENU hMenu);
|
|
874 BOOL GetMenuItemInfoA(
|
|
875 HMENU hMenu,
|
|
876 UINT uItem,
|
|
877 BOOL fByPosition,
|
|
878 LPMENUITEMINFO lpmii
|
|
879 );
|
|
880 BOOL GetMenuItemInfoW(
|
|
881 HMENU hMenu,
|
|
882 UINT uItem,
|
|
883 BOOL fByPosition,
|
|
884 LPMENUITEMINFO lpmii
|
|
885 );
|
|
886 BOOL GetMenuItemRect(
|
19
|
887 HWND hWnd,
|
|
888 HMENU hMenu,
|
|
889 UINT uItem,
|
|
890 LPRECT lprcItem
|
3
|
891 );
|
|
892 alias STDWIN.GetMessageA GetMessageA;
|
|
893 BOOL GetMessageW(
|
|
894 LPMSG lpMsg, // address of structure with message
|
|
895 HWND hWnd, // handle of window
|
|
896 UINT wMsgFilterMin, // first message
|
|
897 UINT wMsgFilterMax // last message
|
|
898 );
|
|
899 DWORD GetMessagePos();
|
|
900 LONG GetMessageTime();
|
|
901 DWORD GetModuleFileNameA(
|
|
902 HMODULE hModule, // handle to module to find filename for
|
|
903 LPSTR lpFilename, // pointer to buffer to receive module path
|
|
904 DWORD nSize // size of buffer, in characters
|
|
905 );
|
|
906 DWORD GetModuleFileNameW(
|
|
907 HMODULE hModule, // handle to module to find filename for
|
|
908 LPWSTR lpFilename, // pointer to buffer to receive module path
|
|
909 DWORD nSize // size of buffer, in characters
|
|
910 );
|
|
911 alias STDWIN.GetModuleHandleA GetModuleHandleA;
|
|
912 HMODULE GetModuleHandleW(
|
|
913 LPCWSTR lpModuleName
|
|
914 );
|
|
915 BOOL GetMonitorInfoA(
|
|
916 HMONITOR hMonitor, // handle to display monitor
|
|
917 LPMONITORINFO lpmi // pointer to display monitor information
|
|
918 );
|
|
919 BOOL GetMonitorInfoW(
|
|
920 HMONITOR hMonitor, // handle to display monitor
|
|
921 LPMONITORINFO lpmi // pointer to display monitor information
|
|
922 );
|
|
923 UINT GetNearestPaletteIndex(
|
|
924 HPALETTE hpal, // handle of logical color palette
|
|
925 COLORREF crColor // color to be matched
|
|
926 );
|
|
927 alias STDWIN.GetObjectA GetObjectA;
|
|
928 alias STDWIN.GetObjectW GetObjectW;
|
|
929 BOOL GetOpenFileNameA(
|
|
930 OPENFILENAMEA* lpofn // address of structure with initialization data
|
|
931 );
|
|
932 BOOL GetOpenFileNameW(
|
|
933 OPENFILENAMEW* lpofn // address of structure with initialization data
|
|
934 );
|
|
935 UINT GetPaletteEntries(
|
|
936 HPALETTE hpal, // handle to logical palette
|
|
937 UINT iStartIndex, // first entry to retrieve
|
|
938 UINT nEntries, // number of entries to retrieve
|
|
939 LPPALETTEENTRY lppe // array that receives entries
|
|
940 );
|
|
941 HWND GetParent(
|
|
942 HWND hWnd // handle to child window
|
|
943 );
|
|
944
|
|
945 COLORREF GetPixel(
|
|
946 HDC hdc, // handle to device context
|
|
947 int XPos, // x-coordinate of pixel
|
|
948 int nYPos // y-coordinate of pixel
|
|
949 );
|
|
950 alias STDWIN.GetProcAddress GetProcAddress;
|
|
951 HANDLE GetProcessHeap();
|
|
952 DWORD GetProfileStringA(
|
|
953 LPCSTR lpAppName, // address of section name
|
|
954 LPCSTR lpKeyName, // address of key name
|
|
955 LPCSTR lpDefault, // address of default string
|
|
956 LPSTR lpReturnedString, // address of destination buffer
|
|
957 DWORD nSize // size of destination buffer
|
|
958 );
|
|
959 DWORD GetProfileStringW(
|
|
960 LPCWSTR lpAppName, // address of section name
|
|
961 LPCWSTR lpKeyName, // address of key name
|
|
962 LPCWSTR lpDefault, // address of default string
|
|
963 LPWSTR lpReturnedString, // address of destination buffer
|
|
964 DWORD nSize // size of destination buffer
|
|
965 );
|
|
966 int GetROP2(
|
|
967 HDC hdc // handle of device context
|
|
968 );
|
|
969 int GetRandomRgn(
|
|
970 HDC hdc, // handle to DC
|
|
971 HRGN hrgn, // handle to region
|
|
972 INT iNum // must be SYSRGN
|
|
973 );
|
|
974 DWORD GetRegionData(
|
|
975 HRGN hRgn, // handle to region
|
|
976 DWORD dwCount, // size of buffer containing region data
|
|
977 LPRGNDATA lpRgnData // pointer to region data
|
|
978 );
|
|
979 int GetRgnBox(
|
|
980 HRGN hrgn, // handle to a region
|
|
981 LPRECT lprc // pointer that receives bounding rectangle
|
|
982 );
|
|
983 BOOL GetSaveFileNameA(
|
|
984 OPENFILENAMEA* lpofn // address of structure with initialization data
|
|
985 );
|
|
986 BOOL GetSaveFileNameW(
|
|
987 OPENFILENAME* lpofn // address of structure with initialization data
|
|
988 );
|
|
989 BOOL GetScrollInfo(
|
|
990 HWND hwnd, // handle to window with scroll bar
|
|
991 int fnBar, // scroll bar flag
|
|
992 LPSCROLLINFO lpsi // pointer to structure for scroll parameters
|
|
993 );
|
|
994 alias STDWIN.GetStockObject GetStockObject;
|
|
995 DWORD GetSysColor(
|
|
996 int nIndex // display element
|
|
997 );
|
|
998 HBRUSH GetSysColorBrush(
|
|
999 int nIndex // system color index
|
|
1000 );
|
|
1001 HMENU GetSystemMenu(
|
|
1002 HWND hWnd, // handle to window to own window menu
|
|
1003 BOOL bRevert // reset flag
|
|
1004 );
|
|
1005 int GetSystemMetrics(
|
|
1006 int nIndex // system metric or configuration setting to retrieve
|
|
1007 );
|
|
1008 UINT GetSystemPaletteEntries(
|
|
1009 HDC hdc, // handle of device context
|
|
1010 UINT iStartIndex, // index of first entry to be retrieved
|
|
1011 UINT nEntries, // number of entries to be retrieved
|
|
1012 LPPALETTEENTRY lppe // array receiving system-palette entries
|
|
1013 );
|
|
1014 int GetTextCharset(
|
|
1015 HDC hdc // handle to DC
|
|
1016 );
|
|
1017 COLORREF GetTextColor(
|
|
1018 HDC hdc // handle to device context
|
|
1019 );
|
|
1020 BOOL GetTextExtentPoint32A(
|
|
1021 HDC hdc, // handle to device context
|
|
1022 LPCSTR lpString, // pointer to text string
|
|
1023 int cbString, // number of characters in string
|
|
1024 LPSIZE lpSize // pointer to structure for string size
|
|
1025 );
|
|
1026 BOOL GetTextExtentPoint32W(
|
|
1027 HDC hdc, // handle to device context
|
|
1028 LPCWSTR lpString, // pointer to text string
|
|
1029 int cbString, // number of characters in string
|
|
1030 LPSIZE lpSize // pointer to structure for string size
|
|
1031 );
|
|
1032 alias STDWIN.GetTextMetricsA GetTextMetricsA;
|
|
1033 BOOL GetTextMetricsW(
|
|
1034 HDC hdc, // handle to device context
|
|
1035 TEXTMETRICW* lptm // pointer to text metrics structure
|
|
1036 );
|
|
1037 DWORD GetTickCount();
|
|
1038 alias STDWIN.GetUpdateRect GetUpdateRect;
|
|
1039 alias STDWIN.GetUpdateRgn GetUpdateRgn;
|
|
1040 DWORD GetVersion();
|
|
1041 BOOL GetVersionExA(
|
|
1042 LPOSVERSIONINFOA lpVersionInformation // pointer to version information structure
|
|
1043 );
|
|
1044 BOOL GetVersionExW(
|
|
1045 LPOSVERSIONINFOW lpVersionInformation // pointer to version information structure
|
|
1046 );
|
|
1047 HWND GetWindow(
|
|
1048 HWND hWnd, // handle to original window
|
|
1049 UINT uCmd // relationship flag
|
|
1050 );
|
|
1051 LONG GetWindowLongA(HWND hWnd, int nIndex);
|
|
1052 LONG GetWindowLongW(HWND hWnd, int nIndex);
|
19
|
1053 BOOL GetWindowPlacement(
|
3
|
1054 HWND hWnd,
|
|
1055 WINDOWPLACEMENT *lpwndpl
|
|
1056 );
|
|
1057 alias STDWIN.GetWindowRect GetWindowRect;
|
|
1058 alias STDWIN.GetWindowRgn GetWindowRgn;
|
|
1059 int GetWindowTextA(
|
|
1060 HWND hWnd, // handle to window or control with text
|
|
1061 LPSTR lpString, // address of buffer for text
|
|
1062 int nMaxCount // maximum number of characters to copy
|
|
1063 );
|
|
1064 int GetWindowTextW(
|
|
1065 HWND hWnd, // handle to window or control with text
|
|
1066 LPWSTR lpString, // address of buffer for text
|
|
1067 int nMaxCount // maximum number of characters to copy
|
|
1068 );
|
|
1069 int GetWindowTextLengthA(HWND hWnd);
|
|
1070 int GetWindowTextLengthW(HWND hWnd);
|
|
1071 DWORD GetWindowThreadProcessId(
|
|
1072 HWND hWnd, // handle to window
|
|
1073 LPDWORD lpdwProcessId // address of variable for process identifier
|
|
1074 );
|
|
1075 HGLOBAL GlobalAlloc(UINT uFlags, SIZE_T dwBytes);
|
|
1076 HGLOBAL GlobalFree(HGLOBAL hMem);
|
|
1077 LPVOID GlobalLock(HGLOBAL hMem);
|
|
1078 SIZE_T GlobalSize(HGLOBAL hMem);
|
|
1079 BOOL GlobalUnlock(HGLOBAL hMem);
|
|
1080 BOOL GradientFill(
|
|
1081 HDC hdc,
|
|
1082 PTRIVERTEX pVertex,
|
|
1083 DWORD dwNumVertex,
|
|
1084 PVOID pMesh,
|
|
1085 DWORD dwNumMesh,
|
|
1086 DWORD dwMode
|
|
1087 );
|
|
1088 LPVOID HeapAlloc(
|
|
1089 HANDLE hHeap, // handle to the private heap block
|
|
1090 DWORD dwFlags, // heap allocation control flags
|
|
1091 DWORD dwBytes // number of bytes to allocate
|
|
1092 );
|
|
1093 BOOL HeapFree(
|
|
1094 HANDLE hHeap, // handle to the heap
|
|
1095 DWORD dwFlags, // heap freeing flags
|
|
1096 LPVOID lpMem // pointer to the memory to free
|
|
1097 );
|
|
1098 alias STDWIN.HideCaret HideCaret;
|
|
1099 int ImageList_Add(
|
|
1100 HIMAGELIST himl,
|
|
1101 HBITMAP hbmImage,
|
|
1102 HBITMAP hbmMask
|
|
1103 );
|
|
1104 int ImageList_AddMasked(
|
|
1105 HIMAGELIST himl,
|
|
1106 HBITMAP hbmImage,
|
|
1107 COLORREF crMask
|
|
1108 );
|
|
1109 HIMAGELIST ImageList_Create(
|
|
1110 int cx,
|
|
1111 int cy,
|
|
1112 UINT flags,
|
|
1113 int cInitial,
|
|
1114 int cGrow
|
|
1115 );
|
|
1116 BOOL ImageList_Destroy(
|
|
1117 HIMAGELIST himl
|
|
1118 );
|
|
1119 HICON ImageList_GetIcon(
|
|
1120 HIMAGELIST himl,
|
|
1121 int i,
|
|
1122 UINT flags
|
|
1123 );
|
|
1124 BOOL ImageList_GetIconSize(
|
|
1125 HIMAGELIST himl,
|
|
1126 int *cx,
|
|
1127 int *cy
|
|
1128 );
|
|
1129 int ImageList_GetImageCount(
|
|
1130 HIMAGELIST himl
|
|
1131 );
|
|
1132 BOOL ImageList_Remove(
|
|
1133 HIMAGELIST himl,
|
|
1134 int i
|
|
1135 );
|
|
1136 BOOL ImageList_Replace(
|
|
1137 HIMAGELIST himl,
|
|
1138 int i,
|
|
1139 HBITMAP hbmImage,
|
|
1140 HBITMAP hbmMask
|
|
1141 );
|
|
1142 int ImageList_ReplaceIcon(
|
|
1143 HIMAGELIST himl,
|
|
1144 int i,
|
|
1145 HICON hicon
|
|
1146 );
|
|
1147 BOOL ImageList_SetIconSize(
|
|
1148 HIMAGELIST himl,
|
|
1149 int cx,
|
|
1150 int cy
|
|
1151 );
|
|
1152 HIMC ImmAssociateContext(
|
|
1153 HWND hWnd,
|
|
1154 HIMC hIMC
|
|
1155 );
|
|
1156 HIMC ImmCreateContext();
|
|
1157 int ImmDestroyContext(HIMC hIMC );
|
|
1158 BOOL ImmGetCompositionFontA(
|
|
1159 HIMC hIMC,
|
|
1160 LPLOGFONTA lplf
|
|
1161 );
|
|
1162 BOOL ImmGetCompositionFontW(
|
|
1163 HIMC hIMC,
|
|
1164 LOGFONTW* lplf
|
|
1165 );
|
|
1166 LONG ImmGetCompositionStringA(
|
19
|
1167 HIMC hIMC,
|
|
1168 DWORD dwIndex,
|
|
1169 LPVOID lpBuf,
|
|
1170 DWORD dwBufLen
|
3
|
1171 );
|
|
1172 LONG ImmGetCompositionStringW(
|
19
|
1173 HIMC hIMC,
|
|
1174 DWORD dwIndex,
|
|
1175 LPVOID lpBuf,
|
|
1176 DWORD dwBufLen
|
3
|
1177 );
|
|
1178 HIMC ImmGetContext(
|
|
1179 HWND hWnd
|
|
1180 );
|
|
1181 BOOL ImmGetConversionStatus(
|
19
|
1182 HIMC hIMC,
|
|
1183 LPDWORD lpfdwConversion,
|
|
1184 LPDWORD lpfdwSentence
|
3
|
1185 );
|
|
1186 HWND ImmGetDefaultIMEWnd(HWND hWnd );
|
|
1187 BOOL ImmGetOpenStatus(
|
19
|
1188 HIMC hIMC
|
3
|
1189 );
|
|
1190 BOOL ImmReleaseContext(
|
|
1191 HWND hWnd,
|
|
1192 HIMC hIMC
|
|
1193 );
|
|
1194 BOOL ImmSetCompositionFontA(
|
|
1195 HIMC hIMC,
|
|
1196 LOGFONTA* lplf
|
|
1197 );
|
|
1198 BOOL ImmSetCompositionFontW(
|
|
1199 HIMC hIMC,
|
|
1200 LOGFONTW* lplf
|
|
1201 );
|
|
1202 BOOL ImmSetCompositionWindow(
|
|
1203 HIMC hIMC,
|
|
1204 LPCOMPOSITIONFORM lpCompForm
|
|
1205 );
|
|
1206 BOOL ImmSetConversionStatus(
|
19
|
1207 HIMC hIMC,
|
|
1208 DWORD fdwConversion,
|
|
1209 DWORD fdwSentence
|
3
|
1210 );
|
|
1211 BOOL ImmSetOpenStatus(
|
19
|
1212 HIMC hIMC,
|
|
1213 BOOL fOpen
|
3
|
1214 );
|
|
1215 void InitCommonControls();
|
|
1216 BOOL InitCommonControlsEx(
|
|
1217 LPINITCOMMONCONTROLSEX lpInitCtrls
|
|
1218 );
|
|
1219 BOOL InsertMenuA(
|
|
1220 HMENU hMenu, // handle to menu
|
|
1221 UINT uPosition, // menu item that new menu item precedes
|
|
1222 UINT uFlags, // menu item flags
|
19
|
1223 UINT uIDNewItem, // menu item identifier or handle to drop-down
|
3
|
1224 // menu or submenu
|
|
1225 LPCSTR lpNewItem // menu item content
|
|
1226 );
|
|
1227 BOOL InsertMenuW(
|
|
1228 HMENU hMenu, // handle to menu
|
|
1229 UINT uPosition, // menu item that new menu item precedes
|
|
1230 UINT uFlags, // menu item flags
|
19
|
1231 UINT uIDNewItem, // menu item identifier or handle to drop-down
|
3
|
1232 // menu or submenu
|
|
1233 LPCWSTR lpNewItem // menu item content
|
|
1234 );
|
|
1235
|
|
1236 BOOL InsertMenuItemA(
|
19
|
1237 HMENU hMenu,
|
|
1238 UINT uItem,
|
|
1239 BOOL fByPosition,
|
|
1240 MENUITEMINFOA* lpmii
|
3
|
1241 );
|
|
1242 BOOL InsertMenuItemW(
|
19
|
1243 HMENU hMenu,
|
|
1244 UINT uItem,
|
|
1245 BOOL fByPosition,
|
|
1246 MENUITEMINFOW* lpmii
|
3
|
1247 );
|
|
1248 BOOL IntersectRect(
|
|
1249 LPRECT lprcDst, // pointer to structure for intersection
|
|
1250 RECT *lprcSrc1, // pointer to structure with first rectangle
|
|
1251 RECT *lprcSrc2 // pointer to structure with second rectangle
|
|
1252 );
|
|
1253 LONG InterlockedIncrement(
|
|
1254 LPLONG lpAddend // pointer to the variable to increment
|
|
1255 );
|
|
1256 LONG InterlockedDecrement(
|
|
1257 LPLONG lpAddend // address of the variable to decrement
|
|
1258 );
|
|
1259 alias STDWIN.InvalidateRect InvalidateRect;
|
|
1260 alias STDWIN.InvalidateRgn InvalidateRgn;
|
|
1261 BOOL IsDBCSLeadByte(
|
|
1262 BYTE TestChar // character to test
|
|
1263 );
|
|
1264 BOOL IsIconic(
|
|
1265 HWND hWnd // handle to window
|
|
1266 );
|
|
1267 BOOL IsWindow(
|
|
1268 HWND hWnd // handle to window
|
|
1269 );
|
|
1270 BOOL IsWindowEnabled(HWND hWnd);
|
|
1271 BOOL IsWindowVisible(HWND hWnd);
|
|
1272 BOOL IsZoomed(HWND hWnd);
|
|
1273 BOOL KillTimer(
|
|
1274 HWND hWnd, // handle of window that installed timer
|
|
1275 UINT uIDEvent // timer identifier
|
|
1276 );
|
|
1277 alias STDWIN.LineTo LineTo;
|
|
1278 HBITMAP LoadBitmapA(
|
|
1279 HINSTANCE hInstance, // handle to application instance
|
|
1280 LPCSTR lpBitmapName // name of bitmap resource
|
|
1281 );
|
|
1282 HBITMAP LoadBitmapW(
|
|
1283 HINSTANCE hInstance, // handle to application instance
|
|
1284 LPCWSTR lpBitmapName // name of bitmap resource
|
|
1285 );
|
|
1286 alias STDWIN.LoadCursorA LoadCursorA;
|
|
1287 alias STDWIN.LoadCursorW LoadCursorW;
|
|
1288 alias STDWIN.LoadIconA LoadIconA;
|
|
1289 alias STDWIN.LoadIconW LoadIconW;
|
|
1290 HANDLE LoadImageA(
|
|
1291 HINSTANCE hinst, // handle of the instance containing the image
|
|
1292 LPCSTR lpszName, // name or identifier of image
|
|
1293 UINT uType, // type of image
|
|
1294 int cxDesired, // desired width
|
|
1295 int cyDesired, // desired height
|
|
1296 UINT fuLoad // load flags
|
|
1297 );
|
|
1298 HANDLE LoadImageW(
|
|
1299 HINSTANCE hinst, // handle of the instance containing the image
|
|
1300 LPCWSTR lpszName, // name or identifier of image
|
|
1301 UINT uType, // type of image
|
|
1302 int cxDesired, // desired width
|
|
1303 int cyDesired, // desired height
|
|
1304 UINT fuLoad // load flags
|
|
1305 );
|
|
1306 alias STDWIN.LoadLibraryA LoadLibraryA;
|
|
1307 HINSTANCE LoadLibraryW(wchar* lpLibFileName );
|
|
1308 HGLOBAL LoadResource(
|
|
1309 HMODULE hModule, // resource-module handle
|
|
1310 HRSRC hResInfo // resource handle
|
|
1311 );
|
19
|
1312 int LoadStringA(
|
3
|
1313 HINSTANCE hInstance,
|
|
1314 UINT uID,
|
|
1315 LPSTR lpBuffer,
|
|
1316 int nBufferMax
|
|
1317 );
|
19
|
1318 int LoadStringW(
|
3
|
1319 HINSTANCE hInstance,
|
|
1320 UINT uID,
|
|
1321 LPWSTR lpBuffer,
|
|
1322 int nBufferMax
|
|
1323 );
|
|
1324 HLOCAL LocalFree(
|
|
1325 HLOCAL hMem // handle to local memory object
|
|
1326 );
|
|
1327 LPVOID LockResource(
|
|
1328 HGLOBAL hResData // handle to resource to lock
|
|
1329 );
|
|
1330 UINT MapVirtualKeyA(
|
|
1331 UINT uCode, // virtual-key code or scan code
|
|
1332 UINT uMapType // translation to perform
|
|
1333 );
|
|
1334 UINT MapVirtualKeyW(
|
|
1335 UINT uCode, // virtual-key code or scan code
|
|
1336 UINT uMapType // translation to perform
|
|
1337 );
|
|
1338 alias STDWIN.MapWindowPoints MapWindowPoints;
|
|
1339 BOOL MessageBeep(
|
|
1340 UINT uType // sound type
|
|
1341 );
|
|
1342 alias STDWIN.MessageBoxA MessageBoxA;
|
|
1343 int MessageBoxW(
|
|
1344 HWND hWnd, // handle of owner window
|
|
1345 LPCWSTR lpText, // address of text in message box
|
|
1346 LPCWSTR lpCaption, // address of title of message box
|
|
1347 UINT uType // style of message box
|
|
1348 );
|
|
1349 HMONITOR MonitorFromWindow(
|
|
1350 HWND hwnd, // handle to a window
|
|
1351 DWORD dwFlags // flags if no monitor intersects the window
|
|
1352 );
|
|
1353 alias STDWIN.MoveToEx MoveToEx;
|
|
1354 DWORD MsgWaitForMultipleObjectsEx(
|
|
1355 DWORD nCount, // number of handles in handle array
|
|
1356 LPHANDLE pHandles, // pointer to an object-handle array
|
|
1357 DWORD dwMilliseconds, // time-out interval in milliseconds
|
|
1358 DWORD dwWakeMask, // type of input events to wait for
|
|
1359 DWORD dwFlags // wait flags
|
|
1360 );
|
|
1361 alias STDWIN.MultiByteToWideChar MultiByteToWideChar;
|
|
1362 void NotifyWinEvent(
|
|
1363 DWORD event,
|
|
1364 HWND hwnd,
|
|
1365 LONG idObject,
|
|
1366 LONG idChild
|
|
1367 );
|
|
1368 int OffsetRgn(
|
|
1369 HRGN hrgn, // handle to region
|
|
1370 int nXOffset, // offset along x-axis
|
|
1371 int nYOffset // offset along y-axis
|
|
1372 );
|
|
1373 WINOLEAPI OleInitialize(
|
|
1374 LPVOID pvReserved //Reserved; must be NULL.
|
|
1375 );
|
|
1376 void OleUninitialize();
|
19
|
1377 BOOL OpenClipboard(
|
3
|
1378 HWND hWndNewOwner
|
|
1379 );
|
|
1380 void OutputDebugStringA(
|
|
1381 LPCSTR lpOutputString
|
|
1382 );
|
|
1383 void OutputDebugStringW(
|
|
1384 LPCWSTR lpOutputString
|
|
1385 );
|
|
1386 BOOL PatBlt(
|
|
1387 HDC hdc, // handle to device context
|
|
1388 int nXLeft, // x-coord. of upper-left corner of rect. to be filled
|
|
1389 int nYLeft, // y-coord. of upper-left corner of rect. to be filled
|
|
1390 int nWidth, // width of rectangle to be filled
|
|
1391 int nHeight, // height of rectangle to be filled
|
|
1392 DWORD dwRop // raster operation code
|
|
1393 );
|
|
1394 alias STDWIN.PeekMessageA PeekMessageA;
|
|
1395 BOOL PeekMessageW(
|
|
1396 LPMSG lpMsg, // pointer to structure for message
|
|
1397 HWND hWnd, // handle to window
|
|
1398 UINT wMsgFilterMin, // first message
|
|
1399 UINT wMsgFilterMax, // last message
|
|
1400 UINT wRemoveMsg // removal flags
|
|
1401 );
|
|
1402 BOOL Pie(
|
|
1403 HDC hdc, // handle to device context
|
|
1404 int nLeftRect, // x-coord of bounding rectangle's upper-left corner
|
|
1405 int nTopRect, // y-coord of bounding rectangle's upper-left corner
|
|
1406 int nRightRect, // x-coord of bounding rectangle's lower-right corner
|
|
1407 int nBottomRect, // y-coord of bounding rectangle's lower-right corner
|
|
1408 int nXRadial1, // x-coord of first radial's endpoint
|
|
1409 int nYRadial1, // y-coord of first radial's endpoint
|
|
1410 int nXRadial2, // x-coord of second radial's endpoint
|
|
1411 int nYRadial2 // y-coord of second radial's endpoint
|
|
1412 );
|
|
1413 BOOL Polygon(
|
|
1414 HDC hdc, // handle to device context
|
|
1415 POINT *lpPoints, // pointer to polygon's vertices
|
|
1416 int nCount // count of polygon's vertices
|
|
1417 );
|
|
1418 BOOL Polyline(
|
|
1419 HDC hdc, // handle to device context
|
|
1420 POINT *lppt, // pointer to array containing endpoints
|
|
1421 int cPoints // number of points in the array
|
|
1422 );
|
19
|
1423 BOOL PostMessageA(
|
3
|
1424 HWND hWnd,
|
|
1425 UINT Msg,
|
|
1426 WPARAM_I wParam,
|
|
1427 LPARAM lParam
|
|
1428 );
|
19
|
1429 BOOL PostMessageW(
|
3
|
1430 HWND hWnd,
|
|
1431 UINT Msg,
|
|
1432 WPARAM_I wParam,
|
|
1433 LPARAM lParam
|
|
1434 );
|
|
1435 BOOL PostThreadMessageA(
|
|
1436 DWORD idThread,
|
|
1437 UINT Msg,
|
|
1438 WPARAM_I wParam,
|
|
1439 LPARAM lParam
|
|
1440 );
|
|
1441 BOOL PostThreadMessageW(
|
|
1442 DWORD idThread,
|
|
1443 UINT Msg,
|
|
1444 WPARAM_I wParam,
|
|
1445 LPARAM lParam
|
|
1446 );
|
19
|
1447 BOOL PrintDlgA(
|
3
|
1448 LPPRINTDLGA lppd
|
|
1449 );
|
19
|
1450 BOOL PrintDlgW(
|
3
|
1451 LPPRINTDLGW lppd
|
|
1452 );
|
|
1453 BOOL PtInRect(
|
|
1454 RECT *lprc, // rectangle
|
|
1455 POINT pt // point
|
|
1456 );
|
|
1457 BOOL PtInRegion(
|
|
1458 HRGN hrgn, // handle to region
|
|
1459 int X, // x-coordinate of point
|
|
1460 int Y // y-coordinate of point
|
|
1461 );
|
|
1462 UINT RealizePalette(
|
|
1463 HDC hdc // handle of device context
|
|
1464 );
|
|
1465 BOOL RectInRegion(
|
|
1466 HRGN hrgn, // handle to region
|
|
1467 RECT *lprc // pointer to rectangle
|
|
1468 );
|
|
1469 BOOL Rectangle(
|
|
1470 HDC hdc, // handle to device context
|
|
1471 int nLeftRect, // x-coord of bounding rectangle's upper-left corner
|
|
1472 int nTopRect, // y-coord of bounding rectangle's upper-left corner
|
|
1473 int nRightRect, // x-coord of bounding rectangle's lower-right corner
|
|
1474 int nBottomRect // y-coord of bounding rectangle's lower-right corner
|
|
1475 );
|
|
1476 alias STDWIN.RedrawWindow RedrawWindow;
|
|
1477 LONG RegCloseKey(
|
|
1478 HKEY hKey
|
|
1479 );
|
|
1480 LONG RegEnumKeyExA(
|
|
1481 HKEY hKey,
|
|
1482 DWORD dwIndex,
|
|
1483 LPSTR lpName,
|
|
1484 LPDWORD lpcName,
|
|
1485 LPDWORD lpReserved,
|
|
1486 LPSTR lpClass,
|
|
1487 LPDWORD lpcClass,
|
|
1488 PFILETIME lpftLastWriteTime
|
|
1489 );
|
|
1490 LONG RegEnumKeyExW(
|
|
1491 HKEY hKey,
|
|
1492 DWORD dwIndex,
|
|
1493 LPWSTR lpName,
|
|
1494 LPDWORD lpcName,
|
|
1495 LPDWORD lpReserved,
|
|
1496 LPWSTR lpClass,
|
|
1497 LPDWORD lpcClass,
|
|
1498 PFILETIME lpftLastWriteTime
|
|
1499 );
|
|
1500 LONG RegOpenKeyExA(
|
|
1501 HKEY hKey,
|
|
1502 LPSTR lpSubKey,
|
|
1503 DWORD ulOptions,
|
|
1504 REGSAM samDesired,
|
|
1505 PHKEY phkResult
|
|
1506 );
|
|
1507 LONG RegOpenKeyExW(
|
|
1508 HKEY hKey,
|
|
1509 LPWSTR lpSubKey,
|
|
1510 DWORD ulOptions,
|
|
1511 REGSAM samDesired,
|
|
1512 PHKEY phkResult
|
|
1513 );
|
|
1514
|
|
1515 LONG RegQueryInfoKeyA(
|
|
1516 HKEY hKey,
|
|
1517 LPSTR lpClass,
|
|
1518 LPDWORD lpcClass,
|
|
1519 LPDWORD lpReserved,
|
|
1520 LPDWORD lpcSubKeys,
|
|
1521 LPDWORD lpcMaxSubKeyLen,
|
|
1522 LPDWORD lpcMaxClassLen,
|
|
1523 LPDWORD lpcValues,
|
|
1524 LPDWORD lpcMaxValueNameLen,
|
|
1525 LPDWORD lpcMaxValueLen,
|
|
1526 LPDWORD lpcbSecurityDescriptor,
|
|
1527 PFILETIME lpftLastWriteTime
|
|
1528 );
|
|
1529 LONG RegQueryInfoKeyW(
|
|
1530 HKEY hKey,
|
|
1531 LPWSTR lpClass,
|
|
1532 LPDWORD lpcClass,
|
|
1533 LPDWORD lpReserved,
|
|
1534 LPDWORD lpcSubKeys,
|
|
1535 LPDWORD lpcMaxSubKeyLen,
|
|
1536 LPDWORD lpcMaxClassLen,
|
|
1537 LPDWORD lpcValues,
|
|
1538 LPDWORD lpcMaxValueNameLen,
|
|
1539 LPDWORD lpcMaxValueLen,
|
|
1540 LPDWORD lpcbSecurityDescriptor,
|
|
1541 PFILETIME lpftLastWriteTime
|
|
1542 );
|
|
1543
|
|
1544 LONG RegQueryValueExA(
|
|
1545 HKEY hKey,
|
|
1546 LPCSTR lpValueName,
|
|
1547 LPDWORD lpReserved,
|
|
1548 LPDWORD lpType,
|
|
1549 LPBYTE lpData,
|
|
1550 LPDWORD lpcbData
|
|
1551 );
|
|
1552 LONG RegQueryValueExW(
|
|
1553 HKEY hKey,
|
|
1554 LPCWSTR lpValueName,
|
|
1555 LPDWORD lpReserved,
|
|
1556 LPDWORD lpType,
|
|
1557 LPBYTE lpData,
|
|
1558 LPDWORD lpcbData
|
|
1559 );
|
|
1560
|
19
|
1561 ATOM RegisterClassA(
|
3
|
1562 WNDCLASSA *lpWndClass
|
|
1563 );
|
19
|
1564 ATOM RegisterClassW(
|
3
|
1565 WNDCLASSW *lpWndClass
|
|
1566 );
|
19
|
1567 UINT RegisterClipboardFormatA(
|
3
|
1568 LPCSTR lpszFormat
|
|
1569 );
|
19
|
1570 UINT RegisterClipboardFormatW(
|
3
|
1571 LPCWSTR lpszFormat
|
|
1572 );
|
19
|
1573 UINT RegisterWindowMessageA(
|
3
|
1574 LPCSTR lpString
|
|
1575 );
|
19
|
1576 UINT RegisterWindowMessageW(
|
3
|
1577 LPCWSTR lpString
|
|
1578 );
|
|
1579 BOOL ReleaseCapture();
|
|
1580 alias STDWIN.ReleaseDC ReleaseDC;
|
19
|
1581 BOOL RemoveMenu(
|
3
|
1582 HMENU hMenu,
|
|
1583 UINT uPosition,
|
|
1584 UINT uFlags
|
|
1585 );
|
|
1586 BOOL RestoreDC(
|
|
1587 HDC hdc, // handle to DC
|
|
1588 int nSavedDC // restore state
|
|
1589 );
|
|
1590 alias STDWIN.RoundRect RoundRect;
|
|
1591
|
|
1592 // basic
|
|
1593 void RtlMoveMemory(void* Destination, void* Source, DWORD Length);
|
|
1594 // extends
|
|
1595 void RtlMoveMemory(int Destination, void* Source, DWORD Length);
|
|
1596 void RtlMoveMemory(void* Destination, int Source, DWORD Length);
|
|
1597 void RtlMoveMemory(int Destination, int Source, DWORD Length);
|
|
1598
|
19
|
1599 LPITEMIDLIST SHBrowseForFolderA(
|
3
|
1600 BROWSEINFOA* lpbi
|
|
1601 );
|
19
|
1602 LPITEMIDLIST SHBrowseForFolderW(
|
3
|
1603 BROWSEINFOW* lpbi
|
|
1604 );
|
|
1605 version(WinCE){
|
|
1606 int SHCreateMenuBar(SHMENUBARINFO* pmb);
|
|
1607 }
|
19
|
1608 HRESULT SHGetMalloc(
|
3
|
1609 // LPMALLOC *ppMalloc
|
|
1610 LPVOID *ppMalloc
|
|
1611 );
|
19
|
1612 BOOL SHGetPathFromIDListA(
|
3
|
1613 LPCITEMIDLIST pidl,
|
|
1614 LPSTR pszPath
|
|
1615 );
|
19
|
1616 BOOL SHGetPathFromIDListW(
|
3
|
1617 LPCITEMIDLIST pidl,
|
|
1618 LPWSTR pszPath
|
|
1619 );
|
|
1620 version(WinCE)
|
|
1621 {
|
|
1622 int SHHandleWMSettingChange(HWND hwnd, int wParam, int lParam, void* psai);
|
|
1623 int SHRecognizeGesture(void* shrg);
|
|
1624 void SHSendBackToFocusWindow(int uMsg, int wp, int lp);
|
|
1625 int SHSetAppKeyWndAssoc(byte bVk, HWND hwnd);
|
|
1626 int SHSipPreference(HWND hwnd, int st);
|
|
1627 }
|
|
1628 alias STDWIN.SaveDC SaveDC;
|
|
1629 alias STDWIN.ScreenToClient ScreenToClient;
|
|
1630
|
19
|
1631 // USP methods (Unicode Complex Script processor)
|
|
1632 HRESULT ScriptBreak(
|
|
1633 WCHAR *pwcChars,
|
|
1634 int cChars,
|
|
1635 SCRIPT_ANALYSIS *psa,
|
|
1636 SCRIPT_LOGATTR *psla
|
3
|
1637 );
|
19
|
1638 HRESULT ScriptCPtoX(
|
|
1639 int iCP,
|
|
1640 BOOL fTrailing,
|
|
1641 int cChars,
|
|
1642 int cGlyphs,
|
|
1643 WORD *pwLogClust,
|
|
1644 SCRIPT_VISATTR *psva,
|
|
1645 int *piAdvance,
|
|
1646 SCRIPT_ANALYSIS *psa,
|
|
1647 int *piX
|
3
|
1648 );
|
|
1649 HRESULT ScriptCacheGetHeight(
|
19
|
1650 HDC hdc,
|
|
1651 SCRIPT_CACHE *psc,
|
|
1652 long *tmHeight
|
3
|
1653 );
|
|
1654 HRESULT ScriptFreeCache(
|
19
|
1655 SCRIPT_CACHE *psc
|
3
|
1656 );
|
|
1657 HRESULT ScriptGetFontProperties(
|
19
|
1658 HDC hdc,
|
|
1659 SCRIPT_CACHE *psc,
|
|
1660 SCRIPT_FONTPROPERTIES *sfp
|
3
|
1661 );
|
|
1662 HRESULT ScriptGetLogicalWidths(
|
|
1663 SCRIPT_ANALYSIS *psa,
|
|
1664 int cChars,
|
|
1665 int cGlyphs,
|
|
1666 int *piGlyphWidth,
|
|
1667 WORD *pwLogClust,
|
|
1668 SCRIPT_VISATTR *psva,
|
|
1669 int *piDx
|
|
1670 );
|
|
1671 HRESULT ScriptGetProperties(
|
19
|
1672 SCRIPT_PROPERTIES ***ppSp,
|
|
1673 int *piNumScripts
|
3
|
1674 );
|
|
1675 HRESULT ScriptItemize(
|
19
|
1676 WCHAR *pwcInChars,
|
|
1677 int cInChars,
|
|
1678 int cMaxItems,
|
|
1679 SCRIPT_CONTROL *psControl,
|
|
1680 SCRIPT_STATE *psState,
|
|
1681 SCRIPT_ITEM *pItems,
|
|
1682 int *pcItems
|
3
|
1683 );
|
|
1684 HRESULT ScriptLayout(
|
19
|
1685 int cRuns,
|
|
1686 BYTE *pbLevel,
|
|
1687 int *piVisualToLogical,
|
|
1688 int *piLogicalToVisual
|
3
|
1689 );
|
|
1690 HRESULT ScriptPlace(
|
19
|
1691 HDC hdc,
|
|
1692 SCRIPT_CACHE *psc,
|
|
1693 WORD *pwGlyphs,
|
|
1694 int cGlyphs,
|
|
1695 SCRIPT_VISATTR *psva,
|
|
1696 SCRIPT_ANALYSIS *psa,
|
|
1697 int *piAdvance,
|
|
1698 GOFFSET *pGoffset,
|
|
1699 ABC *pABC
|
3
|
1700 );
|
|
1701 HRESULT ScriptShape(
|
19
|
1702 HDC hdc, // in
|
3
|
1703 SCRIPT_CACHE *psc, // in/out
|
19
|
1704 WCHAR *pwcChars, //
|
|
1705 int cChars,
|
|
1706 int cMaxGlyphs,
|
|
1707 SCRIPT_ANALYSIS *psa,
|
|
1708 WORD *pwOutGlyphs,
|
|
1709 WORD *pwLogClust,
|
|
1710 SCRIPT_VISATTR *psva,
|
|
1711 int *pcGlyphs
|
3
|
1712 );
|
|
1713 HRESULT ScriptTextOut(
|
|
1714 HDC hdc, // const
|
19
|
1715 SCRIPT_CACHE *psc,
|
|
1716 int x,
|
|
1717 int y,
|
|
1718 UINT fuOptions,
|
3
|
1719 RECT *lprc, // const
|
|
1720 SCRIPT_ANALYSIS *psa, // const
|
|
1721 WCHAR *pwcReserved, // const
|
19
|
1722 int iReserved,
|
|
1723 WORD *pwGlyphs, //
|
|
1724 int cGlyphs,
|
3
|
1725 int *piAdvance, // const
|
|
1726 int *piJustify, // const
|
|
1727 GOFFSET *pGoffset // const
|
|
1728 );
|
|
1729 HRESULT ScriptXtoCP(
|
19
|
1730 int iX,
|
|
1731 int cChars,
|
|
1732 int cGlyphs,
|
|
1733 WORD *pwLogClust, //
|
|
1734 SCRIPT_VISATTR *psva, //
|
|
1735 int *piAdvance, //
|
|
1736 SCRIPT_ANALYSIS *psa, //
|
|
1737 int *piCP,
|
|
1738 int *piTrailing
|
3
|
1739 );
|
|
1740 alias STDWIN.ScrollWindowEx ScrollWindowEx;
|
|
1741 alias STDWIN.SelectClipRgn SelectClipRgn;
|
|
1742 alias STDWIN.SelectObject SelectObject;
|
|
1743 alias STDWIN.SelectPalette SelectPalette;
|
19
|
1744 UINT SendInput(
|
3
|
1745 UINT nInputs,
|
|
1746 LPINPUT pInputs,
|
|
1747 int cbSize
|
|
1748 );
|
|
1749 // the basic
|
|
1750 int SendMessageA(HWND hWnd, int msg, int wParam, int lParam );
|
|
1751 int SendMessageW(HWND hWnd, int msg, int wParam, int lParam );
|
|
1752
|
|
1753 int SendMessageA(HWND hWnd, UINT Msg, WPARAM_I wParam, void* lParam );
|
|
1754 int SendMessageW(HWND hWnd, UINT Msg, WPARAM_I wParam, void* lParam );
|
|
1755 int SendMessageA(HWND hWnd, UINT Msg, void* wParam, LPARAM lParam );
|
|
1756 int SendMessageW(HWND hWnd, UINT Msg, void* wParam, LPARAM lParam );
|
|
1757 int SendMessageA(HWND hWnd, UINT Msg, void* wParam, void* lParam );
|
|
1758 int SendMessageW(HWND hWnd, UINT Msg, void* wParam, void* lParam );
|
|
1759
|
|
1760 alias STDWIN.SetActiveWindow SetActiveWindow;
|
|
1761 alias STDWIN.SetBkColor SetBkColor;
|
|
1762 alias STDWIN.SetBkMode SetBkMode;
|
19
|
1763 HWND SetCapture(
|
3
|
1764 HWND hWnd
|
|
1765 );
|
19
|
1766 BOOL SetCaretPos(
|
3
|
1767 int X,
|
|
1768 int Y
|
|
1769 );
|
19
|
1770 HANDLE SetClipboardData(
|
3
|
1771 UINT uFormat,
|
|
1772 HANDLE hMem
|
|
1773 );
|
|
1774 alias STDWIN.SetCursor SetCursor;
|
|
1775 alias STDWIN.SetCursorPos SetCursorPos;
|
|
1776 UINT SetDIBColorTable(
|
|
1777 HDC hdc, // handle to device context whose DIB is of interest
|
|
1778 UINT uStartIndex, // color table index of first entry to set
|
|
1779 UINT cEntries, // number of color table entries to set
|
|
1780 RGBQUAD *pColors // pointer to array of color table entries
|
|
1781 );
|
|
1782 UINT SetErrorMode(
|
|
1783 UINT uMode
|
|
1784 );
|
|
1785 BOOL SetEvent(
|
|
1786 HANDLE hEvent // handle to event object
|
|
1787 );
|
|
1788 alias STDWIN.SetFocus SetFocus;
|
|
1789 alias STDWIN.SetForegroundWindow SetForegroundWindow;
|
|
1790 void SetLastError(
|
|
1791 DWORD dwErrCode
|
|
1792 );
|
|
1793 DWORD SetLayout(
|
|
1794 HDC hdc, // handle to DC
|
|
1795 DWORD dwLayout // layout options
|
|
1796 );
|
19
|
1797 BOOL SetMenu(
|
3
|
1798 HWND hWnd,
|
|
1799 HMENU hMenu
|
|
1800 );
|
19
|
1801 BOOL SetMenuDefaultItem(
|
3
|
1802 HMENU hMenu,
|
|
1803 UINT uItem,
|
|
1804 UINT fByPos
|
|
1805 );
|
19
|
1806 BOOL SetMenuInfo(
|
3
|
1807 HMENU hmenu,
|
|
1808 LPCMENUINFO lpcmi
|
|
1809 );
|
19
|
1810 BOOL SetMenuItemInfoA(
|
3
|
1811 HMENU hMenu,
|
|
1812 UINT uItem,
|
|
1813 BOOL fByPosition,
|
|
1814 LPMENUITEMINFOA lpmii
|
|
1815 );
|
19
|
1816 BOOL SetMenuItemInfoW(
|
3
|
1817 HMENU hMenu,
|
|
1818 UINT uItem,
|
|
1819 BOOL fByPosition,
|
|
1820 LPMENUITEMINFOW lpmii
|
|
1821 );
|
|
1822 UINT SetPaletteEntries(
|
|
1823 HPALETTE hpal, // handle to logical palette
|
|
1824 UINT iStart, // index of first entry to set
|
|
1825 UINT cEntries, // number of entries to set
|
|
1826 PALETTEENTRY *lppe // array of palette entries
|
|
1827 );
|
19
|
1828 HWND SetParent(
|
3
|
1829 HWND hWndChild,
|
|
1830 HWND hWndNewParent
|
|
1831 );
|
|
1832 alias STDWIN.SetPixel SetPixel;
|
|
1833 alias STDWIN.SetROP2 SetROP2;
|
|
1834 BOOL SetRect(
|
|
1835 LPRECT lprc, // rectangle
|
|
1836 int xLeft, // left side
|
|
1837 int yTop, // top side
|
|
1838 int xRight, // right side
|
|
1839 int yBottom // bottom side
|
|
1840 );
|
|
1841 alias STDWIN.SetRectRgn SetRectRgn;
|
19
|
1842 int SetScrollInfo(
|
3
|
1843 HWND hwnd,
|
|
1844 int fnBar,
|
|
1845 LPCSCROLLINFO lpsi,
|
|
1846 BOOL fRedraw
|
|
1847 );
|
|
1848 alias STDWIN.SetStretchBltMode SetStretchBltMode;
|
|
1849 alias STDWIN.SetTextAlign SetTextAlign;
|
|
1850 alias STDWIN.SetTextColor SetTextColor;
|
19
|
1851 UINT_PTR SetTimer(
|
3
|
1852 HWND hWnd,
|
|
1853 UINT_PTR nIDEvent,
|
|
1854 UINT uElapse,
|
|
1855 TIMERPROC_I lpTimerFunc
|
|
1856 );
|
19
|
1857 LONG SetWindowLongA(
|
3
|
1858 HWND hWnd,
|
|
1859 int nIndex,
|
|
1860 LONG dwNewLong
|
|
1861 );
|
19
|
1862 LONG SetWindowLongW(
|
3
|
1863 HWND hWnd,
|
|
1864 int nIndex,
|
|
1865 LONG dwNewLong
|
|
1866 );
|
19
|
1867 BOOL SetWindowPlacement(
|
3
|
1868 HWND hWnd,
|
|
1869 WINDOWPLACEMENT *lpwndpl
|
|
1870 );
|
|
1871 BOOL SetWindowPos(
|
|
1872 HWND hWnd, // handle to window
|
|
1873 HWND hWndInsertAfter, // placement-order handle
|
|
1874 int X, // horizontal position
|
|
1875 int Y, // vertical position
|
|
1876 int cx, // width
|
|
1877 int cy, // height
|
|
1878 UINT uFlags // window-positioning flags
|
|
1879 );
|
|
1880 alias STDWIN.SetWindowRgn SetWindowRgn;
|
19
|
1881 BOOL SetWindowTextA(
|
3
|
1882 HWND hWnd,
|
|
1883 LPCSTR lpString
|
|
1884 );
|
19
|
1885 BOOL SetWindowTextW(
|
3
|
1886 HWND hWnd,
|
|
1887 LPCWSTR lpString
|
|
1888 );
|
|
1889 HHOOK SetWindowsHookExA(
|
|
1890 int idHook, // type of hook to install
|
|
1891 HOOKPROC_I lpfn, // address of hook procedure
|
|
1892 HINSTANCE hMod, // handle to application instance
|
|
1893 DWORD dwThreadId // identity of thread to install hook for
|
|
1894 );
|
|
1895 HHOOK SetWindowsHookExW(
|
|
1896 int idHook, // type of hook to install
|
|
1897 HOOKPROC_I lpfn, // address of hook procedure
|
|
1898 HINSTANCE hMod, // handle to application instance
|
|
1899 DWORD dwThreadId // identity of thread to install hook for
|
|
1900 );
|
19
|
1901 BOOL ShellExecuteExA(
|
3
|
1902 LPSHELLEXECUTEINFOA lpExecInfo
|
|
1903 );
|
19
|
1904 BOOL ShellExecuteExW(
|
3
|
1905 LPSHELLEXECUTEINFOW lpExecInfo
|
|
1906 );
|
19
|
1907 BOOL Shell_NotifyIconA(
|
3
|
1908 DWORD dwMessage,
|
|
1909 PNOTIFYICONDATAA lpdata
|
|
1910 );
|
19
|
1911 BOOL Shell_NotifyIconW(
|
3
|
1912 DWORD dwMessage,
|
|
1913 PNOTIFYICONDATAW lpdata
|
|
1914 );
|
|
1915 alias STDWIN.ShowCaret ShowCaret;
|
19
|
1916 BOOL ShowOwnedPopups(
|
3
|
1917 HWND hWnd,
|
|
1918 BOOL fShow
|
|
1919 );
|
|
1920 alias STDWIN.ShowScrollBar ShowScrollBar;
|
|
1921 alias STDWIN.ShowWindow ShowWindow;
|
|
1922 version(WinCE)
|
|
1923 {
|
|
1924 BOOL SipGetInfo(
|
|
1925 SIPINFO *pSipInfo
|
|
1926 );
|
|
1927 }
|
|
1928 DWORD SizeofResource(
|
|
1929 HMODULE hModule, // resource-module handle
|
|
1930 HRSRC hResInfo // resource handle
|
|
1931 );
|
|
1932 void Sleep(
|
|
1933 DWORD dwMilliseconds
|
|
1934 );
|
|
1935 int StartDocA(
|
|
1936 HDC hdc, // handle to DC
|
|
1937 DOCINFOA* lpdi // contains file names
|
|
1938 );
|
|
1939 int StartDocW(
|
|
1940 HDC hdc, // handle to DC
|
|
1941 DOCINFOW* lpdi // contains file names
|
|
1942 );
|
|
1943 int StartPage(
|
|
1944 HDC hDC // handle to DC
|
|
1945 );
|
|
1946 alias STDWIN.StretchBlt StretchBlt;
|
|
1947 BOOL SystemParametersInfoA(
|
|
1948 UINT uiAction,
|
|
1949 UINT uiParam,
|
|
1950 PVOID pvParam,
|
|
1951 UINT fWinIni
|
|
1952 );
|
|
1953 BOOL SystemParametersInfoW(
|
|
1954 UINT uiAction,
|
|
1955 UINT uiParam,
|
|
1956 PVOID pvParam,
|
|
1957 UINT fWinIni
|
|
1958 );
|
19
|
1959 int ToAscii(
|
3
|
1960 UINT uVirtKey,
|
|
1961 UINT uScanCode,
|
|
1962 PBYTE lpKeyState,
|
|
1963 LPWORD lpChar,
|
|
1964 UINT uFlags
|
|
1965 );
|
19
|
1966 int ToUnicode(
|
3
|
1967 UINT wVirtKey,
|
|
1968 UINT wScanCode,
|
|
1969 PBYTE lpKeyState,
|
|
1970 LPWSTR pwszBuff,
|
|
1971 int cchBuff,
|
|
1972 UINT wFlags
|
|
1973 );
|
|
1974 BOOL TrackMouseEvent(
|
|
1975 LPTRACKMOUSEEVENT lpEventTrack // pointer to a TRACKMOUSEEVENT structure
|
|
1976 );
|
|
1977 alias STDWIN.TrackPopupMenu TrackPopupMenu;
|
|
1978 int TranslateAcceleratorA(
|
|
1979 HWND hWnd, // handle to destination window
|
|
1980 HACCEL hAccTable, // handle to accelerator table
|
|
1981 LPMSG lpMsg // address of structure with message
|
|
1982 );
|
|
1983 int TranslateAcceleratorW(
|
|
1984 HWND hWnd, // handle to destination window
|
|
1985 HACCEL hAccTable, // handle to accelerator table
|
|
1986 LPMSG lpMsg // address of structure with message
|
|
1987 );
|
|
1988 UINT TranslateCharsetInfo(
|
19
|
1989 DWORD *lpSrc,
|
|
1990 LPCHARSETINFO lpCs,
|
|
1991 DWORD dwFlags
|
3
|
1992 );
|
19
|
1993 BOOL TranslateMDISysAccel(
|
3
|
1994 HWND hWndClient,
|
|
1995 LPMSG lpMsg
|
|
1996 );
|
|
1997 BOOL TranslateMessage(
|
|
1998 MSG *lpMsg // address of structure with message
|
|
1999 );
|
|
2000 version(WinCE)
|
|
2001 {
|
|
2002 BOOL TransparentImage(
|
19
|
2003 HDC hdcDest,
|
|
2004 LONG DstX,
|
|
2005 LONG DstY,
|
|
2006 LONG DstCx,
|
3
|
2007 LONG DstCy,
|
19
|
2008 HANDLE hSrc,
|
|
2009 LONG SrcX,
|
|
2010 LONG SrcY,
|
|
2011 LONG SrcCx,
|
|
2012 LONG SrcCy,
|
3
|
2013 COLORREF TransparentColor
|
|
2014 );
|
|
2015 }
|
|
2016 BOOL UnhookWindowsHookEx(
|
|
2017 HHOOK hhk // handle to hook procedure to remove
|
|
2018 );
|
|
2019 BOOL UnregisterClassA(
|
|
2020 LPCSTR lpClassName, // address of class name string
|
|
2021 HINSTANCE hInstance // handle of application instance
|
|
2022 );
|
|
2023 BOOL UnregisterClassW(
|
|
2024 LPCWSTR lpClassName, // address of class name string
|
|
2025 HINSTANCE hInstance // handle of application instance
|
|
2026 );
|
|
2027 alias STDWIN.UpdateWindow UpdateWindow;
|
|
2028 alias STDWIN.ValidateRect ValidateRect;
|
|
2029 SHORT VkKeyScanA(char ch);
|
|
2030 SHORT VkKeyScanW(wchar ch);
|
|
2031 alias STDWIN.WaitForMultipleObjects WaitForMultipleObjects;
|
|
2032 alias STDWIN.WaitForSingleObject WaitForSingleObject;
|
|
2033 BOOL WaitMessage();
|
|
2034 alias STDWIN.WideCharToMultiByte WideCharToMultiByte;
|
|
2035 alias STDWIN.WindowFromDC WindowFromDC;
|
|
2036 alias STDWIN.WindowFromPoint WindowFromPoint;
|
|
2037 }
|
|
2038
|
|
2039 extern (C)
|
|
2040 {
|
|
2041 int wcslen(wchar* string);
|
|
2042 }
|