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