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