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