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