The first 2 parameters of WinMain are HINSTANCEs, not HANDLEs.
[wine] / include / wine / winuser16.h
1 #ifndef __WINE_WINE_WINUSER16_H
2 #define __WINE_WINE_WINUSER16_H
3
4 #include "wine/wingdi16.h" /* wingdi.h needed for COLORREF */
5 #include "winuser.h" /* winuser.h needed for MSGBOXCALLBACK */
6                      
7 #include "pshpack1.h"
8
9 typedef struct tagCOMSTAT16
10 {
11     BYTE   status;
12     UINT16 cbInQue WINE_PACKED;
13     UINT16 cbOutQue WINE_PACKED;
14 } COMSTAT16,*LPCOMSTAT16;
15
16 typedef struct tagDCB16
17 {
18     BYTE   Id;
19     UINT16 BaudRate WINE_PACKED;
20     BYTE   ByteSize;
21     BYTE   Parity;
22     BYTE   StopBits;
23     UINT16 RlsTimeout;
24     UINT16 CtsTimeout;
25     UINT16 DsrTimeout;
26
27     unsigned fBinary        :1;
28     unsigned fRtsDisable    :1;
29     unsigned fParity        :1;
30     unsigned fOutxCtsFlow   :1;
31     unsigned fOutxDsrFlow   :1;
32     unsigned fDummy         :2;
33     unsigned fDtrDisable    :1;
34
35     unsigned fOutX          :1;
36     unsigned fInX           :1;
37     unsigned fPeChar        :1;
38     unsigned fNull          :1;
39     unsigned fChEvt         :1;
40     unsigned fDtrflow       :1;
41     unsigned fRtsflow       :1;
42     unsigned fDummy2        :1;
43
44     CHAR   XonChar;
45     CHAR   XoffChar;
46     UINT16 XonLim;
47     UINT16 XoffLim;
48     CHAR   PeChar;
49     CHAR   EofChar;
50     CHAR   EvtChar;
51     UINT16 TxDelay WINE_PACKED;
52 } DCB16, *LPDCB16;
53
54
55 typedef struct
56 {
57    LPARAM   lParam;
58    WPARAM16 wParam;
59    UINT16   message;
60    HWND16   hwnd;
61 } CWPSTRUCT16, *LPCWPSTRUCT16;
62
63 typedef struct
64 {
65   LRESULT       lResult;
66   LPARAM        lParam;
67   WPARAM16      wParam;
68   DWORD         message;
69   HWND16        hwnd;
70 } CWPRETSTRUCT16, *LPCWPRETSTRUCT16;
71
72   /* SetWindowPlacement() struct */
73 typedef struct
74 {
75     UINT16   length;
76     UINT16   flags;
77     UINT16   showCmd;
78     POINT16  ptMinPosition WINE_PACKED;
79     POINT16  ptMaxPosition WINE_PACKED;
80     RECT16   rcNormalPosition WINE_PACKED;
81 } WINDOWPLACEMENT16, *LPWINDOWPLACEMENT16;
82
83 /****** Window classes ******/
84
85 typedef struct
86 {
87     UINT16      style;
88     WNDPROC16   lpfnWndProc WINE_PACKED;
89     INT16       cbClsExtra;
90     INT16       cbWndExtra;
91     HANDLE16    hInstance;
92     HICON16     hIcon;
93     HCURSOR16   hCursor;
94     HBRUSH16    hbrBackground;
95     SEGPTR      lpszMenuName WINE_PACKED;
96     SEGPTR      lpszClassName WINE_PACKED;
97 } WNDCLASS16, *LPWNDCLASS16;
98
99 typedef struct
100 {
101     UINT      cbSize;
102     UINT      style;
103     WNDPROC16   lpfnWndProc;
104     INT16       cbClsExtra;
105     INT16       cbWndExtra;
106     HANDLE16    hInstance;
107     HICON16     hIcon;
108     HCURSOR16   hCursor;
109     HBRUSH16    hbrBackground;
110     SEGPTR      lpszMenuName;
111     SEGPTR      lpszClassName;
112     HICON16     hIconSm;
113 } WNDCLASSEX16, *LPWNDCLASSEX16;
114
115 typedef struct
116 {
117     HWND16    hwnd;
118     UINT16    message;
119     WPARAM16  wParam;
120     LPARAM    lParam WINE_PACKED;
121     DWORD     time WINE_PACKED;
122     POINT16   pt WINE_PACKED;
123 } MSG16, *LPMSG16;
124
125 typedef struct
126 {
127     MSG16 msg;
128     WORD wParamHigh;
129 } MSG32_16, *LPMSG16_32;
130
131 /* Cursors / Icons */
132
133 typedef struct tagCURSORICONINFO
134 {
135     POINT16 ptHotSpot;
136     WORD    nWidth;
137     WORD    nHeight;
138     WORD    nWidthBytes;
139     BYTE    bPlanes;
140     BYTE    bBitsPerPixel;
141 } CURSORICONINFO;
142
143 typedef struct {
144         BOOL16          fIcon;
145         WORD            xHotspot;
146         WORD            yHotspot;
147         HBITMAP16       hbmMask;
148         HBITMAP16       hbmColor;
149 } ICONINFO16,*LPICONINFO16;
150
151 typedef struct
152 {
153     BYTE   fVirt;
154     WORD   key;
155     WORD   cmd;
156 } ACCEL16, *LPACCEL16;
157
158 /* FIXME: not sure this one is correct */
159 typedef struct {
160   UINT16    cbSize;
161   UINT16    fMask;
162   UINT16    fType;
163   UINT16    fState;
164   UINT16    wID;
165   HMENU16   hSubMenu;
166   HBITMAP16 hbmpChecked;
167   HBITMAP16 hbmpUnchecked;
168   DWORD     dwItemData;
169   SEGPTR    dwTypeData;
170   UINT16    cch;
171 } MENUITEMINFO16, *LPMENUITEMINFO16;
172
173 /* DrawState defines ... */
174 typedef BOOL16 CALLBACK (*DRAWSTATEPROC16)(HDC16,LPARAM,WPARAM16,INT16,INT16);
175
176 /* Listbox messages */
177 #define LB_ADDSTRING16           (WM_USER+1)
178 #define LB_INSERTSTRING16        (WM_USER+2)
179 #define LB_DELETESTRING16        (WM_USER+3)
180 #define LB_SELITEMRANGEEX16      (WM_USER+4)
181 #define LB_RESETCONTENT16        (WM_USER+5)
182 #define LB_SETSEL16              (WM_USER+6)
183 #define LB_SETCURSEL16           (WM_USER+7)
184 #define LB_GETSEL16              (WM_USER+8)
185 #define LB_GETCURSEL16           (WM_USER+9)
186 #define LB_GETTEXT16             (WM_USER+10)
187 #define LB_GETTEXTLEN16          (WM_USER+11)
188 #define LB_GETCOUNT16            (WM_USER+12)
189 #define LB_SELECTSTRING16        (WM_USER+13)
190 #define LB_DIR16                 (WM_USER+14)
191 #define LB_GETTOPINDEX16         (WM_USER+15)
192 #define LB_FINDSTRING16          (WM_USER+16)
193 #define LB_GETSELCOUNT16         (WM_USER+17)
194 #define LB_GETSELITEMS16         (WM_USER+18)
195 #define LB_SETTABSTOPS16         (WM_USER+19)
196 #define LB_GETHORIZONTALEXTENT16 (WM_USER+20)
197 #define LB_SETHORIZONTALEXTENT16 (WM_USER+21)
198 #define LB_SETCOLUMNWIDTH16      (WM_USER+22)
199 #define LB_ADDFILE16             (WM_USER+23)
200 #define LB_SETTOPINDEX16         (WM_USER+24)
201 #define LB_GETITEMRECT16         (WM_USER+25)
202 #define LB_GETITEMDATA16         (WM_USER+26)
203 #define LB_SETITEMDATA16         (WM_USER+27)
204 #define LB_SELITEMRANGE16        (WM_USER+28)
205 #define LB_SETANCHORINDEX16      (WM_USER+29)
206 #define LB_GETANCHORINDEX16      (WM_USER+30)
207 #define LB_SETCARETINDEX16       (WM_USER+31)
208 #define LB_GETCARETINDEX16       (WM_USER+32)
209 #define LB_SETITEMHEIGHT16       (WM_USER+33)
210 #define LB_GETITEMHEIGHT16       (WM_USER+34)
211 #define LB_FINDSTRINGEXACT16     (WM_USER+35)
212 #define LB_CARETON16             (WM_USER+36)
213 #define LB_CARETOFF16            (WM_USER+37)
214
215 /* Combo box messages */
216 #define CB_GETEDITSEL16            (WM_USER+0)
217 #define CB_LIMITTEXT16             (WM_USER+1)
218 #define CB_SETEDITSEL16            (WM_USER+2)
219 #define CB_ADDSTRING16             (WM_USER+3)
220 #define CB_DELETESTRING16          (WM_USER+4)
221 #define CB_DIR16                   (WM_USER+5)
222 #define CB_GETCOUNT16              (WM_USER+6)
223 #define CB_GETCURSEL16             (WM_USER+7)
224 #define CB_GETLBTEXT16             (WM_USER+8)
225 #define CB_GETLBTEXTLEN16          (WM_USER+9)
226 #define CB_INSERTSTRING16          (WM_USER+10)
227 #define CB_RESETCONTENT16          (WM_USER+11)
228 #define CB_FINDSTRING16            (WM_USER+12)
229 #define CB_SELECTSTRING16          (WM_USER+13)
230 #define CB_SETCURSEL16             (WM_USER+14)
231 #define CB_SHOWDROPDOWN16          (WM_USER+15)
232 #define CB_GETITEMDATA16           (WM_USER+16)
233 #define CB_SETITEMDATA16           (WM_USER+17)
234 #define CB_GETDROPPEDCONTROLRECT16 (WM_USER+18)
235 #define CB_SETITEMHEIGHT16         (WM_USER+19)
236 #define CB_GETITEMHEIGHT16         (WM_USER+20)
237 #define CB_SETEXTENDEDUI16         (WM_USER+21)
238 #define CB_GETEXTENDEDUI16         (WM_USER+22)
239 #define CB_GETDROPPEDSTATE16       (WM_USER+23)
240 #define CB_FINDSTRINGEXACT16       (WM_USER+24)
241
242 typedef struct /* not sure if the 16bit version is correct */
243 {
244     UINT        cbSize;
245     HWND16      hwndOwner;
246     HINSTANCE16 hInstance;
247     SEGPTR      lpszText;
248     SEGPTR      lpszCaption;
249     DWORD       dwStyle;
250     SEGPTR      lpszIcon;
251     DWORD       dwContextHelpId;
252     MSGBOXCALLBACK      lpfnMsgBoxCallback;
253     DWORD       dwLanguageId;
254 } MSGBOXPARAMS16,*LPMSGBOXPARAMS16;
255
256   /* Windows */
257
258 typedef struct
259 {
260     LPVOID      lpCreateParams;
261     HINSTANCE16 hInstance;
262     HMENU16     hMenu;
263     HWND16      hwndParent;
264     INT16       cy;
265     INT16       cx;
266     INT16       y;
267     INT16       x;
268     LONG        style WINE_PACKED;
269     SEGPTR      lpszName WINE_PACKED;
270     SEGPTR      lpszClass WINE_PACKED;
271     DWORD       dwExStyle WINE_PACKED;
272 } CREATESTRUCT16, *LPCREATESTRUCT16;
273
274 typedef struct
275 {
276     HDC16   hdc;
277     BOOL16  fErase;
278     RECT16  rcPaint;
279     BOOL16  fRestore;
280     BOOL16  fIncUpdate;
281     BYTE    rgbReserved[16];
282 } PAINTSTRUCT16, *LPPAINTSTRUCT16;
283
284 typedef struct 
285 {
286     HMENU16   hWindowMenu;
287     UINT16    idFirstChild;
288 } CLIENTCREATESTRUCT16, *LPCLIENTCREATESTRUCT16;
289
290 typedef struct
291 {
292     SEGPTR       szClass;
293     SEGPTR       szTitle;
294     HINSTANCE16  hOwner;
295     INT16        x;
296     INT16        y;
297     INT16        cx;
298     INT16        cy;
299     DWORD        style WINE_PACKED;
300     LPARAM       lParam WINE_PACKED;
301 } MDICREATESTRUCT16, *LPMDICREATESTRUCT16;
302
303   /* WM_GETMINMAXINFO struct */
304 typedef struct
305 {
306     POINT16   ptReserved;
307     POINT16   ptMaxSize;
308     POINT16   ptMaxPosition;
309     POINT16   ptMinTrackSize;
310     POINT16   ptMaxTrackSize;
311 } MINMAXINFO16;
312
313   /* WM_WINDOWPOSCHANGING/CHANGED struct */
314 typedef struct tagWINDOWPOS16
315 {
316     HWND16  hwnd;
317     HWND16  hwndInsertAfter;
318     INT16   x;
319     INT16   y;
320     INT16   cx;
321     INT16   cy;
322     UINT16  flags;
323 } WINDOWPOS16, *LPWINDOWPOS16;
324
325   /* WM_NCCALCSIZE parameter structure */
326 typedef struct
327 {
328     RECT16  rgrc[3];
329     SEGPTR  lppos;
330 } NCCALCSIZE_PARAMS16, *LPNCCALCSIZE_PARAMS16;
331
332 typedef struct {
333         UINT16          cbSize;
334         INT16           iBorderWidth;
335         INT16           iScrollWidth;
336         INT16           iScrollHeight;
337         INT16           iCaptionWidth;
338         INT16           iCaptionHeight;
339         LOGFONT16       lfCaptionFont;
340         INT16           iSmCaptionWidth;
341         INT16           iSmCaptionHeight;
342         LOGFONT16       lfSmCaptionFont;
343         INT16           iMenuWidth;
344         INT16           iMenuHeight;
345         LOGFONT16       lfMenuFont;
346         LOGFONT16       lfStatusFont;
347         LOGFONT16       lfMessageFont;
348 } NONCLIENTMETRICS16,*LPNONCLIENTMETRICS16;
349
350   /* Journalling hook structure */
351
352 typedef struct
353 {
354     UINT16  message;
355     UINT16  paramL;
356     UINT16  paramH;
357     DWORD   time WINE_PACKED;
358 } EVENTMSG16, *LPEVENTMSG16;
359
360   /* Mouse hook structure */
361
362 typedef struct
363 {
364     POINT16 pt;
365     HWND16  hwnd;
366     UINT16  wHitTestCode;
367     DWORD   dwExtraInfo;
368 } MOUSEHOOKSTRUCT16, *LPMOUSEHOOKSTRUCT16;
369
370   /* Hardware hook structure */
371
372 typedef struct
373 {
374     HWND16    hWnd;
375     UINT16    wMessage;
376     WPARAM16  wParam;
377     LPARAM    lParam WINE_PACKED;
378 } HARDWAREHOOKSTRUCT16, *LPHARDWAREHOOKSTRUCT16;
379
380 /* Scrollbar messages */
381 #define SBM_SETPOS16             (WM_USER+0)
382 #define SBM_GETPOS16             (WM_USER+1)
383 #define SBM_SETRANGE16           (WM_USER+2)
384 #define SBM_GETRANGE16           (WM_USER+3)
385 #define SBM_ENABLE_ARROWS16      (WM_USER+4)
386 #define SBM_SETRANGEREDRAW16     WM_NULL  /* Not in Win16 */
387 #define SBM_SETSCROLLINFO16      WM_NULL  /* Not in Win16 */
388 #define SBM_GETSCROLLINFO16      WM_NULL  /* Not in Win16 */
389
390   /* CBT hook structures */
391
392 typedef struct
393 {
394     CREATESTRUCT16  *lpcs;
395     HWND16           hwndInsertAfter;
396 } CBT_CREATEWND16, *LPCBT_CREATEWND16;
397
398 typedef struct
399 {
400     BOOL16    fMouse;
401     HWND16    hWndActive;
402 } CBTACTIVATESTRUCT16, *LPCBTACTIVATESTRUCT16;
403
404   /* Debug hook structure */
405
406 typedef struct
407 {
408     HMODULE16   hModuleHook;
409     LPARAM      reserved WINE_PACKED;
410     LPARAM      lParam WINE_PACKED;
411     WPARAM16    wParam;
412     INT16       code;
413 } DEBUGHOOKINFO16, *LPDEBUGHOOKINFO16;
414
415 #define GETMAXLPT       8
416 #define GETMAXCOM       9
417
418 /* GetFreeSystemResources() parameters */
419
420 #define GFSR_SYSTEMRESOURCES   0x0000
421 #define GFSR_GDIRESOURCES      0x0001
422 #define GFSR_USERRESOURCES     0x0002
423
424 #define MAKEINTRESOURCE16(i)  (SEGPTR)((DWORD)((WORD)(i)))
425
426 /* Predefined resource types */
427 #define RT_CURSOR16          MAKEINTRESOURCE16(1)
428 #define RT_BITMAP16          MAKEINTRESOURCE16(2)
429 #define RT_ICON16            MAKEINTRESOURCE16(3)
430 #define RT_MENU16            MAKEINTRESOURCE16(4)
431 #define RT_DIALOG16          MAKEINTRESOURCE16(5)
432 #define RT_STRING16          MAKEINTRESOURCE16(6)
433 #define RT_FONTDIR16         MAKEINTRESOURCE16(7)
434 #define RT_FONT16            MAKEINTRESOURCE16(8)
435 #define RT_ACCELERATOR16     MAKEINTRESOURCE16(9)
436 #define RT_RCDATA16          MAKEINTRESOURCE16(10)
437 #define RT_MESSAGELIST16     MAKEINTRESOURCE16(11)
438 #define RT_GROUP_CURSOR16    MAKEINTRESOURCE16(12)
439 #define RT_GROUP_ICON16      MAKEINTRESOURCE16(14)
440
441 /* CreateWindow() coordinates */
442 #define CW_USEDEFAULT16 ((INT16)0x8000)
443
444 /* Win16 button control messages */
445 #define BM_GETCHECK16          (WM_USER+0)
446 #define BM_SETCHECK16          (WM_USER+1)
447 #define BM_GETSTATE16          (WM_USER+2)
448 #define BM_SETSTATE16          (WM_USER+3)
449 #define BM_SETSTYLE16          (WM_USER+4)
450 #define BM_CLICK16             WM_NULL  /* Does not exist in Win16 */
451 #define BM_GETIMAGE16          WM_NULL  /* Does not exist in Win16 */
452 #define BM_SETIMAGE16          WM_NULL  /* Does not exist in Win16 */
453
454 /* Static Control Messages */
455 #define STM_SETICON16       (WM_USER+0)
456 #define STM_GETICON16       (WM_USER+1)
457
458 /* Edit control messages */
459 #define EM_GETSEL16                (WM_USER+0)
460 #define EM_SETSEL16                (WM_USER+1)
461 #define EM_GETRECT16               (WM_USER+2)
462 #define EM_SETRECT16               (WM_USER+3)
463 #define EM_SETRECTNP16             (WM_USER+4)
464 #define EM_SCROLL16                (WM_USER+5)
465 #define EM_LINESCROLL16            (WM_USER+6)
466 #define EM_SCROLLCARET16           (WM_USER+7)
467 #define EM_GETMODIFY16             (WM_USER+8)
468 #define EM_SETMODIFY16             (WM_USER+9)
469 #define EM_GETLINECOUNT16          (WM_USER+10)
470 #define EM_LINEINDEX16             (WM_USER+11)
471 #define EM_SETHANDLE16             (WM_USER+12)
472 #define EM_GETHANDLE16             (WM_USER+13)
473 #define EM_GETTHUMB16              (WM_USER+14)
474 #define EM_LINELENGTH16            (WM_USER+17)
475 #define EM_REPLACESEL16            (WM_USER+18)
476 #define EM_GETLINE16               (WM_USER+20)
477 #define EM_LIMITTEXT16             (WM_USER+21)
478 #define EM_CANUNDO16               (WM_USER+22)
479 #define EM_UNDO16                  (WM_USER+23)
480 #define EM_FMTLINES16              (WM_USER+24)
481 #define EM_LINEFROMCHAR16          (WM_USER+25)
482 #define EM_SETTABSTOPS16           (WM_USER+27)
483 #define EM_SETPASSWORDCHAR16       (WM_USER+28)
484 #define EM_EMPTYUNDOBUFFER16       (WM_USER+29)
485 #define EM_GETFIRSTVISIBLELINE16   (WM_USER+30)
486 #define EM_SETREADONLY16           (WM_USER+31)
487 #define EM_SETWORDBREAKPROC16      (WM_USER+32)
488 #define EM_GETWORDBREAKPROC16      (WM_USER+33)
489 #define EM_GETPASSWORDCHAR16       (WM_USER+34)
490 /*
491   not in win16:
492     EM_SETMARGINS16            WM_NULL
493     EM_GETMARGINS16            WM_NULL
494     EM_GETLIMITTEXT16          WM_NULL
495     EM_POSFROMCHAR16           WM_NULL
496     EM_CHARFROMPOS16           WM_NULL
497     EM_SETLIMITTEXT16          WM_NULL - no name change in win16
498 */
499
500 typedef struct
501 {
502     UINT16      CtlType;
503     UINT16      CtlID;
504     UINT16      itemID;
505     UINT16      itemAction;
506     UINT16      itemState;
507     HWND16      hwndItem;
508     HDC16       hDC;
509     RECT16      rcItem WINE_PACKED;
510     DWORD       itemData WINE_PACKED;
511 } DRAWITEMSTRUCT16, *PDRAWITEMSTRUCT16, *LPDRAWITEMSTRUCT16;
512
513 typedef struct
514 {
515     UINT16      CtlType;
516     UINT16      CtlID;
517     UINT16      itemID;
518     UINT16      itemWidth;
519     UINT16      itemHeight;
520     DWORD       itemData WINE_PACKED;
521 } MEASUREITEMSTRUCT16, *PMEASUREITEMSTRUCT16, *LPMEASUREITEMSTRUCT16;
522
523 typedef struct
524 {
525     UINT16     CtlType;
526     UINT16     CtlID;
527     UINT16     itemID;
528     HWND16     hwndItem;
529     DWORD      itemData;
530 } DELETEITEMSTRUCT16, *LPDELETEITEMSTRUCT16;
531
532 typedef struct
533 {
534     UINT16      CtlType;
535     UINT16      CtlID;
536     HWND16      hwndItem;
537     UINT16      itemID1;
538     DWORD       itemData1;
539     UINT16      itemID2;
540     DWORD       itemData2 WINE_PACKED;
541 } COMPAREITEMSTRUCT16, *LPCOMPAREITEMSTRUCT16;
542
543 #include "poppack.h"
544
545 /* WM_COMMNOTIFY flags */
546 #define CN_RECEIVE      0x0001
547 #define CN_TRANSMIT     0x0002
548 #define CN_EVENT        0x0004
549
550 BOOL16      WINAPI CheckMenuRadioItem16(HMENU16,UINT16,UINT16,UINT16,UINT16);
551 HICON16     WINAPI CopyImage16(HANDLE16,UINT16,INT16,INT16,UINT16);
552 HICON16     WINAPI CreateIconFromResource16(LPBYTE,UINT16,BOOL16,DWORD);
553 BOOL16      WINAPI EnumChildWindows16(HWND16,WNDENUMPROC16,LPARAM);
554 INT16       WINAPI EnumProps16(HWND16,PROPENUMPROC16);
555 BOOL16      WINAPI EnumWindows16(WNDENUMPROC16,LPARAM);
556 DWORD       WINAPI GetAppCompatFlags16(HTASK16);
557 INT16       WINAPI GetKBCodePage16(void);
558 INT16       WINAPI GetKeyboardType16(INT16);
559 INT16       WINAPI GetKeyNameText16(LONG,LPSTR,INT16);
560 INT16       WINAPI GetWindowRgn16(HWND16,HRGN16);
561 BOOL16      WINAPI IsWindow16(HWND16);
562 INT16       WINAPI LookupIconIdFromDirectory16(LPBYTE,BOOL16);
563 UINT16      WINAPI MapVirtualKey16(UINT16,UINT16);
564 LRESULT     WINAPI SendMessageTimeout16(HWND16,UINT16,WPARAM16,LPARAM,UINT16,
565                                         UINT16,LPWORD);
566 FARPROC16   WINAPI SetWindowsHook16(INT16,HOOKPROC16);
567 HHOOK       WINAPI SetWindowsHookEx16(INT16,HOOKPROC16,HINSTANCE16,HTASK16);
568 BOOL16      WINAPI UnhookWindowsHook16(INT16,HOOKPROC16);
569 BOOL16      WINAPI UnhookWindowsHookEx16(HHOOK);
570 INT16       WINAPI wvsnprintf16(LPSTR,UINT16,LPCSTR,LPCVOID);
571 VOID        WINAPI CalcChildScroll16(HWND16,WORD);
572 VOID        WINAPI CascadeChildWindows16(HWND16,WORD);
573 INT16       WINAPI CloseComm16(INT16);
574 HGLOBAL16   WINAPI CreateCursorIconIndirect16(HINSTANCE16,CURSORICONINFO*,
575                                             LPCVOID,LPCVOID);
576 BOOL16      WINAPI DCHook16(HDC16,WORD,DWORD,LPARAM);
577 BOOL16      WINAPI DlgDirSelect16(HWND16,LPSTR,INT16);
578 BOOL16      WINAPI DlgDirSelectComboBox16(HWND16,LPSTR,INT16);
579 DWORD       WINAPI DumpIcon16(SEGPTR,WORD*,SEGPTR*,SEGPTR*);
580 BOOL16      WINAPI EnableCommNotification16(INT16,HWND16,INT16,INT16);
581 BOOL16      WINAPI EnableHardwareInput16(BOOL16);
582 VOID        WINAPI FillWindow16(HWND16,HWND16,HDC16,HBRUSH16);
583 INT16       WINAPI FlushComm16(INT16,INT16);
584 UINT16      WINAPI GetCommEventMask16(INT16,UINT16);
585 HBRUSH16    WINAPI GetControlBrush16(HWND16,HDC16,UINT16);
586 HWND16      WINAPI GetDesktopHwnd16(void);
587 WORD        WINAPI GetIconID16(HGLOBAL16,DWORD);
588 FARPROC16   WINAPI GetMouseEventProc16(void);
589 INT16       WINAPI InitApp16(HINSTANCE16);
590 BOOL16      WINAPI IsUserIdle16(void);
591 HGLOBAL16   WINAPI LoadCursorIconHandler16(HGLOBAL16,HMODULE16,HRSRC16);
592 HGLOBAL16   WINAPI LoadDIBCursorHandler16(HGLOBAL16,HMODULE16,HRSRC16);
593 HGLOBAL16   WINAPI LoadDIBIconHandler16(HGLOBAL16,HMODULE16,HRSRC16);
594 HICON16     WINAPI LoadIconHandler16(HGLOBAL16,BOOL16);
595 HMENU16     WINAPI LookupMenuHandle16(HMENU16,INT16);
596 INT16       WINAPI OpenComm16(LPCSTR,UINT16,UINT16);
597 VOID        WINAPI PaintRect16(HWND16,HWND16,HDC16,HBRUSH16,const RECT16*);
598 INT16       WINAPI ReadComm16(INT16,LPSTR,INT16);
599 SEGPTR      WINAPI SetCommEventMask16(INT16,UINT16);
600 BOOL16      WINAPI SetDeskPattern(void);
601 VOID        WINAPI TileChildWindows16(HWND16,WORD);
602 INT16       WINAPI UngetCommChar16(INT16,CHAR);
603 VOID        WINAPI UserYield16(void);
604 INT16       WINAPI WriteComm16(INT16,LPSTR,INT16);
605 BOOL16      WINAPI AdjustWindowRect16(LPRECT16,DWORD,BOOL16);
606 BOOL16      WINAPI AdjustWindowRectEx16(LPRECT16,DWORD,BOOL16,DWORD);
607 SEGPTR      WINAPI AnsiLower16(SEGPTR);
608 UINT16      WINAPI AnsiLowerBuff16(LPSTR,UINT16);
609 SEGPTR      WINAPI AnsiNext16(SEGPTR);
610 SEGPTR      WINAPI AnsiPrev16(LPCSTR,SEGPTR);
611 SEGPTR      WINAPI AnsiUpper16(SEGPTR);
612 UINT16      WINAPI AnsiUpperBuff16(LPSTR,UINT16);
613 BOOL16      WINAPI AnyPopup16(void);
614 BOOL16      WINAPI AppendMenu16(HMENU16,UINT16,UINT16,SEGPTR);
615 UINT16      WINAPI ArrangeIconicWindows16(HWND16);
616 HDWP16      WINAPI BeginDeferWindowPos16(INT16);
617 HDC16       WINAPI BeginPaint16(HWND16,LPPAINTSTRUCT16);
618 BOOL16      WINAPI BringWindowToTop16(HWND16);
619 BOOL16      WINAPI CallMsgFilter16(SEGPTR,INT16);
620 BOOL16      WINAPI CallMsgFilter32_16(SEGPTR,INT16,BOOL16);
621 LRESULT     WINAPI CallNextHookEx16(HHOOK,INT16,WPARAM16,LPARAM);
622 LRESULT     WINAPI CallWindowProc16(WNDPROC16,HWND16,UINT16,WPARAM16,LPARAM);
623 BOOL16      WINAPI ChangeClipboardChain16(HWND16,HWND16);
624 BOOL16      WINAPI ChangeMenu16(HMENU16,UINT16,SEGPTR,UINT16,UINT16);
625 BOOL16      WINAPI CheckDlgButton16(HWND16,INT16,UINT16);
626 BOOL16      WINAPI CheckMenuItem16(HMENU16,UINT16,UINT16);
627 BOOL16      WINAPI CheckRadioButton16(HWND16,UINT16,UINT16,UINT16);
628 HWND16      WINAPI ChildWindowFromPoint16(HWND16,POINT16);
629 HWND16      WINAPI ChildWindowFromPointEx16(HWND16,POINT16,UINT16);
630 INT16       WINAPI ClearCommBreak16(INT16);
631 VOID        WINAPI ClientToScreen16(HWND16,LPPOINT16);
632 BOOL16      WINAPI ClipCursor16(const RECT16*);
633 BOOL16      WINAPI CloseClipboard16(void);
634 BOOL16      WINAPI CloseWindow16(HWND16);
635 void        WINAPI ControlPanelInfo16(INT16, WORD, LPSTR);
636 HCURSOR16   WINAPI CopyCursor16(HINSTANCE16,HCURSOR16);
637 HICON16     WINAPI CopyIcon16(HINSTANCE16,HICON16);
638 BOOL16      WINAPI CopyRect16(RECT16*,const RECT16*);
639 INT16       WINAPI CountClipboardFormats16(void);
640 VOID        WINAPI CreateCaret16(HWND16,HBITMAP16,INT16,INT16);
641 HCURSOR16   WINAPI CreateCursor16(HINSTANCE16,INT16,INT16,INT16,INT16,LPCVOID,LPCVOID);
642 HWND16      WINAPI CreateDialog16(HINSTANCE16,LPCSTR,HWND16,DLGPROC16);
643 HWND16      WINAPI CreateDialogIndirect16(HINSTANCE16,LPCVOID,HWND16,DLGPROC16);
644 HWND16      WINAPI CreateDialogIndirectParam16(HINSTANCE16,LPCVOID,HWND16,
645                                                DLGPROC16,LPARAM);
646 HWND16      WINAPI CreateDialogParam16(HINSTANCE16,LPCSTR,HWND16,DLGPROC16,LPARAM);
647 HICON16     WINAPI CreateIcon16(HINSTANCE16,INT16,INT16,BYTE,BYTE,LPCVOID,LPCVOID);
648 HICON16     WINAPI CreateIconFromResourceEx16(LPBYTE,UINT16,BOOL16,DWORD,INT16,INT16,UINT16);
649 HMENU16     WINAPI CreateMenu16(void);
650 HMENU16     WINAPI CreatePopupMenu16(void);
651 HWND16      WINAPI CreateWindow16(LPCSTR,LPCSTR,DWORD,INT16,INT16,INT16,INT16,
652                                   HWND16,HMENU16,HINSTANCE16,LPVOID);
653 HWND16      WINAPI CreateWindowEx16(DWORD,LPCSTR,LPCSTR,DWORD,INT16,INT16,
654                                 INT16,INT16,HWND16,HMENU16,HINSTANCE16,LPVOID);
655 LRESULT     WINAPI DefDlgProc16(HWND16,UINT16,WPARAM16,LPARAM);
656 HDWP16      WINAPI DeferWindowPos16(HDWP16,HWND16,HWND16,INT16,INT16,INT16,INT16,UINT16);
657 LRESULT     WINAPI DefFrameProc16(HWND16,HWND16,UINT16,WPARAM16,LPARAM);
658 LRESULT     WINAPI DefHookProc16(INT16,WPARAM16,LPARAM,HHOOK*);
659 LRESULT     WINAPI DefMDIChildProc16(HWND16,UINT16,WPARAM16,LPARAM);
660 LRESULT     WINAPI DefWindowProc16(HWND16,UINT16,WPARAM16,LPARAM);
661 BOOL16      WINAPI DeleteMenu16(HMENU16,UINT16,UINT16);
662 VOID        WINAPI DestroyCaret16(void);
663 BOOL16      WINAPI DestroyCursor16(HCURSOR16);
664 BOOL16      WINAPI DestroyIcon16(HICON16);
665 BOOL16      WINAPI DestroyMenu16(HMENU16);
666 BOOL16      WINAPI DestroyWindow16(HWND16);
667 INT16       WINAPI DialogBox16(HINSTANCE16,LPCSTR,HWND16,DLGPROC16);
668 INT16       WINAPI DialogBoxIndirect16(HINSTANCE16,HANDLE16,HWND16,DLGPROC16);
669 INT16       WINAPI DialogBoxIndirectParam16(HINSTANCE16,HANDLE16,HWND16,DLGPROC16,LPARAM);
670 INT16       WINAPI DialogBoxParam16(HINSTANCE16,LPCSTR,HWND16,DLGPROC16,LPARAM);
671 LONG        WINAPI DispatchMessage16(const MSG16*);
672 LONG        WINAPI DispatchMessage32_16(const MSG32_16*,BOOL16);
673 INT16       WINAPI DlgDirList16(HWND16,LPSTR,INT16,INT16,UINT16);
674 INT16       WINAPI DlgDirListComboBox16(HWND16,LPSTR,INT16,INT16,UINT16);
675 BOOL16      WINAPI DlgDirSelectComboBoxEx16(HWND16,LPSTR,INT16,INT16);
676 BOOL16      WINAPI DlgDirSelectEx16(HWND16,LPSTR,INT16,INT16);
677 BOOL16      WINAPI DragDetect16(HWND16,POINT16);
678 DWORD       WINAPI DragObject16(HWND16,HWND16,UINT16,HANDLE16,WORD,HCURSOR16);
679 BOOL16      WINAPI DrawAnimatedRects16(HWND16,INT16,const RECT16*,const RECT16*);
680 BOOL16      WINAPI DrawCaption16(HWND16,HDC16,const RECT16*,UINT16);
681 BOOL16      WINAPI DrawCaptionTemp16(HWND16,HDC16, const RECT16*,HFONT16,HICON16,LPCSTR,UINT16);
682 BOOL16      WINAPI DrawEdge16(HDC16,LPRECT16,UINT16,UINT16);
683 void        WINAPI DrawFocusRect16(HDC16,const RECT16*);
684 BOOL16      WINAPI DrawFrameControl16(HDC16,LPRECT16,UINT16,UINT16);
685 BOOL16      WINAPI DrawIcon16(HDC16,INT16,INT16,HICON16);
686 BOOL16      WINAPI DrawIconEx16(HDC16,INT16,INT16,HICON16,INT16,INT16,
687                                 UINT16,HBRUSH16,UINT16);
688 VOID        WINAPI DrawMenuBar16(HWND16);
689 INT16       WINAPI DrawText16(HDC16,LPCSTR,INT16,LPRECT16,UINT16);
690 BOOL16      WINAPI EmptyClipboard16(void);
691 UINT16      WINAPI EnableMenuItem16(HMENU16,UINT16,UINT16);
692 BOOL16      WINAPI EnableScrollBar16(HWND16,INT16,UINT16);
693 BOOL16      WINAPI EnableWindow16(HWND16,BOOL16);
694 BOOL16      WINAPI EndDeferWindowPos16(HDWP16);
695 BOOL16      WINAPI EndDialog16(HWND16,INT16);
696 BOOL16      WINAPI EndPaint16(HWND16,const PAINTSTRUCT16*);
697 UINT16      WINAPI EnumClipboardFormats16(UINT16);
698 BOOL16      WINAPI EqualRect16(const RECT16*,const RECT16*);
699 LONG        WINAPI EscapeCommFunction16(UINT16,UINT16);
700 INT16       WINAPI ExcludeUpdateRgn16(HDC16,HWND16);
701 BOOL16      WINAPI ExitWindows16(DWORD,UINT16);
702 INT16       WINAPI FillRect16(HDC16,const RECT16*,HBRUSH16);
703 HWND16      WINAPI FindWindow16(LPCSTR,LPCSTR);
704 HWND16      WINAPI FindWindowEx16(HWND16,HWND16,LPCSTR,LPCSTR);
705 BOOL16      WINAPI FlashWindow16(HWND16,BOOL16);
706 DWORD       WINAPI FormatMessage16(DWORD,SEGPTR,WORD,WORD,LPSTR,WORD,LPDWORD);
707 INT16       WINAPI FrameRect16(HDC16,const RECT16*,HBRUSH16);
708 HWND16      WINAPI GetActiveWindow16(void);
709 WORD        WINAPI GetAsyncKeyState16(INT16);
710 HWND16      WINAPI GetCapture16(void);
711 UINT16      WINAPI GetCaretBlinkTime16(void);
712 VOID        WINAPI GetCaretPos16(LPPOINT16);
713 BOOL16      WINAPI GetClassInfo16(HINSTANCE16,SEGPTR,WNDCLASS16 *);
714 BOOL16      WINAPI GetClassInfoEx16(HINSTANCE16,SEGPTR,WNDCLASSEX16 *);
715 LONG        WINAPI GetClassLong16(HWND16,INT16);
716 INT16       WINAPI GetClassName16(HWND16,LPSTR,INT16);
717 WORD        WINAPI GetClassWord16(HWND16,INT16);
718 void        WINAPI GetClientRect16(HWND16,LPRECT16);
719 HANDLE16    WINAPI GetClipboardData16(UINT16);
720 INT16       WINAPI GetClipboardFormatName16(UINT16,LPSTR,INT16);
721 HWND16      WINAPI GetClipboardOwner16(void);
722 HWND16      WINAPI GetClipboardViewer16(void);
723 void        WINAPI GetClipCursor16(LPRECT16);
724 DWORD       WINAPI GetCurrentTime16(void);
725 HCURSOR16   WINAPI GetCursor16(void);
726 BOOL16      WINAPI GetCursorPos16(LPPOINT16);
727 HDC16       WINAPI GetDC16(HWND16);
728 HDC16       WINAPI GetDCEx16(HWND16,HRGN16,DWORD);
729 HWND16      WINAPI GetDesktopWindow16(void);
730 INT16       WINAPI GetDlgCtrlID16(HWND16);
731 HWND16      WINAPI GetDlgItem16(HWND16,INT16);
732 UINT16      WINAPI GetDlgItemInt16(HWND16,INT16,BOOL16*,BOOL16);
733 INT16       WINAPI GetDlgItemText16(HWND16,INT16,SEGPTR,UINT16);
734 UINT16      WINAPI GetDoubleClickTime16(void);
735 HWND16      WINAPI GetFocus16(void);
736 HWND16      WINAPI GetForegroundWindow16(void);
737 BOOL16      WINAPI GetIconInfo16(HICON16,LPICONINFO16);
738 BOOL16      WINAPI GetInputState16(void);
739 UINT16      WINAPI GetInternalWindowPos16(HWND16,LPRECT16,LPPOINT16);
740 INT16       WINAPI GetKeyboardLayoutName16(LPSTR);
741 INT16       WINAPI GetKeyState16(INT16);
742 HWND16      WINAPI GetLastActivePopup16(HWND16);
743 HMENU16     WINAPI GetMenu16(HWND16);
744 DWORD       WINAPI GetMenuContextHelpId16(HMENU16);
745 INT16       WINAPI GetMenuItemCount16(HMENU16);
746 UINT16      WINAPI GetMenuItemID16(HMENU16,INT16);
747 BOOL16      WINAPI GetMenuItemRect16(HWND16,HMENU16,UINT16,LPRECT16);
748 UINT16      WINAPI GetMenuState16(HMENU16,UINT16,UINT16);
749 INT16       WINAPI GetMenuString16(HMENU16,UINT16,LPSTR,INT16,UINT16);
750 BOOL16      WINAPI GetMessage16(SEGPTR,HWND16,UINT16,UINT16);
751 BOOL16      WINAPI GetMessage32_16(SEGPTR,HWND16,UINT16,UINT16,BOOL16);
752 HWND16      WINAPI GetNextDlgGroupItem16(HWND16,HWND16,BOOL16);
753 HWND16      WINAPI GetNextDlgTabItem16(HWND16,HWND16,BOOL16);
754 HWND16      WINAPI GetNextWindow16(HWND16,WORD);
755 HWND16      WINAPI GetOpenClipboardWindow16(void);
756 HWND16      WINAPI GetParent16(HWND16);
757 INT16       WINAPI GetPriorityClipboardFormat16(UINT16*,INT16);
758 HANDLE16    WINAPI GetProp16(HWND16,LPCSTR);
759 DWORD       WINAPI GetQueueStatus16(UINT16);
760 BOOL16      WINAPI GetScrollInfo16(HWND16,INT16,LPSCROLLINFO);
761 INT16       WINAPI GetScrollPos16(HWND16,INT16);
762 BOOL16      WINAPI GetScrollRange16(HWND16,INT16,LPINT16,LPINT16);
763 HWND16      WINAPI GetShellWindow16(void);
764 HMENU16     WINAPI GetSubMenu16(HMENU16,INT16);
765 COLORREF    WINAPI GetSysColor16(INT16);
766 HBRUSH16    WINAPI GetSysColorBrush16(INT16);
767 HWND16      WINAPI GetSysModalWindow16(void);
768 HMENU16     WINAPI GetSystemMenu16(HWND16,BOOL16);
769 INT16       WINAPI GetSystemMetrics16(INT16);
770 DWORD       WINAPI GetTabbedTextExtent16(HDC16,LPCSTR,INT16,INT16,const INT16*);
771 HWND16      WINAPI GetTopWindow16(HWND16);
772 BOOL16      WINAPI GetUpdateRect16(HWND16,LPRECT16,BOOL16);
773 INT16       WINAPI GetUpdateRgn16(HWND16,HRGN16,BOOL16);
774 HWND16      WINAPI GetWindow16(HWND16,WORD);
775 HDC16       WINAPI GetWindowDC16(HWND16);
776 LONG        WINAPI GetWindowLong16(HWND16,INT16);
777 BOOL16      WINAPI GetWindowPlacement16(HWND16,LPWINDOWPLACEMENT16);
778 void        WINAPI GetWindowRect16(HWND16,LPRECT16);
779 HTASK16     WINAPI GetWindowTask16(HWND16);
780 INT16       WINAPI GetWindowText16(HWND16,SEGPTR,INT16);
781 INT16       WINAPI GetWindowTextLength16(HWND16);
782 WORD        WINAPI GetWindowWord16(HWND16,INT16);
783 VOID        WINAPI HideCaret16(HWND16);
784 BOOL16      WINAPI HiliteMenuItem16(HWND16,HMENU16,UINT16,UINT16);
785 DWORD       WINAPI IconSize16(void);
786 void        WINAPI InflateRect16(LPRECT16,INT16,INT16);
787 BOOL16      WINAPI InSendMessage16(void);
788 BOOL16      WINAPI InsertMenu16(HMENU16,UINT16,UINT16,UINT16,SEGPTR);
789 BOOL16      WINAPI InsertMenuItem16(HMENU16,UINT16,BOOL16,const MENUITEMINFO16*);
790 BOOL16      WINAPI IntersectRect16(LPRECT16,const RECT16*,const RECT16*);
791 void        WINAPI InvalidateRect16(HWND16,const RECT16*,BOOL16);
792 void        WINAPI InvalidateRgn16(HWND16,HRGN16,BOOL16);
793 void        WINAPI InvertRect16(HDC16,const RECT16*);
794 BOOL16      WINAPI IsCharAlpha16(CHAR);
795 BOOL16      WINAPI IsCharAlphaNumeric16(CHAR);
796 BOOL16      WINAPI IsCharLower16(CHAR);
797 BOOL16      WINAPI IsCharUpper16(CHAR);
798 BOOL16      WINAPI IsChild16(HWND16,HWND16);
799 BOOL16      WINAPI IsClipboardFormatAvailable16(UINT16);
800 UINT16      WINAPI IsDlgButtonChecked16(HWND16,UINT16);
801 BOOL16      WINAPI IsIconic16(HWND16);
802 BOOL16      WINAPI IsMenu16(HMENU16);
803 BOOL16      WINAPI IsRectEmpty16(const RECT16*);
804 BOOL16      WINAPI IsWindowEnabled16(HWND16);
805 BOOL16      WINAPI IsWindowVisible16(HWND16);
806 BOOL16      WINAPI IsZoomed16(HWND16);
807 BOOL16      WINAPI KillSystemTimer16(HWND16,UINT16);
808 BOOL16      WINAPI KillTimer16(HWND16,UINT16);
809 HBITMAP16   WINAPI LoadBitmap16(HANDLE16,LPCSTR);
810 HCURSOR16   WINAPI LoadCursor16(HINSTANCE16,LPCSTR);
811 HICON16     WINAPI LoadIcon16(HINSTANCE16,LPCSTR);
812 HANDLE16    WINAPI LoadImage16(HINSTANCE16,LPCSTR,UINT16,INT16,INT16,UINT16);
813 HMENU16     WINAPI LoadMenu16(HINSTANCE16,LPCSTR);
814 HMENU16     WINAPI LoadMenuIndirect16(LPCVOID);
815 INT16       WINAPI LoadString16(HINSTANCE16,UINT16,LPSTR,INT16);
816 BOOL16      WINAPI LockWindowUpdate16(HWND16);
817 INT16       WINAPI LookupIconIdFromDirectoryEx16(LPBYTE,BOOL16,INT16,INT16,UINT16);
818 void        WINAPI MapDialogRect16(HWND16,LPRECT16);
819 void        WINAPI MapWindowPoints16(HWND16,HWND16,LPPOINT16,UINT16);
820 VOID        WINAPI MessageBeep16(UINT16);
821 INT16       WINAPI MessageBox16(HWND16,LPCSTR,LPCSTR,UINT16);
822 INT16       WINAPI MessageBoxIndirect16(LPMSGBOXPARAMS16);
823 BOOL16      WINAPI ModifyMenu16(HMENU16,UINT16,UINT16,UINT16,SEGPTR);
824 BOOL16      WINAPI MoveWindow16(HWND16,INT16,INT16,INT16,INT16,BOOL16);
825 void        WINAPI OffsetRect16(LPRECT16,INT16,INT16);
826 BOOL16      WINAPI OpenClipboard16(HWND16);
827 BOOL16      WINAPI OpenIcon16(HWND16);
828 BOOL16      WINAPI PeekMessage16(SEGPTR,HWND16,UINT16,UINT16,UINT16);
829 BOOL16      WINAPI PeekMessage32_16(SEGPTR,HWND16,UINT16,UINT16,UINT16,BOOL16);
830 BOOL16      WINAPI PostAppMessage16(HTASK16,UINT16,WPARAM16,LPARAM);
831 BOOL16      WINAPI PostMessage16(HWND16,UINT16,WPARAM16,LPARAM);
832 void        WINAPI PostQuitMessage16(INT16);
833 BOOL16      WINAPI PtInRect16(const RECT16*,POINT16);
834 UINT16      WINAPI RealizePalette16(HDC16);
835 BOOL16      WINAPI RedrawWindow16(HWND16,const RECT16*,HRGN16,UINT16);
836 ATOM        WINAPI RegisterClass16(const WNDCLASS16*);
837 ATOM        WINAPI RegisterClassEx16(const WNDCLASSEX16*);
838 UINT16      WINAPI RegisterClipboardFormat16(LPCSTR);
839 BOOL        WINAPI RegisterShellHook16(HWND16,UINT16);
840 INT16       WINAPI ReleaseDC16(HWND16,HDC16);
841 BOOL16      WINAPI RemoveMenu16(HMENU16,UINT16,UINT16);
842 HANDLE16    WINAPI RemoveProp16(HWND16,LPCSTR);
843 VOID        WINAPI ReplyMessage16(LRESULT);
844 void        WINAPI ScreenToClient16(HWND16,LPPOINT16);
845 VOID        WINAPI ScrollChildren16(HWND16,UINT16,WPARAM16,LPARAM);
846 BOOL16      WINAPI ScrollDC16(HDC16,INT16,INT16,const RECT16*,const RECT16*,
847                       HRGN16,LPRECT16);
848 void        WINAPI ScrollWindow16(HWND16,INT16,INT16,const RECT16*,const RECT16*);
849 INT16       WINAPI ScrollWindowEx16(HWND16,INT16,INT16,const RECT16*,
850                                     const RECT16*,HRGN16,LPRECT16,UINT16);
851 HPALETTE16  WINAPI SelectPalette16(HDC16,HPALETTE16,BOOL16);
852 LRESULT     WINAPI SendDlgItemMessage16(HWND16,INT16,UINT16,WPARAM16,LPARAM);
853 LRESULT     WINAPI SendMessage16(HWND16,UINT16,WPARAM16,LPARAM);
854 HWND16      WINAPI SetActiveWindow16(HWND16);
855 HWND16      WINAPI SetCapture16(HWND16);
856 VOID        WINAPI SetCaretBlinkTime16(UINT16);
857 VOID        WINAPI SetCaretPos16(INT16,INT16);
858 LONG        WINAPI SetClassLong16(HWND16,INT16,LONG);
859 WORD        WINAPI SetClassWord16(HWND16,INT16,WORD);
860 HANDLE16    WINAPI SetClipboardData16(UINT16,HANDLE16);
861 HWND16      WINAPI SetClipboardViewer16(HWND16);
862 INT16       WINAPI SetCommBreak16(INT16);
863 HCURSOR16   WINAPI SetCursor16(HCURSOR16);
864 void        WINAPI SetCursorPos16(INT16,INT16);
865 BOOL16      WINAPI SetDeskWallPaper16(LPCSTR);
866 void        WINAPI SetDlgItemInt16(HWND16,INT16,UINT16,BOOL16);
867 void        WINAPI SetDlgItemText16(HWND16,INT16,SEGPTR);
868 VOID        WINAPI SetDoubleClickTime16(UINT16);
869 HWND16      WINAPI SetFocus16(HWND16);
870 BOOL16      WINAPI SetForegroundWindow16(HWND16);
871 void        WINAPI SetInternalWindowPos16(HWND16,UINT16,LPRECT16,LPPOINT16);
872 BOOL16      WINAPI SetMenu16(HWND16,HMENU16);
873 BOOL16      WINAPI SetMenuContextHelpId16(HMENU16,DWORD);
874 BOOL16      WINAPI SetMenuItemBitmaps16(HMENU16,UINT16,UINT16,HBITMAP16,HBITMAP16);
875 BOOL16      WINAPI SetMessageQueue16(INT16);
876 HWND16      WINAPI SetParent16(HWND16,HWND16);
877 BOOL16      WINAPI SetProp16(HWND16,LPCSTR,HANDLE16);
878 void        WINAPI SetRect16(LPRECT16,INT16,INT16,INT16,INT16);
879 void        WINAPI SetRectEmpty16(LPRECT16);
880 INT16       WINAPI SetScrollInfo16(HWND16,INT16,const SCROLLINFO*,BOOL16);
881 INT16       WINAPI SetScrollPos16(HWND16,INT16,INT16,BOOL16);
882 void        WINAPI SetScrollRange16(HWND16,INT16,INT16,INT16,BOOL16);
883 VOID        WINAPI SetSysColors16(INT16,const INT16*,const COLORREF*);
884 HWND16      WINAPI SetSysModalWindow16(HWND16);
885 BOOL16      WINAPI SetSystemMenu16(HWND16,HMENU16);
886 UINT16      WINAPI SetSystemTimer16(HWND16,UINT16,UINT16,TIMERPROC16);
887 UINT16      WINAPI SetTimer16(HWND16,UINT16,UINT16,TIMERPROC16);
888 LONG        WINAPI SetWindowLong16(HWND16,INT16,LONG);
889 BOOL16      WINAPI SetWindowPlacement16(HWND16,const WINDOWPLACEMENT16*);
890 BOOL16      WINAPI SetWindowPos16(HWND16,HWND16,INT16,INT16,INT16,INT16,WORD);
891 INT16       WINAPI SetWindowRgn16(HWND16,HRGN16,BOOL16);
892 BOOL16      WINAPI SetWindowText16(HWND16,SEGPTR);
893 WORD        WINAPI SetWindowWord16(HWND16,INT16,WORD);
894 VOID        WINAPI ShowCaret16(HWND16);
895 INT16       WINAPI ShowCursor16(BOOL16);
896 void        WINAPI ShowScrollBar16(HWND16,INT16,BOOL16);
897 VOID        WINAPI ShowOwnedPopups16(HWND16,BOOL16);
898 BOOL16      WINAPI ShowWindow16(HWND16,INT16);
899 BOOL16      WINAPI SubtractRect16(LPRECT16,const RECT16*,const RECT16*);
900 BOOL16      WINAPI SwapMouseButton16(BOOL16);
901 VOID        WINAPI SwitchToThisWindow16(HWND16,BOOL16);
902 BOOL16      WINAPI SystemParametersInfo16(UINT16,UINT16,LPVOID,UINT16);
903 LONG        WINAPI TabbedTextOut16(HDC16,INT16,INT16,LPCSTR,INT16,INT16,const INT16*,INT16);
904 BOOL16      WINAPI TrackPopupMenu16(HMENU16,UINT16,INT16,INT16,INT16,HWND16,const RECT16*);
905 INT16       WINAPI TranslateAccelerator16(HWND16,HACCEL16,LPMSG16);
906 BOOL16      WINAPI TranslateMDISysAccel16(HWND16,LPMSG16);
907 BOOL16      WINAPI TranslateMessage16(const MSG16*);
908 BOOL16      WINAPI TranslateMessage32_16(const MSG32_16*,BOOL16);
909 INT16       WINAPI TransmitCommChar16(INT16,CHAR);
910 BOOL16      WINAPI UnionRect16(LPRECT16,const RECT16*,const RECT16*);
911 BOOL16      WINAPI UnregisterClass16(LPCSTR,HINSTANCE16);
912 VOID        WINAPI UpdateWindow16(HWND16);
913 VOID        WINAPI ValidateRect16(HWND16,const RECT16*);
914 VOID        WINAPI ValidateRgn16(HWND16,HRGN16);
915 HWND16      WINAPI WindowFromDC16(HDC16);
916 HWND16      WINAPI WindowFromPoint16(POINT16);
917 BOOL16      WINAPI WinHelp16(HWND16,LPCSTR,UINT16,DWORD);
918 UINT16      WINAPI WNetAddConnection16(LPCSTR,LPCSTR,LPCSTR);
919 INT16       WINAPI wvsprintf16(LPSTR,LPCSTR,LPCVOID);
920 BOOL16      WINAPI DrawState16A(HDC16,HBRUSH16,DRAWSTATEPROC16,LPARAM,WPARAM16,INT16,INT16,INT16,INT16,UINT16);
921 BOOL16      WINAPI IsDialogMessage16(HWND16,SEGPTR);
922 INT16       WINAPI GetCommError16(INT16,LPCOMSTAT16);
923 BOOL16      WINAPI BuildCommDCB16(LPCSTR,LPDCB16);
924 INT16       WINAPI GetCommState16(INT16,LPDCB16);
925 INT16       WINAPI SetCommState16(LPDCB16);
926 INT16       WINAPI lstrcmp16(LPCSTR,LPCSTR);
927 INT16       WINAPI lstrcmpi16(LPCSTR,LPCSTR);
928
929 /* undocumented functions */
930
931 typedef VOID (*SYSTEMTIMERPROC)(WORD);
932
933 void        WINAPI ConvertDialog32To16(LPVOID,DWORD,LPVOID);
934 WORD        WINAPI CreateSystemTimer(WORD,SYSTEMTIMERPROC);
935 VOID        WINAPI DisableSystemTimers16(void);
936 VOID        WINAPI EnableSystemTimers16(void);
937 BOOL16      WINAPI EnumTaskWindows16(HTASK16,WNDENUMPROC16,LPARAM);
938 BOOL16      WINAPI GrayString16(HDC16,HBRUSH16,GRAYSTRINGPROC16,LPARAM,
939                                 INT16,INT16,INT16,INT16,INT16);
940 DWORD       WINAPI GetFileResourceSize16(LPCSTR,LPCSTR,LPCSTR,LPDWORD);
941 DWORD       WINAPI GetFileResource16(LPCSTR,LPCSTR,LPCSTR,DWORD,DWORD,LPVOID);
942 FARPROC16   WINAPI SetTaskSignalProc(HTASK16,FARPROC16);
943
944
945 /* DragObject stuff */
946
947 typedef struct
948 {
949     HWND16     hWnd;
950     HANDLE16   hScope;
951     WORD       wFlags;
952     HANDLE16   hList;
953     HANDLE16   hOfStruct;
954     POINT16 pt WINE_PACKED;
955     LONG       l WINE_PACKED;
956 } DRAGINFO16, *LPDRAGINFO16;
957
958 #define DRAGOBJ_PROGRAM         0x0001
959 #define DRAGOBJ_DATA            0x0002
960 #define DRAGOBJ_DIRECTORY       0x0004
961 #define DRAGOBJ_MULTIPLE        0x0008
962 #define DRAGOBJ_EXTERNAL        0x8000
963
964 #define DRAG_PRINT              0x544E5250
965 #define DRAG_FILE               0x454C4946
966
967 #endif /* __WINE_WINE_WINUSER16_H */