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