From 0256691709328730b1f6afee171d4aa95ff753ae Mon Sep 17 00:00:00 2001 From: Maurilio Longo Date: Sun, 9 Sep 2001 13:53:22 +0000 Subject: [PATCH] 2001-09-09 15:48 GMT+2 Maurilio Longo + contrib/hgf/os2pm/winctrl.prg + added + contrib/hgf/os2pm/button.prg + added + contrib/hgf/os2pm/edit.prg + added * contrib/hgf/os2pm/Makefile + added new files * contrib/hgf/os2pm/os2pm.c * modified and added new functions already added to win32.c * contrib/hgf/os2pm/os2pm.ch - removed all defines which are not currently needed, this makes os2pm.ch smaller and faster to compile. --- harbour/ChangeLog | 15 + harbour/contrib/hgf/os2pm/Makefile | 3 + harbour/contrib/hgf/os2pm/button.prg | 93 + harbour/contrib/hgf/os2pm/edit.prg | 83 + harbour/contrib/hgf/os2pm/os2pm.c | 214 +- harbour/contrib/hgf/os2pm/os2pm.ch | 5900 ++---------------------- harbour/contrib/hgf/os2pm/tform.prg | 152 +- harbour/contrib/hgf/os2pm/tmenu.prg | 45 +- harbour/contrib/hgf/os2pm/tmenuitm.prg | 63 +- harbour/contrib/hgf/os2pm/winctrl.prg | 95 + 10 files changed, 958 insertions(+), 5705 deletions(-) create mode 100644 harbour/contrib/hgf/os2pm/button.prg create mode 100644 harbour/contrib/hgf/os2pm/edit.prg create mode 100644 harbour/contrib/hgf/os2pm/winctrl.prg diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 007fdee133..48049d745d 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,18 @@ +2001-09-09 15:48 GMT+2 Maurilio Longo + + contrib/hgf/os2pm/winctrl.prg + + added + + contrib/hgf/os2pm/button.prg + + added + + contrib/hgf/os2pm/edit.prg + + added + * contrib/hgf/os2pm/Makefile + + added new files + * contrib/hgf/os2pm/os2pm.c + * modified and added new functions already added to win32.c + * contrib/hgf/os2pm/os2pm.ch + - removed all defines which are not currently needed, this makes + os2pm.ch smaller and faster to compile. + 2001-09-08 12:01 UTC-0800 Brian Hays - hb_slex.bc Removed unneeded file since Simplex uses makefile.bc now diff --git a/harbour/contrib/hgf/os2pm/Makefile b/harbour/contrib/hgf/os2pm/Makefile index f48052cf88..8100ee271c 100644 --- a/harbour/contrib/hgf/os2pm/Makefile +++ b/harbour/contrib/hgf/os2pm/Makefile @@ -11,6 +11,9 @@ PRG_SOURCES=\ tform.prg \ tmenu.prg \ tmenuitm.prg \ + winctrl.prg \ + button.prg \ + edit.prg \ LIBNAME=os2pm diff --git a/harbour/contrib/hgf/os2pm/button.prg b/harbour/contrib/hgf/os2pm/button.prg new file mode 100644 index 0000000000..9e71395590 --- /dev/null +++ b/harbour/contrib/hgf/os2pm/button.prg @@ -0,0 +1,93 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * Harbour GUI framework for IBM OS/2 Presentation Manager + * Class HBButton + * + * Copyright 2001 Antonio Linares + * Copyright 2001 Maurilio Longo + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ + +#include "common.ch" +#include "hbclass.ch" +#include "os2pm.ch" + + +// NOTE: Be sure they are the same +#define WS_CHILD WS_DISABLED //0x40000000 + + +CLASS HBButton FROM HBWinControl + + DATA OnClick PROPERTY + + METHOD New( oContainer ) + +ENDCLASS + + +METHOD New( oContainer ) CLASS HBButton + + ::hWnd = WinCreateWindow(oContainer:hWndClient,; /* Parent window */ + WC_BUTTON,; /* Class window */ + "",; /* Button text */ + WS_VISIBLE + WS_TABSTOP+; /* Visible style */ + BS_PUSHBUTTON + BS_AUTOSIZE,; /* Button style */ + 0, 0,; /* x, y */ + 80, 30,; /* cx, cy */ + oContainer:hWndClient,; /* Owner window */ + HWND_TOP,; /* Top of z-order */ + ::GetNewId(),; /* Identifier */ + nil,; /* Control data */ + nil) /* parameters */ + + // NOTE: There is no need to modify it later since I can give it an initial + // size during window creartion + //::Width = 80 + //::Height = 25 + +return Self diff --git a/harbour/contrib/hgf/os2pm/edit.prg b/harbour/contrib/hgf/os2pm/edit.prg new file mode 100644 index 0000000000..5095651f88 --- /dev/null +++ b/harbour/contrib/hgf/os2pm/edit.prg @@ -0,0 +1,83 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * Harbour GUI framework for IBM OS/2 Presentation Manager + * Class HBEdit + * + * Copyright 2001 Antonio Linares + * Copyright 2001 Maurilio Longo + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ + +#include "common.ch" +#include "hbclass.ch" +#include "os2pm.ch" + +CLASS HBEdit FROM HBWinControl + + METHOD New( oContainer ) + +ENDCLASS + +METHOD New( oContainer ) CLASS HBEdit + + ::hWnd = WinCreateWindow(oContainer:hWndClient,; /* Parent window */ + WC_ENTRYFIELD,; /* Class window */ + "",; /* Button text */ + WS_VISIBLE + WS_TABSTOP+; /* Visible style */ + ES_MARGIN,; /* window style */ + 0, 0,; /* x, y */ + 121, 21,; /* cx, cy */ + oContainer:hWndClient,; /* Owner window */ + HWND_TOP,; /* Top of z-order */ + ::GetNewId(),; /* Identifier */ + nil,; /* Control data */ + nil) /* parameters */ + + //::Width = 121 + //::Height = 21 + +return Self diff --git a/harbour/contrib/hgf/os2pm/os2pm.c b/harbour/contrib/hgf/os2pm/os2pm.c index 3954ae8956..9c83e154aa 100644 --- a/harbour/contrib/hgf/os2pm/os2pm.c +++ b/harbour/contrib/hgf/os2pm/os2pm.c @@ -59,29 +59,50 @@ #include #include "hbapi.h" +#include "hbvm.h" +#include "hbstack.h" +#define LOWORD(l) ((USHORT)l) +#define HIWORD(l) ((USHORT)((ULONG)l >> 16)) HAB hb_pm_GetHab( void ); +MRESULT EXPENTRY WndProc( HWND, ULONG, MPARAM, MPARAM ); -MRESULT EXPENTRY WindowProc( HWND hwnd, USHORT msg, MPARAM mp1, MPARAM mp2 ) +MRESULT EXPENTRY WndProc( HWND hWnd, ULONG Msg, MPARAM mp1, MPARAM mp2 ) { + static PHB_DYNS pDynSym = 0; HPS hps; - switch( msg ) - { - case WM_ERASEBACKGROUND: - return FALSE; + if( ! pDynSym ) + pDynSym = hb_dynsymFind( "HB_GUI" ); + switch (Msg) { case WM_PAINT: - hps = WinBeginPaint( hwnd, 0L, NULL ); - GpiErase( hps ); - WinEndPaint( hps ); - return 0; + { + hps = WinBeginPaint( hWnd, 0L, NULL ); + GpiErase( hps ); + WinEndPaint( hps ); + return 0; + } - } + default: + { + hb_vmPushSymbol( pDynSym->pSymbol ); + hb_vmPushNil(); + hb_vmPushLong( (LONG) hWnd ); + hb_vmPushLong( (LONG) Msg ); + hb_vmPushLong( (LONG) mp1 ); + hb_vmPushLong( (LONG) mp2 ); + hb_vmDo( 4 ); + + if( hb_arrayGetType( &hb_stack.Return, 1 ) == HB_IT_NIL ) + return WinDefWindowProc( hWnd, Msg, mp1, mp2 ); + else + return (MRESULT) hb_parnl( -1, 1 ); + } + } - return WinDefWindowProc( hwnd, msg, mp1, mp2 ); } @@ -90,7 +111,7 @@ HB_FUNC( WINREGISTERCLASS ) hb_retl( WinRegisterClass( hb_pm_GetHab(), /* anchor block handle */ hb_parc( 1 ), /* Class Name */ - ( PFNWP ) WindowProc, /* default Class procedure */ + ( PFNWP ) WndProc, /* default Class procedure */ hb_parnl( 2 ), /* style */ hb_parnl( 3 ) ) ); /* extra bytes */ } @@ -98,47 +119,52 @@ HB_FUNC( WINREGISTERCLASS ) HB_FUNC(WINCREATEWINDOW) { - hb_retnl((LONG) WinCreateWindow( (HWND) hb_parnl(1), /* hWnd parent */ - (PCSZ) hb_parc(2), /* pszClass */ - (PCSZ) hb_parc(3), /* pszName */ - (ULONG) hb_parnl(4), /* flStyle */ - (LONG) hb_parnl(5), /* x */ - (LONG) hb_parnl(6), /* y */ - (LONG) hb_parnl(7), /* cx */ - (LONG) hb_parnl(8), /* cy */ - (HWND) hb_parnl(9), /* hwndOwner */ - (HWND) hb_parnl(10), /* hwndInsertBehind */ - (ULONG) hb_parnl(11), /* id */ - (PVOID) hb_parnl(12), /* pCtlData, */ - (PVOID) hb_parnl(13))); /* pPresParams */ + HWND hwnd; + hwnd = WinCreateWindow( (HWND) hb_parnl(1), /* hWnd parent */ + (PCSZ) hb_parc(2), /* pszClass */ + (PCSZ) hb_parc(3), /* pszName */ + (ULONG) hb_parnl(4), /* flStyle */ + (LONG) hb_parnl(5), /* x */ + (LONG) hb_parnl(6), /* y */ + (LONG) hb_parnl(7), /* cx */ + (LONG) hb_parnl(8), /* cy */ + (HWND) hb_parnl(9), /* hwndOwner */ + (HWND) hb_parnl(10), /* hwndInsertBehind */ + (ULONG) hb_parnl(11), /* id */ + (PVOID) hb_parnl(12), /* pCtlData, */ + (PVOID) hb_parnl(13)); /* pPresParams */ + + hb_retnl((LONG) hwnd); } HB_FUNC( WINCREATESTDWINDOW ) { ULONG lFrame = hb_parnl( 3 ); - HWND hWndClient; + HWND hWndClient, hWndFrame; - hb_retnl( ( LONG ) WinCreateStdWindow( ( HWND ) hb_parnl( 1 ), /* hWndParent */ - hb_parnl( 2 ), /* style */ - &lFrame, /* lFrame */ - hb_parc( 4 ), /* cClassName */ - hb_parc( 5 ), /* cCaption */ - hb_parnl( 6 ), /* lStyleClient */ - hb_parnl( 7 ), /* hModule */ - hb_parnl( 8 ), /* nId */ - ( PHWND ) &hWndClient ) ); /* Window client handle */ + hWndFrame = WinCreateStdWindow( ( HWND ) hb_parnl( 1 ), /* hWndParent */ + hb_parnl( 2 ), /* style */ + &lFrame, /* lFrame */ + hb_parc( 4 ), /* cClassName */ + hb_parc( 5 ), /* cCaption */ + hb_parnl( 6 ), /* lStyleClient */ + hb_parnl( 7 ), /* hModule */ + hb_parnl( 8 ), /* nId */ + ( PHWND ) &hWndClient ); /* Window client handle */ + hb_retnl( (LONG) hWndFrame); hb_stornl( ( LONG ) hWndClient, 9 ); } -HB_FUNC( HB_PM_SHOWMODAL ) +HB_FUNC( HB_FORMSHOWMODAL ) { QMSG qmsg; HAB hab = hb_pm_GetHab(); + WinShowWindow( ( HWND ) hb_parnl( 1 ), 1 ); while( WinGetMsg( hab, &qmsg, 0, 0, 0 ) ) { WinDispatchMsg( hab, &qmsg ); @@ -200,8 +226,7 @@ HB_FUNC( GETHAB ) HB_FUNC( WINCREATEMENU ) { - hb_retnl( ( LONG ) WinCreateMenu( ( HWND ) hb_parnl( 1 ), - (PVOID) NULL /*( PVOID ) hb_parnl( 2 )*/ ) ); + hb_retnl( (LONG) WinCreateMenu((HWND) hb_parnl(1), (PVOID) NULL)); } @@ -265,7 +290,7 @@ HB_FUNC( WINSETOWNER ) HB_FUNC( WINSENDMSG ) { - hb_retnl( ( LONG ) WinSendMsg( ( HWND ) hb_parnl( 1 ), hb_parni( 2 ), + hb_retnl( ( LONG ) WinSendMsg( ( HWND ) hb_parnl( 1 ), hb_parnl( 2 ), ( MPARAM ) IF( ISCHAR( 3 ), (ULONG) hb_parc( 3 ), hb_parnl( 3 ) ), ( MPARAM ) IF( ISCHAR( 4 ), (ULONG) hb_parc( 4 ), hb_parnl( 4 ) ) ) ); } @@ -291,3 +316,114 @@ HB_FUNC( WINSETWIDTH ) swp.y, (LONG) hb_parnl( 2 ), swp.cy, SWP_MOVE | SWP_SIZE | SWP_SHOW | SWP_ZORDER ); } + + +HB_FUNC( SENDMESSAGE ) +{ + hb_retnl( (LONG) WinSendMsg( + (HWND) hb_parnl( 1 ), // handle of destination window + (ULONG) hb_parnl( 2 ), // message to send + (MPARAM) hb_parnl( 3 ), // first message parameter + (MPARAM) hb_parnl( 4 ) // second message parameter + ) ); +} + + +HB_FUNC( NLOWORD ) +{ + hb_retnl( LOWORD( hb_parnl( 1 ) ) ); +} + + +HB_FUNC( NHIWORD ) +{ + hb_retnl( HIWORD( hb_parnl( 1 ) ) ); +} + + +HB_FUNC( WINGETHEIGHT ) +{ + HWND hWnd = ( HWND ) hb_parnl( 1 ); + RECTL rct; + + WinQueryWindowRect( hWnd, &rct ); + + hb_retnl( rct.yBottom - rct.yTop ); +} + + +HB_FUNC( WINSETHEIGHT ) +{ + HWND hWnd = ( HWND ) hb_parnl( 1 ); + SWP swp; + + WinQueryWindowPos( hWnd, &swp ); + WinSetWindowPos( hWnd, HWND_TOP, swp.x, + swp.y, swp.cx, hb_parnl( 2 ), + SWP_MOVE | SWP_SIZE | SWP_SHOW | SWP_ZORDER ); +} + + +HB_FUNC( WINGETTOP ) +{ + HWND hWnd = ( HWND ) hb_parnl( 1 ); + RECTL rct; + + WinQueryWindowRect( hWnd, &rct ); + + hb_retnl( rct.yTop ); +} + + +HB_FUNC( WINSETTOP ) +{ + HWND hWnd = ( HWND ) hb_parnl( 1 ); + SWP swp; + + WinQueryWindowPos( hWnd, &swp ); + WinSetWindowPos( hWnd, HWND_TOP, hb_parnl( 2 ), + swp.y, swp.cx, swp.cy, + SWP_MOVE | SWP_SIZE | SWP_SHOW | SWP_ZORDER ); +} + + +HB_FUNC( WINGETLEFT ) +{ + HWND hWnd = ( HWND ) hb_parnl( 1 ); + RECTL rct; + + WinQueryWindowRect( hWnd, &rct ); + + hb_retnl( rct.xLeft ); +} + + +HB_FUNC( WINSETLEFT ) +{ + HWND hWnd = ( HWND ) hb_parnl( 1 ); + SWP swp; + + WinQueryWindowPos( hWnd, &swp ); + WinSetWindowPos( hWnd, HWND_TOP, swp.x, + hb_parnl( 2 ), swp.cx, swp.cy, + SWP_MOVE | SWP_SIZE | SWP_SHOW | SWP_ZORDER ); +} + + +HB_FUNC( POSTQUITMESSAGE ) +{ + WinPostMsg((HWND) hb_parnl( 1 ), WM_QUIT, 0L, 0L); + //PostQuitMessage( hb_parnl( 1 ) ); +} + + +HB_FUNC( SHOWWINDOW ) +{ + hb_retl( WinShowWindow( ( HWND ) hb_parnl( 1 ), hb_parl( 2 ) ) ); +} + + +HB_FUNC( WINGETLASTERROR ) +{ + hb_retnl((LONG) WinGetLastError( hb_pm_GetHab() ) ); +} diff --git a/harbour/contrib/hgf/os2pm/os2pm.ch b/harbour/contrib/hgf/os2pm/os2pm.ch index f0ef744060..1fd8e03be7 100644 --- a/harbour/contrib/hgf/os2pm/os2pm.ch +++ b/harbour/contrib/hgf/os2pm/os2pm.ch @@ -53,1805 +53,31 @@ */ -#define _OS2EMX_H -#define INCL_DOS -#define INCL_DOSERRORS -#define INCL_SUB -#define INCL_DOSDATETIME -#define INCL_DOSDEVICES -#define INCL_DOSEXCEPTIONS -#define INCL_DOSFILEMGR -#define INCL_DOSMEMMGR -#define INCL_DOSMISC -#define INCL_DOSMVDM -#define INCL_DOSMODULEMGR -#define INCL_DOSNLS -#define INCL_DOSPROCESS -#define INCL_DOSPROFILE -#define INCL_DOSRAS -#define INCL_DOSQUEUES -#define INCL_DOSRESOURCES -#define INCL_DOSSEMAPHORES -#define INCL_DOSSESMGR -#define INCL_RXSUBCOM -#define INCL_RXSHV -#define INCL_RXFUNC -#define INCL_RXSYSEXIT -#define INCL_RXMACRO -#define INCL_RXARI -#define INCL_KBD -#define INCL_VIO -#define INCL_MOU -#define INCL_AVIO -#define INCL_FONTFILEFORMAT -#define INCL_GPI -#define INCL_SPL -#define INCL_WIN -#define INCL_WINWORKPLACE -#define INCL_WINACCELERATORS -#define INCL_WINBUTTONS -#define INCL_WINDIALOGS -#define INCL_WINENTRYFIELDS -#define INCL_WINFRAMECTLS -#define INCL_WINFRAMEMGR -#define INCL_WINHELP -#define INCL_WININPUT -#define INCL_WINLISTBOXES -#define INCL_WINMENUS -#define INCL_WINMESSAGEMGR -#define INCL_WINMLE -#define INCL_WINPOINTERS -#define INCL_WINSCROLLBARS -#define INCL_WINSTATICS -#define INCL_WINSTDDLGS -#define INCL_WINSYS -#define INCL_WINATOM -#define INCL_WINCLIPBOARD -#define INCL_WINCOUNTRY -#define INCL_WINCURSORS -#define INCL_WINDDE -#define INCL_WINDESKTOP -#define INCL_WINERRORS -#define INCL_WINHOOKS -#define INCL_WINLOAD -#define INCL_WINPALETTE -#define INCL_WINPROGRAMLIST -#define INCL_WINRECTANGLES -#define INCL_WINSHELLDATA -#define INCL_WINSWITCHLIST -#define INCL_WINTHUNKAPI -#define INCL_WINTIMER -#define INCL_WINTRACKRECT -#define INCL_WINTYPES -#define INCL_WINWINDOWMGR -#define INCL_WINCIRCULARSLIDER -#define INCL_WINSTDBOOK -#define INCL_WINSTDCNR -#define INCL_WINSTDDRAG -#define INCL_WINSTDFILE -#define INCL_WINSTDFONT -#define INCL_WINSTDSLIDER -#define INCL_WINSTDSPIN -#define INCL_WINSTDVALSET - - -#define INCL_WPCLASS -#define INCL_GPIBITMAPS -#define INCL_GPICONTROL -#define INCL_GPICORRELATION -#define INCL_GPIINK -#define INCL_GPISEGMENTS - -#define INCL_GPIERRORS -#define INCL_SHLERRORS - - - - -#define APIENTRY -#define EXPENTRY -#define FAR - - -#define VOID void -#define NULLHANDLE ((LHANDLE)0) -#define NULLSHANDLE ((SHANDLE)0) -#define NULL 0 - -#define FIELDOFFSET(t,f) ((SHORT)&(((t *)0)->f)) -#define MAKETYPE(v,t) (*((t *)&v)) -#define MAKEUSHORT(l,h) (((USHORT)(l)) | ((USHORT)(h))<<8) -#define MAKESHORT(l,h) ((SHORT)MAKEUSHORT(l, h)) -#define MAKEULONG(l,h) ((ULONG)(((USHORT)(l)) | ((ULONG)((USHORT)(h)))<<16)) -#define MAKELONG(l,h) ((LONG)MAKEULONG(l, h)) -#define LOUCHAR(w) ((UCHAR)(w)) -#define HIUCHAR(w) ((UCHAR)((USHORT)(w)>>8)) -#define LOBYTE(x) LOUCHAR(x) -#define HIBYTE(x) HIUCHAR(x) -#define LOUSHORT(x) ((USHORT)((ULONG)(x))) -#define HIUSHORT(x) ((USHORT)((ULONG)(x)>>16)) -#define WINERR_BASE 0x1000 -#define GPIERR_BASE 0x2000 -#define DEVERR_BASE 0x3000 -#define SPLERR_BASE 0x4000 -#define SEVERITY_NOERROR 0x0000 -#define SEVERITY_WARNING 0x0004 -#define SEVERITY_ERROR 0x0008 -#define SEVERITY_SEVERE 0x000c -#define SEVERITY_UNRECOVERABLE 0x0010 -#define NO_ERROR 0 -#define ERROR_INVALID_FUNCTION 1 -#define ERROR_FILE_NOT_FOUND 2 -#define ERROR_PATH_NOT_FOUND 3 -#define ERROR_TOO_MANY_OPEN_FILES 4 -#define ERROR_ACCESS_DENIED 5 -#define ERROR_INVALID_HANDLE 6 -#define ERROR_ARENA_TRASHED 7 -#define ERROR_NOT_ENOUGH_MEMORY 8 -#define ERROR_INVALID_BLOCK 9 -#define ERROR_BAD_ENVIRONMENT 10 -#define ERROR_BAD_FORMAT 11 -#define ERROR_INVALID_ACCESS 12 -#define ERROR_INVALID_DATA 13 -#define ERROR_INVALID_DRIVE 15 -#define ERROR_CURRENT_DIRECTORY 16 -#define ERROR_NOT_SAME_DEVICE 17 -#define ERROR_NO_MORE_FILES 18 -#define ERROR_WRITE_PROTECT 19 -#define ERROR_BAD_UNIT 20 -#define ERROR_NOT_READY 21 -#define ERROR_BAD_COMMAND 22 -#define ERROR_CRC 23 -#define ERROR_BAD_LENGTH 24 -#define ERROR_SEEK 25 -#define ERROR_NOT_DOS_DISK 26 -#define ERROR_SECTOR_NOT_FOUND 27 -#define ERROR_OUT_OF_PAPER 28 -#define ERROR_WRITE_FAULT 29 -#define ERROR_READ_FAULT 30 -#define ERROR_GEN_FAILURE 31 -#define ERROR_SHARING_VIOLATION 32 -#define ERROR_LOCK_VIOLATION 33 -#define ERROR_WRONG_DISK 34 -#define ERROR_FCB_UNAVAILABLE 35 -#define ERROR_SHARING_BUFFER_EXCEEDED 36 -#define ERROR_CODE_PAGE_MISMATCHED 37 -#define ERROR_HANDLE_EOF 38 -#define ERROR_HANDLE_DISK_FULL 39 -#define ERROR_NOT_SUPPORTED 50 -#define ERROR_REM_NOT_LIST 51 -#define ERROR_DUP_NAME 52 -#define ERROR_BAD_NETPATH 53 -#define ERROR_NETWORK_BUSY 54 -#define ERROR_DEV_NOT_EXIST 55 -#define ERROR_TOO_MANY_CMDS 56 -#define ERROR_ADAP_HDW_ERR 57 -#define ERROR_BAD_NET_RESP 58 -#define ERROR_UNEXP_NET_ERR 59 -#define ERROR_BAD_REM_ADAP 60 -#define ERROR_PRINTQ_FULL 61 -#define ERROR_NO_SPOOL_SPACE 62 -#define ERROR_PRINT_CANCELLED 63 -#define ERROR_NETNAME_DELETED 64 -#define ERROR_NETWORK_ACCESS_DENIED 65 -#define ERROR_BAD_DEV_TYPE 66 -#define ERROR_BAD_NET_NAME 67 -#define ERROR_TOO_MANY_NAMES 68 -#define ERROR_TOO_MANY_SESS 69 -#define ERROR_SHARING_PAUSED 70 -#define ERROR_REQ_NOT_ACCEP 71 -#define ERROR_REDIR_PAUSED 72 -#define ERROR_SBCS_ATT_WRITE_PROT 73 -#define ERROR_SBCS_GENERAL_FAILURE 74 -#define ERROR_XGA_OUT_MEMORY 75 -#define ERROR_FILE_EXISTS 80 -#define ERROR_DUP_FCB 81 -#define ERROR_CANNOT_MAKE 82 -#define ERROR_FAIL_I24 83 -#define ERROR_OUT_OF_STRUCTURES 84 -#define ERROR_ALREADY_ASSIGNED 85 -#define ERROR_INVALID_PASSWORD 86 -#define ERROR_INVALID_PARAMETER 87 -#define ERROR_NET_WRITE_FAULT 88 -#define ERROR_NO_PROC_SLOTS 89 -#define ERROR_NOT_FROZEN 90 -#define ERROR_SYS_COMP_NOT_LOADED 90 /*!*/ -#define ERR_TSTOVFL 91 -#define ERR_TSTDUP 92 -#define ERROR_NO_ITEMS 93 -#define ERROR_INTERRUPT 95 -#define ERROR_DEVICE_IN_USE 99 -#define ERROR_TOO_MANY_SEMAPHORES 100 -#define ERROR_EXCL_SEM_ALREADY_OWNED 101 -#define ERROR_SEM_IS_SET 102 -#define ERROR_TOO_MANY_SEM_REQUESTS 103 -#define ERROR_INVALID_AT_INTERRUPT_TIME 104 -#define ERROR_SEM_OWNER_DIED 105 -#define ERROR_SEM_USER_LIMIT 106 -#define ERROR_DISK_CHANGE 107 -#define ERROR_DRIVE_LOCKED 108 -#define ERROR_BROKEN_PIPE 109 -#define ERROR_OPEN_FAILED 110 -#define ERROR_BUFFER_OVERFLOW 111 -#define ERROR_DISK_FULL 112 -#define ERROR_NO_MORE_SEARCH_HANDLES 113 -#define ERROR_INVALID_TARGET_HANDLE 114 -#define ERROR_PROTECTION_VIOLATION 115 -#define ERROR_VIOKBD_REQUEST 116 -#define ERROR_INVALID_CATEGORY 117 -#define ERROR_INVALID_VERIFY_SWITCH 118 -#define ERROR_BAD_DRIVER_LEVEL 119 -#define ERROR_CALL_NOT_IMPLEMENTED 120 -#define ERROR_SEM_TIMEOUT 121 -#define ERROR_INSUFFICIENT_BUFFER 122 -#define ERROR_INVALID_NAME 123 -#define ERROR_INVALID_LEVEL 124 -#define ERROR_NO_VOLUME_LABEL 125 -#define ERROR_MOD_NOT_FOUND 126 -#define ERROR_PROC_NOT_FOUND 127 -#define ERROR_WAIT_NO_CHILDREN 128 -#define ERROR_CHILD_NOT_COMPLETE 129 -#define ERROR_DIRECT_ACCESS_HANDLE 130 -#define ERROR_NEGATIVE_SEEK 131 -#define ERROR_SEEK_ON_DEVICE 132 -#define ERROR_IS_JOIN_TARGET 133 -#define ERROR_IS_JOINED 134 -#define ERROR_IS_SUBSTED 135 -#define ERROR_NOT_JOINED 136 -#define ERROR_NOT_SUBSTED 137 -#define ERROR_JOIN_TO_JOIN 138 -#define ERROR_SUBST_TO_SUBST 139 -#define ERROR_JOIN_TO_SUBST 140 -#define ERROR_SUBST_TO_JOIN 141 -#define ERROR_BUSY_DRIVE 142 -#define ERROR_SAME_DRIVE 143 -#define ERROR_DIR_NOT_ROOT 144 -#define ERROR_DIR_NOT_EMPTY 145 -#define ERROR_IS_SUBST_PATH 146 -#define ERROR_IS_JOIN_PATH 147 -#define ERROR_PATH_BUSY 148 -#define ERROR_IS_SUBST_TARGET 149 -#define ERROR_SYSTEM_TRACE 150 -#define ERROR_INVALID_EVENT_COUNT 151 -#define ERROR_TOO_MANY_MUXWAITERS 152 -#define ERROR_INVALID_LIST_FORMAT 153 -#define ERROR_LABEL_TOO_LONG 154 -#define ERROR_TOO_MANY_TCBS 155 -#define ERROR_SIGNAL_REFUSED 156 -#define ERROR_DISCARDED 157 -#define ERROR_NOT_LOCKED 158 -#define ERROR_BAD_THREADID_ADDR 159 -#define ERROR_BAD_ARGUMENTS 160 -#define ERROR_BAD_PATHNAME 161 -#define ERROR_SIGNAL_PENDING 162 -#define ERROR_UNCERTAIN_MEDIA 163 -#define ERROR_MAX_THRDS_REACHED 164 -#define ERROR_MONITORS_NOT_SUPPORTED 165 -#define ERROR_UNC_DRIVER_NOT_INSTALLED 166 -#define ERROR_LOCK_FAILED 167 -#define ERROR_SWAPIO_FAILED 168 -#define ERROR_SWAPIN_FAILED 169 -#define ERROR_BUSY 170 -#define ERROR_CANCEL_VIOLATION 173 -#define ERROR_ATOMIC_LOCK_NOT_SUPPORTED 174 -#define ERROR_READ_LOCKS_NOT_SUPPORTED 175 -#define ERROR_INVALID_SEGMENT_NUMBER 180 -#define ERROR_INVALID_CALLGATE 181 -#define ERROR_INVALID_ORDINAL 182 -#define ERROR_ALREADY_EXISTS 183 -#define ERROR_NO_CHILD_PROCESS 184 -#define ERROR_CHILD_ALIVE_NOWAIT 185 -#define ERROR_INVALID_FLAG_NUMBER 186 -#define ERROR_SEM_NOT_FOUND 187 -#define ERROR_INVALID_STARTING_CODESEG 188 -#define ERROR_INVALID_STACKSEG 189 -#define ERROR_INVALID_MODULETYPE 190 -#define ERROR_INVALID_EXE_SIGNATURE 191 -#define ERROR_EXE_MARKED_INVALID 192 -#define ERROR_BAD_EXE_FORMAT 193 -#define ERROR_ITERATED_DATA_EXCEEDS_64K 194 -#define ERROR_INVALID_MINALLOCSIZE 195 -#define ERROR_DYNLINK_FROM_INVALID_RING 196 -#define ERROR_IOPL_NOT_ENABLED 197 -#define ERROR_INVALID_SEGDPL 198 -#define ERROR_AUTODATASEG_EXCEEDS_64K 199 -#define ERROR_RING2SEG_MUST_BE_MOVABLE 200 -#define ERROR_RELOCSRC_CHAIN_EXCEEDS_SEGLIMIT 201 -#define ERROR_INFLOOP_IN_RELOC_CHAIN 202 -#define ERROR_ENVVAR_NOT_FOUND 203 -#define ERROR_NOT_CURRENT_CTRY 204 -#define ERROR_NO_SIGNAL_SENT 205 -#define ERROR_FILENAME_EXCED_RANGE 206 -#define ERROR_RING2_STACK_IN_USE 207 -#define ERROR_META_EXPANSION_TOO_LONG 208 -#define ERROR_INVALID_SIGNAL_NUMBER 209 -#define ERROR_THREAD_1_INACTIVE 210 -#define ERROR_INFO_NOT_AVAIL 211 -#define ERROR_LOCKED 212 -#define ERROR_BAD_DYNALINK 213 -#define ERROR_TOO_MANY_MODULES 214 -#define ERROR_NESTING_NOT_ALLOWED 215 -#define ERROR_CANNOT_SHRINK 216 -#define ERROR_ZOMBIE_PROCESS 217 -#define ERROR_STACK_IN_HIGH_MEMORY 218 -#define ERROR_INVALID_EXITROUTINE_RING 219 -#define ERROR_GETBUF_FAILED 220 -#define ERROR_FLUSHBUF_FAILED 221 -#define ERROR_TRANSFER_TOO_LONG 222 -#define ERROR_FORCENOSWAP_FAILED 223 -#define ERROR_SMG_NO_TARGET_WINDOW 224 -#define ERROR_NO_CHILDREN 228 -#define ERROR_INVALID_SCREEN_GROUP 229 -#define ERROR_BAD_PIPE 230 -#define ERROR_PIPE_BUSY 231 -#define ERROR_NO_DATA 232 -#define ERROR_PIPE_NOT_CONNECTED 233 -#define ERROR_MORE_DATA 234 -#define ERROR_VC_DISCONNECTED 240 -#define ERROR_CIRCULARITY_REQUESTED 250 -#define ERROR_DIRECTORY_IN_CDS 251 -#define ERROR_INVALID_FSD_NAME 252 -#define ERROR_INVALID_PATH 253 -#define ERROR_INVALID_EA_NAME 254 -#define ERROR_EA_LIST_INCONSISTENT 255 -#define ERROR_EA_LIST_TOO_LONG 256 -#define ERROR_NO_META_MATCH 257 -#define ERROR_FINDNOTIFY_TIMEOUT 258 -#define ERROR_NO_MORE_ITEMS 259 -#define ERROR_SEARCH_STRUC_REUSED 260 -#define ERROR_CHAR_NOT_FOUND 261 -#define ERROR_TOO_MUCH_STACK 262 -#define ERROR_INVALID_ATTR 263 -#define ERROR_INVALID_STARTING_RING 264 -#define ERROR_INVALID_DLL_INIT_RING 265 -#define ERROR_CANNOT_COPY 266 -#define ERROR_DIRECTORY 267 -#define ERROR_OPLOCKED_FILE 268 -#define ERROR_OPLOCK_THREAD_EXISTS 269 -#define ERROR_VOLUME_CHANGED 270 -#define ERROR_FINDNOTIFY_HANDLE_IN_USE 271 -#define ERROR_FINDNOTIFY_HANDLE_CLOSED 272 -#define ERROR_NOTIFY_OBJECT_REMOVED 273 -#define ERROR_ALREADY_SHUTDOWN 274 -#define ERROR_EAS_DIDNT_FIT 275 -#define ERROR_EA_FILE_CORRUPT 276 -#define ERROR_EA_TABLE_FULL 277 -#define ERROR_INVALID_EA_HANDLE 278 -#define ERROR_NO_CLUSTER 279 -#define ERROR_CREATE_EA_FILE 280 -#define ERROR_CANNOT_OPEN_EA_FILE 281 -#define ERROR_EAS_NOT_SUPPORTED 282 -#define ERROR_NEED_EAS_FOUND 283 -#define ERROR_DUPLICATE_HANDLE 284 -#define ERROR_DUPLICATE_NAME 285 -#define ERROR_EMPTY_MUXWAIT 286 -#define ERROR_MUTEX_OWNED 287 -#define ERROR_NOT_OWNER 288 -#define ERROR_PARAM_TOO_SMALL 289 -#define ERROR_TOO_MANY_HANDLES 290 -#define ERROR_TOO_MANY_OPENS 291 -#define ERROR_WRONG_TYPE 292 -#define ERROR_UNUSED_CODE 293 -#define ERROR_THREAD_NOT_TERMINATED 294 -#define ERROR_INIT_ROUTINE_FAILED 295 -#define ERROR_MODULE_IN_USE 296 -#define ERROR_NOT_ENOUGH_WATCHPOINTS 297 -#define ERROR_TOO_MANY_POSTS 298 -#define ERROR_ALREADY_POSTED 299 -#define ERROR_ALREADY_RESET 300 -#define ERROR_SEM_BUSY 301 -#define ERROR_INVALID_PROCID 303 -#define ERROR_INVALID_PDELTA 304 -#define ERROR_NOT_DESCENDANT 305 -#define ERROR_NOT_SESSION_MANAGER 306 -#define ERROR_INVALID_PCLASS 307 -#define ERROR_INVALID_SCOPE 308 -#define ERROR_INVALID_THREADID 309 -#define ERROR_DOSSUB_SHRINK 310 -#define ERROR_DOSSUB_NOMEM 311 -#define ERROR_DOSSUB_OVERLAP 312 -#define ERROR_DOSSUB_BADSIZE 313 -#define ERROR_DOSSUB_BADFLAG 314 -#define ERROR_DOSSUB_BADSELECTOR 315 -#define ERROR_MR_MSG_TOO_LONG 316 -#define ERROR_MR_MID_NOT_FOUND 317 -#define ERROR_MR_UN_ACC_MSGF 318 -#define ERROR_MR_INV_MSGF_FORMAT 319 -#define ERROR_MR_INV_IVCOUNT 320 -#define ERROR_MR_UN_PERFORM 321 -#define ERROR_TS_WAKEUP 322 -#define ERROR_TS_SEMHANDLE 323 -#define ERROR_TS_NOTIMER 324 -#define ERROR_TS_HANDLE 326 -#define ERROR_TS_DATETIME 327 -#define ERROR_SYS_INTERNAL 328 -#define ERROR_QUE_CURRENT_NAME 329 -#define ERROR_QUE_PROC_NOT_OWNED 330 -#define ERROR_QUE_PROC_OWNED 331 -#define ERROR_QUE_DUPLICATE 332 -#define ERROR_QUE_ELEMENT_NOT_EXIST 333 -#define ERROR_QUE_NO_MEMORY 334 -#define ERROR_QUE_INVALID_NAME 335 -#define ERROR_QUE_INVALID_PRIORITY 336 -#define ERROR_QUE_INVALID_HANDLE 337 -#define ERROR_QUE_LINK_NOT_FOUND 338 -#define ERROR_QUE_MEMORY_ERROR 339 -#define ERROR_QUE_PREV_AT_END 340 -#define ERROR_QUE_PROC_NO_ACCESS 341 -#define ERROR_QUE_EMPTY 342 -#define ERROR_QUE_NAME_NOT_EXIST 343 -#define ERROR_QUE_NOT_INITIALIZED 344 -#define ERROR_QUE_UNABLE_TO_ACCESS 345 -#define ERROR_QUE_UNABLE_TO_ADD 346 -#define ERROR_QUE_UNABLE_TO_INIT 347 -#define ERROR_VIO_INVALID_MASK 349 -#define ERROR_VIO_PTR 350 -#define ERROR_VIO_APTR 351 -#define ERROR_VIO_RPTR 352 -#define ERROR_VIO_CPTR 353 -#define ERROR_VIO_LPTR 354 -#define ERROR_VIO_MODE 355 -#define ERROR_VIO_WIDTH 356 -#define ERROR_VIO_ATTR 357 -#define ERROR_VIO_ROW 358 -#define ERROR_VIO_COL 359 -#define ERROR_VIO_TOPROW 360 -#define ERROR_VIO_BOTROW 361 -#define ERROR_VIO_RIGHTCOL 362 -#define ERROR_VIO_LEFTCOL 363 -#define ERROR_SCS_CALL 364 -#define ERROR_SCS_VALUE 365 -#define ERROR_VIO_WAIT_FLAG 366 -#define ERROR_VIO_UNLOCK 367 -#define ERROR_SGS_NOT_SESSION_MGR 368 -#define ERROR_SMG_INVALID_SGID 369 -#define ERROR_SMG_INVALID_SESSION_ID 369 /*!*/ -#define ERROR_SMG_NOSG 370 -#define ERROR_SMG_NO_SESSIONS 370 /*!*/ -#define ERROR_SMG_GRP_NOT_FOUND 371 -#define ERROR_SMG_SESSION_NOT_FOUND 371 /*!*/ -#define ERROR_SMG_SET_TITLE 372 -#define ERROR_KBD_PARAMETER 373 -#define ERROR_KBD_NO_DEVICE 374 -#define ERROR_KBD_INVALID_IOWAIT 375 -#define ERROR_KBD_INVALID_LENGTH 376 -#define ERROR_KBD_INVALID_ECHO_MASK 377 -#define ERROR_KBD_INVALID_INPUT_MASK 378 -#define ERROR_MON_INVALID_PARMS 379 -#define ERROR_MON_INVALID_DEVNAME 380 -#define ERROR_MON_INVALID_HANDLE 381 -#define ERROR_MON_BUFFER_TOO_SMALL 382 -#define ERROR_MON_BUFFER_EMPTY 383 -#define ERROR_MON_DATA_TOO_LARGE 384 -#define ERROR_MOUSE_NO_DEVICE 385 -#define ERROR_MOUSE_INV_HANDLE 386 -#define ERROR_MOUSE_INV_PARMS 387 -#define ERROR_MOUSE_CANT_RESET 388 -#define ERROR_MOUSE_DISPLAY_PARMS 389 -#define ERROR_MOUSE_INV_MODULE 390 -#define ERROR_MOUSE_INV_ENTRY_PT 391 -#define ERROR_MOUSE_INV_MASK 392 -#define NO_ERROR_MOUSE_NO_DATA 393 -#define NO_ERROR_MOUSE_PTR_DRAWN 394 -#define ERROR_INVALID_FREQUENCY 395 -#define ERROR_NLS_NO_COUNTRY_FILE 396 -#define ERROR_NLS_OPEN_FAILED 397 -#define ERROR_NLS_NO_CTRY_CODE 398 -#define ERROR_NLS_TABLE_TRUNCATED 399 -#define ERROR_NLS_BAD_TYPE 400 -#define ERROR_NLS_TYPE_NOT_FOUND 401 -#define ERROR_VIO_SMG_ONLY 402 -#define ERROR_VIO_INVALID_ASCIIZ 403 -#define ERROR_VIO_DEREGISTER 404 -#define ERROR_VIO_NO_POPUP 405 -#define ERROR_VIO_EXISTING_POPUP 406 -#define ERROR_KBD_SMG_ONLY 407 -#define ERROR_KBD_INVALID_ASCIIZ 408 -#define ERROR_KBD_INVALID_MASK 409 -#define ERROR_KBD_REGISTER 410 -#define ERROR_KBD_DEREGISTER 411 -#define ERROR_MOUSE_SMG_ONLY 412 -#define ERROR_MOUSE_INVALID_ASCIIZ 413 -#define ERROR_MOUSE_INVALID_MASK 414 -#define ERROR_MOUSE_REGISTER 415 -#define ERROR_MOUSE_DEREGISTER 416 -#define ERROR_SMG_BAD_ACTION 417 -#define ERROR_SMG_INVALID_CALL 418 -#define ERROR_SCS_SG_NOTFOUND 419 -#define ERROR_SCS_NOT_SHELL 420 -#define ERROR_VIO_INVALID_PARMS 421 -#define ERROR_VIO_FUNCTION_OWNED 422 -#define ERROR_VIO_RETURN 423 -#define ERROR_SCS_INVALID_FUNCTION 424 -#define ERROR_SCS_NOT_SESSION_MGR 425 -#define ERROR_VIO_REGISTER 426 -#define ERROR_VIO_NO_MODE_THREAD 427 -#define ERROR_VIO_NO_SAVE_RESTORE_THD 428 -#define ERROR_VIO_IN_BG 429 -#define ERROR_VIO_ILLEGAL_DURING_POPUP 430 -#define ERROR_SMG_NOT_BASESHELL 431 -#define ERROR_SMG_BAD_STATUSREQ 432 -#define ERROR_QUE_INVALID_WAIT 433 -#define ERROR_VIO_LOCK 434 -#define ERROR_MOUSE_INVALID_IOWAIT 435 -#define ERROR_VIO_INVALID_HANDLE 436 -#define ERROR_VIO_ILLEGAL_DURING_LOCK 437 -#define ERROR_VIO_INVALID_LENGTH 438 -#define ERROR_KBD_INVALID_HANDLE 439 -#define ERROR_KBD_NO_MORE_HANDLE 440 -#define ERROR_KBD_CANNOT_CREATE_KCB 441 -#define ERROR_KBD_CODEPAGE_LOAD_INCOMPL 442 -#define ERROR_KBD_INVALID_CODEPAGE_ID 443 -#define ERROR_KBD_NO_CODEPAGE_SUPPORT 444 -#define ERROR_KBD_FOCUS_REQUIRED 445 -#define ERROR_KBD_FOCUS_ALREADY_ACTIVE 446 -#define ERROR_KBD_KEYBOARD_BUSY 447 -#define ERROR_KBD_INVALID_CODEPAGE 448 -#define ERROR_KBD_UNABLE_TO_FOCUS 449 -#define ERROR_SMG_SESSION_NON_SELECT 450 -#define ERROR_SMG_SESSION_NOT_FOREGRND 451 -#define ERROR_SMG_SESSION_NOT_PARENT 452 -#define ERROR_SMG_INVALID_START_MODE 453 -#define ERROR_SMG_INVALID_RELATED_OPT 454 -#define ERROR_SMG_INVALID_BOND_OPTION 455 -#define ERROR_SMG_INVALID_SELECT_OPT 456 -#define ERROR_SMG_START_IN_BACKGROUND 457 -#define ERROR_SMG_INVALID_STOP_OPTION 458 -#define ERROR_SMG_BAD_RESERVE 459 -#define ERROR_SMG_PROCESS_NOT_PARENT 460 -#define ERROR_SMG_INVALID_DATA_LENGTH 461 -#define ERROR_SMG_NOT_BOUND 462 -#define ERROR_SMG_RETRY_SUB_ALLOC 463 -#define ERROR_KBD_DETACHED 464 -#define ERROR_VIO_DETACHED 465 -#define ERROR_MOU_DETACHED 466 -#define ERROR_VIO_FONT 467 -#define ERROR_VIO_USER_FONT 468 -#define ERROR_VIO_BAD_CP 469 -#define ERROR_VIO_NO_CP 470 -#define ERROR_VIO_NA_CP 471 -#define ERROR_INVALID_CODE_PAGE 472 -#define ERROR_CPLIST_TOO_SMALL 473 -#define ERROR_CP_NOT_MOVED 474 -#define ERROR_MODE_SWITCH_INIT 475 -#define ERROR_CODE_PAGE_NOT_FOUND 476 -#define ERROR_UNEXPECTED_SLOT_RETURNED 477 -#define ERROR_SMG_INVALID_TRACE_OPTION 478 -#define ERROR_VIO_INTERNAL_RESOURCE 479 -#define ERROR_VIO_SHELL_INIT 480 -#define ERROR_SMG_NO_HARD_ERRORS 481 -#define ERROR_CP_SWITCH_INCOMPLETE 482 -#define ERROR_VIO_TRANSPARENT_POPUP 483 -#define ERROR_CRITSEC_OVERFLOW 484 -#define ERROR_CRITSEC_UNDERFLOW 485 -#define ERROR_VIO_BAD_RESERVE 486 -#define ERROR_INVALID_ADDRESS 487 -#define ERROR_ZERO_SELECTORS_REQUESTED 488 -#define ERROR_NOT_ENOUGH_SELECTORS_AVA 489 -#define ERROR_INVALID_SELECTOR 490 -#define ERROR_SMG_INVALID_PROGRAM_TYPE 491 -#define ERROR_SMG_INVALID_PGM_CONTROL 492 -#define ERROR_SMG_INVALID_INHERIT_OPT 493 -#define ERROR_VIO_EXTENDED_SG 494 -#define ERROR_VIO_NOT_PRES_MGR_SG 495 -#define ERROR_VIO_SHIELD_OWNED 496 -#define ERROR_VIO_NO_MORE_HANDLES 497 -#define ERROR_VIO_SEE_ERROR_LOG 498 -#define ERROR_VIO_ASSOCIATED_DC 499 -#define ERROR_KBD_NO_CONSOLE 500 -#define ERROR_MOUSE_NO_CONSOLE 501 -#define ERROR_MOUSE_INVALID_HANDLE 502 -#define ERROR_SMG_INVALID_DEBUG_PARMS 503 -#define ERROR_KBD_EXTENDED_SG 504 -#define ERROR_MOU_EXTENDED_SG 505 -#define ERROR_SMG_INVALID_ICON_FILE 506 -#define ERROR_TRC_PID_NON_EXISTENT 507 -#define ERROR_TRC_COUNT_ACTIVE 508 -#define ERROR_TRC_SUSPENDED_BY_COUNT 509 -#define ERROR_TRC_COUNT_INACTIVE 510 -#define ERROR_TRC_COUNT_REACHED 511 -#define ERROR_NO_MC_TRACE 512 -#define ERROR_MC_TRACE 513 -#define ERROR_TRC_COUNT_ZERO 514 -#define ERROR_SMG_TOO_MANY_DDS 515 -#define ERROR_SMG_INVALID_NOTIFICATION 516 -#define ERROR_LF_INVALID_FUNCTION 517 -#define ERROR_LF_NOT_AVAIL 518 -#define ERROR_LF_SUSPENDED 519 -#define ERROR_LF_BUF_TOO_SMALL 520 -#define ERROR_LF_BUFFER_CORRUPTED 521 -#define ERROR_LF_BUFFER_FULL 521 /*!*/ -#define ERROR_LF_INVALID_DAEMON 522 -#define ERROR_LF_INVALID_RECORD 522 /*!*/ -#define ERROR_LF_INVALID_TEMPL 523 -#define ERROR_LF_INVALID_SERVICE 523 /*!*/ -#define ERROR_LF_GENERAL_FAILURE 524 -#define ERROR_LF_INVALID_ID 525 -#define ERROR_LF_INVALID_HANDLE 526 -#define ERROR_LF_NO_ID_AVAIL 527 -#define ERROR_LF_TEMPLATE_AREA_FULL 528 -#define ERROR_LF_ID_IN_USE 529 -#define ERROR_MOU_NOT_INITIALIZED 530 -#define ERROR_MOUINITREAL_DONE 531 -#define ERROR_DOSSUB_CORRUPTED 532 -#define ERROR_MOUSE_CALLER_NOT_SUBSYS 533 -#define ERROR_ARITHMETIC_OVERFLOW 534 -#define ERROR_TMR_NO_DEVICE 535 -#define ERROR_TMR_INVALID_TIME 536 -#define ERROR_PVW_INVALID_ENTITY 537 -#define ERROR_PVW_INVALID_ENTITY_TYPE 538 -#define ERROR_PVW_INVALID_SPEC 539 -#define ERROR_PVW_INVALID_RANGE_TYPE 540 -#define ERROR_PVW_INVALID_COUNTER_BLK 541 -#define ERROR_PVW_INVALID_TEXT_BLK 542 -#define ERROR_PRF_NOT_INITIALIZED 543 -#define ERROR_PRF_ALREADY_INITIALIZED 544 -#define ERROR_PRF_NOT_STARTED 545 -#define ERROR_PRF_ALREADY_STARTED 546 -#define ERROR_PRF_TIMER_OUT_OF_RANGE 547 -#define ERROR_PRF_TIMER_RESET 548 -#define ERROR_VDD_LOCK_USEAGE_DENIED 639 -#define ERROR_TIMEOUT 640 -#define ERROR_VDM_DOWN 641 -#define ERROR_VDM_LIMIT 642 -#define ERROR_VDD_NOT_FOUND 643 -#define ERROR_INVALID_CALLER 644 -#define ERROR_PID_MISMATCH 645 -#define ERROR_INVALID_VDD_HANDLE 646 -#define ERROR_VLPT_NO_SPOOLER 647 -#define ERROR_VCOM_DEVICE_BUSY 648 -#define ERROR_VLPT_DEVICE_BUSY 649 -#define ERROR_NESTING_TOO_DEEP 650 -#define ERROR_VDD_MISSING 651 -#define ERROR_BIDI_INVALID_LENGTH 671 -#define ERROR_BIDI_INVALID_INCREMENT 672 -#define ERROR_BIDI_INVALID_COMBINATION 673 -#define ERROR_BIDI_INVALID_RESERVED 674 -#define ERROR_BIDI_INVALID_EFFECT 675 -#define ERROR_BIDI_INVALID_CSDREC 676 -#define ERROR_BIDI_INVALID_CSDSTATE 677 -#define ERROR_BIDI_INVALID_LEVEL 678 -#define ERROR_BIDI_INVALID_TYPE_SUPPORT 679 -#define ERROR_BIDI_INVALID_ORIENTATION 680 -#define ERROR_BIDI_INVALID_NUM_SHAPE 681 -#define ERROR_BIDI_INVALID_CSD 682 -#define ERROR_BIDI_NO_SUPPORT 683 -#define NO_ERROR_BIDI_RW_INCOMPLETE 684 -#define ERROR_IMP_INVALID_PARM 691 -#define ERROR_IMP_INVALID_LENGTH 692 -#define ERROR_MON_BAD_BUFFER 730 -#define ERROR_MODULE_CORRUPTED 731 -#define ERROR_SM_OUTOF_SWAPFILE 1477 -#define ERROR_LF_TIMEOUT 2055 -#define ERROR_LF_SUSPEND_SUCCESS 2057 -#define ERROR_LF_RESUME_SUCCESS 2058 -#define ERROR_LF_REDIRECT_SUCCESS 2059 -#define ERROR_LF_REDIRECT_FAILURE 2060 -#define ERROR_SWAPPER_NOT_ACTIVE 32768 -#define ERROR_INVALID_SWAPID 32769 -#define ERROR_IOERR_SWAP_FILE 32770 -#define ERROR_SWAP_TABLE_FULL 32771 -#define ERROR_SWAP_FILE_FULL 32772 -#define ERROR_CANT_INIT_SWAPPER 32773 -#define ERROR_SWAPPER_ALREADY_INIT 32774 -#define ERROR_PMM_INSUFFICIENT_MEMORY 32775 -#define ERROR_PMM_INVALID_FLAGS 32776 -#define ERROR_PMM_INVALID_ADDRESS 32777 -#define ERROR_PMM_LOCK_FAILED 32778 -#define ERROR_PMM_UNLOCK_FAILED 32779 -#define ERROR_PMM_MOVE_INCOMPLETE 32780 -#define ERROR_UCOM_DRIVE_RENAMED 32781 -#define ERROR_UCOM_FILENAME_TRUNCATED 32782 -#define ERROR_UCOM_BUFFER_LENGTH 32783 -#define ERROR_MON_CHAIN_HANDLE 32784 -#define ERROR_MON_NOT_REGISTERED 32785 -#define ERROR_SMG_ALREADY_TOP 32786 -#define ERROR_PMM_ARENA_MODIFIED 32787 -#define ERROR_SMG_PRINTER_OPEN 32788 -#define ERROR_PMM_SET_FLAGS_FAILED 32789 -#define ERROR_INVALID_DOS_DD 32790 -#define ERROR_BLOCKED 32791 -#define ERROR_NOBLOCK 32792 -#define ERROR_INSTANCE_SHARED 32793 -#define ERROR_NO_OBJECT 32794 -#define ERROR_PARTIAL_ATTACH 32795 -#define ERROR_INCACHE 32796 -#define ERROR_SWAP_IO_PROBLEMS 32797 -#define ERROR_CROSSES_OBJECT_BOUNDARY 32798 -#define ERROR_LONGLOCK 32799 -#define ERROR_SHORTLOCK 32800 -#define ERROR_UVIRTLOCK 32801 -#define ERROR_ALIASLOCK 32802 -#define ERROR_ALIAS 32803 -#define ERROR_NO_MORE_HANDLES 32804 -#define ERROR_SCAN_TERMINATED 32805 -#define ERROR_TERMINATOR_NOT_FOUND 32806 -#define ERROR_NOT_DIRECT_CHILD 32807 -#define ERROR_DELAY_FREE 32808 -#define ERROR_GUARDPAGE 32809 -#define ERROR_SWAPERROR 32900 -#define ERROR_LDRERROR 32901 -#define ERROR_NOMEMORY 32902 -#define ERROR_NOACCESS 32903 -#define ERROR_NO_DLL_TERM 32904 -#define ERROR_CPSIO_CODE_PAGE_INVALID 65026 -#define ERROR_CPSIO_NO_SPOOLER 65027 -#define ERROR_CPSIO_FONT_ID_INVALID 65028 -#define ERROR_CPSIO_INTERNAL_ERROR 65033 -#define ERROR_CPSIO_INVALID_PTR_NAME 65034 -#define ERROR_CPSIO_NOT_ACTIVE 65037 -#define ERROR_CPSIO_PID_FULL 65039 -#define ERROR_CPSIO_PID_NOT_FOUND 65040 -#define ERROR_CPSIO_READ_CTL_SEQ 65043 -#define ERROR_CPSIO_READ_FNT_DEF 65045 -#define ERROR_CPSIO_WRITE_ERROR 65047 -#define ERROR_CPSIO_WRITE_FULL_ERROR 65048 -#define ERROR_CPSIO_WRITE_HANDLE_BAD 65049 -#define ERROR_CPSIO_SWIT_LOAD 65074 -#define ERROR_CPSIO_INV_COMMAND 65077 -#define ERROR_CPSIO_NO_FONT_SWIT 65078 -#define ERROR_ENTRY_IS_CALLGATE 65079 -#define ERRACT_RETRY 1 -#define ERRACT_DLYRET 2 -#define ERRACT_USER 3 -#define ERRACT_ABORT 4 -#define ERRACT_PANIC 5 -#define ERRACT_IGNORE 6 -#define ERRACT_INTRET 7 -#define ERRCLASS_OUTRES 1 -#define ERRCLASS_TEMPSIT 2 -#define ERRCLASS_AUTH 3 -#define ERRCLASS_INTRN 4 -#define ERRCLASS_HRDFAIL 5 -#define ERRCLASS_SYSFAIL 6 -#define ERRCLASS_APPERR 7 -#define ERRCLASS_NOTFND 8 -#define ERRCLASS_BADFMT 9 -#define ERRCLASS_LOCKED 10 -#define ERRCLASS_MEDIA 11 -#define ERRCLASS_ALREADY 12 -#define ERRCLASS_UNK 13 -#define ERRCLASS_CANT 14 -#define ERRCLASS_TIME 15 -#define ERRLOC_UNK 1 -#define ERRLOC_DISK 2 -#define ERRLOC_NET 3 -#define ERRLOC_SERDEV 4 -#define ERRLOC_MEM 5 -#define FERR_DISABLEHARDERR 0x0000L -#define FERR_ENABLEHARDERR 0x0001L -#define FERR_ENABLEEXCEPTION 0x0000L -#define FERR_DISABLEEXCEPTION 0x0002L -#define BEGIN_LIBPATH 1 -#define END_LIBPATH 2 -#define FACESIZE 32 -#define FATTR_SEL_ITALIC 0x0001 -#define FATTR_SEL_UNDERSCORE 0x0002 -#define FATTR_SEL_OUTLINE 0x0008 -#define FATTR_SEL_STRIKEOUT 0x0010 -#define FATTR_SEL_BOLD 0x0020 -#define FATTR_TYPE_KERNING 0x0004 -#define FATTR_TYPE_MBCS 0x0008 -#define FATTR_TYPE_DBCS 0x0010 -#define FATTR_TYPE_ANTIALIASED 0x0020 -#define FATTR_FONTUSE_NOMIX 0x0002 -#define FATTR_FONTUSE_OUTLINE 0x0004 -#define FATTR_FONTUSE_TRANSFORMABLE 0x0008 -#define FM_TYPE_FIXED 0x0001 -#define FM_TYPE_LICENSED 0x0002 -#define FM_TYPE_KERNING 0x0004 -#define FM_TYPE_DBCS 0x0010 -#define FM_TYPE_MBCS 0x0018 -#define FM_TYPE_64K 0x8000 -#define FM_TYPE_ATOMS 0x4000 -#define FM_TYPE_FAMTRUNC 0x2000 -#define FM_TYPE_FACETRUNC 0x1000 -#define FM_DEFN_OUTLINE 0x0001 -#define FM_DEFN_IFI 0x0002 -#define FM_DEFN_WIN 0x0004 -#define FM_DEFN_GENERIC 0x8000 -#define FM_SEL_ITALIC 0x0001 -#define FM_SEL_UNDERSCORE 0x0002 -#define FM_SEL_NEGATIVE 0x0004 -#define FM_SEL_OUTLINE 0x0008 -#define FM_SEL_STRIKEOUT 0x0010 -#define FM_SEL_BOLD 0x0020 -#define FM_SEL_ISO9241_TESTED 0x0040 -#define FM_CAP_NOMIX 0x0001 -#define FM_ISO_9518_640 0x01 -#define FM_ISO_9515_640 0x02 -#define FM_ISO_9515_1024 0x04 -#define FM_ISO_9517_640 0x08 -#define FM_ISO_9517_1024 0x10 -#define PAG_READ 0x0001 -#define PAG_WRITE 0x0002 -#define PAG_EXECUTE 0x0004 -#define PAG_GUARD 0x0008 -#define PAG_COMMIT 0x0010 -#define PAG_DECOMMIT 0x0020 -#define OBJ_TILE 0x0040 -#define OBJ_PROTECTED 0x0080 -#define OBJ_GETTABLE 0x0100 -#define OBJ_GIVEABLE 0x0200 -#define PAG_DEFAULT 0x0400 -#define PAG_SHARED 0x2000 -#define PAG_FREE 0x4000 -#define PAG_BASE 0x00010000 -#define DOSSUB_INIT 0x0001 -#define DOSSUB_GROW 0x0002 -#define DOSSUB_SPARSE_OBJ 0x0004 -#define DOSSUB_SERIALIZE 0x0008 -#define fPERM (PAG_EXECUTE | PAG_READ | PAG_WRITE) -#define fSHARE (OBJ_GETTABLE | OBJ_GIVEABLE) -#define fALLOC (fPERM | OBJ_TILE | PAG_COMMIT) -#define fALLOCSHR (fPERM | fSHARE | OBJ_TILE | PAG_COMMIT) -#define fGETNMSHR (fPERM) -#define fGETSHR (fPERM) -#define fGIVESHR (fPERM) -#define fSET (fPERM|PAG_COMMIT|PAG_DECOMMIT|PAG_DEFAULT) -#define CCHMAXPATH 260 -#define CCHMAXPATHCOMP 256 -#define DSP_IMPLIEDCUR 1 -#define DSP_PATHREF 2 -#define DSP_IGNORENETERR 4 -#define DCPY_EXISTING 0x0001 -#define DCPY_APPEND 0x0002 -#define DCPY_FAILEAS 0x0004 -#define DSPI_WRTTHRU 0x0010 -#define EAT_BINARY 0xfffe -#define EAT_ASCII 0xfffd -#define EAT_BITMAP 0xfffb -#define EAT_METAFILE 0xfffa -#define EAT_ICON 0xfff9 -#define EAT_EA 0xffee -#define EAT_MVMT 0xffdf -#define EAT_MVST 0xffde -#define EAT_ASN1 0xffdd -#define ENUMEA_LEVEL_NO_VALUE 1 -#define ENUMEA_REFTYPE_FHANDLE 0 -#define ENUMEA_REFTYPE_PATH 1 -#define ENUMEA_REFTYPE_MAX ENUMEA_REFTYPE_PATH - - -#define FEA_NEEDEA 0x80 -#define FHB_DSKREMOTE 0x8000 -#define FHB_CHRDEVREMOTE 0x8000 -#define FHB_PIPEREMOTE 0x8000 -#define FHT_DISKFILE 0x0000 -#define FHT_CHRDEV 0x0001 -#define FHT_PIPE 0x0002 -#define FIL_STANDARD 1 -#define FIL_QUERYEASIZE 2 -#define FIL_QUERYEASFROMLIST 3 -#define FIL_QUERYFULLNAME 5 /* DosQueryPathInfo */ -#define FILE_BEGIN 0 -#define FILE_CURRENT 1 -#define FILE_END 2 -#define FILE_NORMAL 0x0000 -#define FILE_READONLY 0x0001 -#define FILE_HIDDEN 0x0002 -#define FILE_SYSTEM 0x0004 -#define FILE_DIRECTORY 0x0010 -#define FILE_ARCHIVED 0x0020 -#define FILE_IGNORE 0x10000 -#define FILE_EXISTED 0x0001 -#define FILE_CREATED 0x0002 -#define FILE_TRUNCATED 0x0003 -#define FILE_OPEN 0x0001 -#define FILE_TRUNCATE 0x0002 -#define FILE_CREATE 0x0010 -#define FS_ATTACH 0 -#define FS_DETACH 1 -#define FS_SPOOLATTACH 2 -#define FS_SPOOLDETACH 3 -#define FSAIL_QUERYNAME 1 -#define FSAIL_DEVNUMBER 2 -#define FSAIL_DRVNUMBER 3 -#define FSAT_CHARDEV 1 -#define FSAT_PSEUDODEV 2 -#define FSAT_LOCALDRV 3 -#define FSAT_REMOTEDRV 4 -#define FSCTL_HANDLE 1 -#define FSCTL_PATHNAME 2 -#define FSCTL_FSDNAME 3 -#define FSCTL_ERROR_INFO 1 -#define FSCTL_MAX_EASIZE 2 -#define FSCTL_GET_NEXT_ROUTE_NAME 3 -#define FSCTL_DAEMON_QUERY 4 -#define FSCTL_QUERY_COMPLETE 0 -#define FSCTL_QUERY_AGAIN 1 -#define FSIL_ALLOC 1 -#define FSIL_VOLSER 2 -#define HANDTYPE_FILE 0x0000 -#define HANDTYPE_DEVICE 0x0001 -#define HANDTYPE_PIPE 0x0002 -#define HANDTYPE_PROTECTED 0x4000 -#define HANDTYPE_NETWORK 0x8000 -#define HDIR_SYSTEM 1 -#define HDIR_CREATE ((HDIR)-1) -#define MUST_HAVE_READONLY (FILE_READONLY | (FILE_READONLY << 8)) -#define MUST_HAVE_HIDDEN (FILE_HIDDEN | (FILE_HIDDEN << 8)) -#define MUST_HAVE_SYSTEM (FILE_SYSTEM | (FILE_SYSTEM << 8)) -#define MUST_HAVE_DIRECTORY (FILE_DIRECTORY | (FILE_DIRECTORY << 8)) -#define MUST_HAVE_ARCHIVED (FILE_ARCHIVED | (FILE_ARCHIVED << 8)) -#define OPEN_ACTION_FAIL_IF_EXISTS 0x0000 -#define OPEN_ACTION_OPEN_IF_EXISTS 0x0001 -#define OPEN_ACTION_REPLACE_IF_EXISTS 0x0002 -#define OPEN_ACTION_FAIL_IF_NEW 0x0000 -#define OPEN_ACTION_CREATE_IF_NEW 0x0010 -#define OPEN_ACCESS_READONLY 0x0000 -#define OPEN_ACCESS_WRITEONLY 0x0001 -#define OPEN_ACCESS_READWRITE 0x0002 -#define OPEN_SHARE_DENYREADWRITE 0x0010 -#define OPEN_SHARE_DENYWRITE 0x0020 -#define OPEN_SHARE_DENYREAD 0x0030 -#define OPEN_SHARE_DENYNONE 0x0040 -#define OPEN_FLAGS_NOINHERIT 0x0080 -#define OPEN_FLAGS_NO_LOCALITY 0x0000 -#define OPEN_FLAGS_SEQUENTIAL 0x0100 -#define OPEN_FLAGS_RANDOM 0x0200 -#define OPEN_FLAGS_RANDOMSEQUENTIAL 0x0300 -#define OPEN_FLAGS_NO_CACHE 0x1000 -#define OPEN_FLAGS_FAIL_ON_ERROR 0x2000 -#define OPEN_FLAGS_WRITE_THROUGH 0x4000 -#define OPEN_FLAGS_DASD 0x8000 -#define OPEN_FLAGS_NONSPOOLED 0x40000 -#define OPEN_FLAGS_PROTECTED_HANDLE 0x40000000 -#define SEARCH_PATH 0x0000 -#define SEARCH_CUR_DIRECTORY 0x0001 -#define SEARCH_ENVIRONMENT 0x0002 -#define SEARCH_IGNORENETERRS 0x0004 -#define DEVINFO_PRINTER 0 -#define DEVINFO_RS232 1 -#define DEVINFO_FLOPPY 2 -#define DEVINFO_COPROCESSOR 3 -#define DEVINFO_SUBMODEL 4 -#define DEVINFO_MODEL 5 -#define DEVINFO_ADAPTER 6 -#define INFO_COUNT_PARTITIONABLE_DISKS 1 -#define INFO_GETIOCTLHANDLE 2 -#define INFO_FREEIOCTLHANDLE 3 -#define IOCTL_ASYNC 0x0001 -#define IOCTL_SCR_AND_PTRDRAW 0x0003 -#define IOCTL_KEYBOARD 0x0004 -#define IOCTL_PRINTER 0x0005 -#define IOCTL_LIGHTPEN 0x0006 -#define IOCTL_POINTINGDEVICE 0x0007 -#define IOCTL_DISK 0x0008 -#define IOCTL_PHYSICALDISK 0x0009 -#define IOCTL_MONITOR 0x000a -#define IOCTL_GENERAL 0x000b -#define IOCTL_POWER 0x000c -#define IOCTL_OEMHLP 0x0080 -#define IOCTL_TESTCFG_SYS 0x0080 -#define IOCTL_CDROMDISK 0x0080 -#define IOCTL_CDROMAUDIO 0x0081 -#define IOCTL_TOUCH_DEVDEP 0x0081 -#define IOCTL_TOUCH_DEVINDEP 0x0081 -#define ASYNC_SETBAUDRATE 0x0041 -#define ASYNC_SETLINECTRL 0x0042 -#define ASYNC_EXTSETBAUDRATE 0x0043 -#define ASYNC_TRANSMITIMM 0x0044 -#define ASYNC_SETBREAKOFF 0x0045 -#define ASYNC_SETMODEMCTRL 0x0046 -#define ASYNC_STOPTRANSMIT 0x0047 -#define ASYNC_STARTTRANSMIT 0x0048 -#define ASYNC_SETBREAKON 0x004b -#define ASYNC_SETDCBINFO 0x0053 -#define ASYNC_SETENHANCEDMODEPARMS 0x0054 -#define ASYNC_GETBAUDRATE 0x0061 -#define ASYNC_GETLINECTRL 0x0062 -#define ASYNC_EXTGETBAUDRATE 0x0063 -#define ASYNC_GETCOMMSTATUS 0x0064 -#define ASYNC_GETLINESTATUS 0x0065 -#define ASYNC_GETMODEMOUTPUT 0x0066 -#define ASYNC_GETMODEMINPUT 0x0067 -#define ASYNC_GETINQUECOUNT 0x0068 -#define ASYNC_GETOUTQUECOUNT 0x0069 -#define ASYNC_GETCOMMERROR 0x006d -#define ASYNC_GETCOMMEVENT 0x0072 -#define ASYNC_GETDCBINFO 0x0073 -#define ASYNC_GETENHANCEDMODEPARMS 0x0074 -#define SCR_ALLOCLDT 0x0070 -#define SCR_DEALLOCLDT 0x0071 -#define PTR_GETPTRDRAWADDRESS 0x0072 -#define VID_INITCALLVECTOR 0x0073 -#define SCR_ABIOSPASSTHRU 0x0074 -#define SCR_ALLOCLDTOFF 0x0075 -#define SCR_ALLOCLDTBGVAL 0x0076 -#define SCR_ALLOCVIDEOBUFFER 0x007e -#define SCR_GETROMFONTADDR 0x007f -#define KBD_SETTRANSTABLE 0x0050 -#define KBD_SETINPUTMODE 0x0051 -#define KBD_SETINTERIMFLAG 0x0052 -#define KBD_SETSHIFTSTATE 0x0053 -#define KBD_SETTYPAMATICRATE 0x0054 -#define KBD_SETFGNDSCREENGRP 0x0055 -#define KBD_SETSESMGRHOTKEY 0x0056 -#define KBD_SETFOCUS 0x0057 -#define KBD_SETKCB 0x0058 -#define KBD_SETREADNOTIFICATION 0x0059 -#define KBD_ALTERKBDLED 0x005a -#define KBD_SETNLS 0x005c -#define KBD_CREATE 0x005d -#define KBD_DESTROY 0x005e -#define KBD_GETINPUTMODE 0x0071 -#define KBD_GETINTERIMFLAG 0x0072 -#define KBD_GETSHIFTSTATE 0x0073 -#define KBD_READCHAR 0x0074 -#define KBD_PEEKCHAR 0x0075 -#define KBD_GETSESMGRHOTKEY 0x0076 -#define KBD_GETKEYBDTYPE 0x0077 -#define KBD_GETCODEPAGEID 0x0078 -#define KBD_XLATESCAN 0x0079 -#define KBD_QUERYKBDHARDWAREID 0x007a -#define KBD_QUERYKBDCODEPAGESUPPORT 0x007b -#define PRT_QUERYJOBHANDLE 0x0021 -#define PRT_SETFRAMECTL 0x0042 -#define PRT_SETINFINITERETRY 0x0044 -#define PRT_INITPRINTER 0x0046 -#define PRT_ACTIVATEFONT 0x0048 -#define PRT_SETPRINTJOBTITLE 0x004d -#define PRT_SETIRQTIMEOUT 0x004e -#define PRT_GETFRAMECTL 0x0062 -#define PRT_GETINFINITERETRY 0x0064 -#define PRT_GETPRINTERSTATUS 0x0066 -#define PRT_QUERYACTIVEFONT 0x0069 -#define PRT_VERIFYFONT 0x006a -#define PRT_QUERYIRQTIMEOUT 0x006e -#define MOU_ALLOWPTRDRAW 0x0050 -#define MOU_UPDATEDISPLAYMODE 0x0051 -#define MOU_SCREENSWITCH 0x0052 -#define MOU_SETSCALEFACTORS 0x0053 -#define MOU_SETEVENTMASK 0x0054 -#define MOU_SETHOTKEYBUTTON 0x0055 -#define MOU_REASSIGNTHRESHOLDVALUES 0x0055 /* ? */ -#define MOU_SETPTRSHAPE 0x0056 -#define MOU_DRAWPTR 0x0057 -#define MOU_UNMARKCOLLISIONAREA 0x0057 /* ? */ -#define MOU_REMOVEPTR 0x0058 -#define MOU_MARKCOLLISIONAREA 0x0058 /* ? */ -#define MOU_SETPTRPOS 0x0059 -#define MOU_SETPROTDRAWADDRESS 0x005a -#define MOU_SETREALDRAWADDRESS 0x005b -#define MOU_SETMOUSTATUS 0x005c -#define MOU_DISPLAYMODECHANGE 0x005d -#define MOU_GETBUTTONCOUNT 0x0060 -#define MOU_GETMICKEYCOUNT 0x0061 -#define MOU_GETMOUSTATUS 0x0062 -#define MOU_READEVENTQUE 0x0063 -#define MOU_GETQUESTATUS 0x0064 -#define MOU_GETEVENTMASK 0x0065 -#define MOU_GETSCALEFACTORS 0x0066 -#define MOU_GETPTRPOS 0x0067 -#define MOU_GETPTRSHAPE 0x0068 -#define MOU_GETHOTKEYBUTTON 0x0069 -#define MOU_QUERYTHRESHOLDVALUES 0x0069 /* ? */ -#define MOU_VER 0x006a -#define MOU_QUERYPOINTERID 0x006b /* ? */ -#define DSK_LOCKDRIVE 0x0000 -#define DSK_UNLOCKDRIVE 0x0001 -#define DSK_REDETERMINEMEDIA 0x0002 -#define DSK_SETLOGICALMAP 0x0003 -#define DSK_BEGINFORMAT 0x0004 -#define DSK_BLOCKREMOVABLE 0x0020 -#define DSK_GETLOGICALMAP 0x0021 -#define DSK_UNLOCKEJECTMEDIA 0x0040 -#define DSK_SETDEVICEPARAMS 0x0043 -#define DSK_WRITETRACK 0x0044 -#define DSK_FORMATVERIFY 0x0045 -#define DSK_DISKETTECONTROL 0x005d -#define DSK_QUERYMEDIASENSE 0x0060 -#define DSK_GETDEVICEPARAMS 0x0063 -#define DSK_READTRACK 0x0064 -#define DSK_VERIFYTRACK 0x0065 -#define DSK_GETLOCKSTATUS 0x0066 -#define PDSK_LOCKPHYSDRIVE 0x0000 -#define PDSK_UNLOCKPHYSDRIVE 0x0001 -#define PDSK_WRITEPHYSTRACK 0x0044 -#define PDSK_GETPHYSDEVICEPARAMS 0x0063 -#define PDSK_READPHYSTRACK 0x0064 -#define PDSK_VERIFYPHYSTRACK 0x0065 -#define POWER_SENDPOWEREVENT 0x0040 -#define POWER_SETPOWEREVENTRES 0x0041 -#define POWER_GETPOWERSTATUS 0x0060 -#define POWER_GETPOWEREVENT 0x0061 -#define POWER_GETPOWERINFO 0x0062 -#define OEMHLP_GETOEMADAPTIONINFO 0x0000 -#define OEMHLP_GETMACHINEINFO 0x0001 -#define OEMHLP_GETDISPLAYCOMBCODE 0x0002 -#define OEMHLP_GETVIDEOFONTS 0x0003 -#define OEMHLP_READEISACONFIGINFO 0x0004 -#define OEMHLP_GETROMBIOSINFO 0x0005 -#define OEMHLP_GETMISCVIDEOINFO 0x0006 -#define OEMHLP_GETVIDEOADAPTER 0x0007 -#define OEMHLP_GETSVGAINFO 0x0008 -#define OEMHLP_GETMEMINFO 0x0009 -#define OEMHLP_GETDMQSINFO 0x000a -#define OEMHLP_PCI 0x000b -#define TESTCFG_SYS_GETBIOSADAPTER 0x0040 -#define TESTCFG_SYS_ISSUEINIOINSTR 0x0041 -#define TESTCFG_SYS_ISSUEOUTIOINSTR 0x0042 -#define TESTCFG_SYS_GETBUSARCH 0x0060 -#define TESTCFG_SYS_GETALLPOSIDS 0x0061 -#define TESTCFG_SYS_GETALLEISAIDS 0x0062 -#define CDROMDISK_RESETDRIVE 0x0040 -#define CDROMDISK_EJECTDISK 0x0044 -#define CDROMDISK_LOCKUNLOCKDOOR 0x0046 -#define CDROMDISK_SEEK 0x0050 -#define CDROMDISK_DEVICESTATUS 0x0060 -#define CDROMDISK_GETDRIVER 0x0061 -#define CDROMDISK_GETSECTORSIZE 0x0063 -#define CDROMDISK_GETHEADLOC 0x0070 -#define CDROMDISK_READLONG 0x0072 -#define CDROMDISK_GETVOLUMESIZE 0x0078 -#define CDROMDISK_GETUPC 0x0079 -#define CDROMAUDIO_SETCHANNELCTRL 0x0040 -#define CDROMAUDIO_PLAYAUDIO 0x0050 -#define CDROMAUDIO_STOPAUDIO 0x0051 -#define CDROMAUDIO_RESUMEAUDIO 0x0052 -#define CDROMAUDIO_GETCHANNEL 0x0060 -#define CDROMAUDIO_GETAUDIODISK 0x0061 -#define CDROMAUDIO_GETAUDIOTRACK 0x0062 -#define CDROMAUDIO_GETSUBCHANNELQ 0x0063 -#define CDROMAUDIO_GETAUDIOSTATUS 0x0065 -#define TOUCH_DEVDEP_SETCALIBCONST 0x0052 -#define TOUCH_DEVDEP_READDATA 0x0053 -#define TOUCH_DEVDEP_SETDATAMODE 0x0054 -#define TOUCH_DEVDEP_SETCLICKLOCK 0x0055 -#define TOUCH_DEVDEP_SETTOUCHTHRESHOLD 0x0056 -#define TOUCH_DEVDEP_SETEMULXY 0x0057 -#define TOUCH_DEVDEP_SETDATAREPORTRATE 0x0058 -#define TOUCH_DEVDEP_SETLOWPASSFILTER 0x0059 -#define TOUCH_DEVDEP_WRITEMEMLOC 0x005a -#define TOUCH_DEVDEP_GETCALIBCONST 0x0060 -#define TOUCH_DEVDEP_GETDATAMODE 0x0061 -#define TOUCH_DEVDEP_GETCLICKLOCK 0x0062 -#define TOUCH_DEVDEP_GETTOUCHTHRESHOLD 0x0063 -#define TOUCH_DEVDEP_GETEMULXY 0x0064 -#define TOUCH_DEVDEP_GETDATAREPORTRATE 0x0065 -#define TOUCH_DEVDEP_GETLOWPASSFILTER 0x0066 -#define TOUCH_DEVDEP_READMEMLOC 0x0067 -#define TOUCH_DEVINDEP_SETCOORDSYS 0x0050 -#define TOUCH_DEVINDEP_SETSELECTMECH 0x0052 -#define TOUCH_DEVINDEP_SETEVENTMASK 0x0053 -#define TOUCH_DEVINDEP_SETQUEUESIZE 0x0054 -#define TOUCH_DEVINDEP_SETEMULSTATE 0x0055 -#define TOUCH_DEVINDEP_GETCOORDSYS 0x0060 -#define TOUCH_DEVINDEP_GETSELECTMECH 0x0062 -#define TOUCH_DEVINDEP_GETEVENTMASK 0x0063 -#define TOUCH_DEVINDEP_GETQUEUESIZE 0x0064 -#define TOUCH_DEVINDEP_GETEMULSTATE 0x0065 -#define TOUCH_DEVINDEP_GETREADEVENTQUEUE 0x0066 -#define MON_REGISTERMONITOR 0x0040 -#define DEV_FLUSHINPUT 0x0001 -#define DEV_FLUSHOUTPUT 0x0002 -#define DEV_SYSTEMNOTIFYPDD 0x0041 -#define DEV_QUERYMONSUPPORT 0x0060 -#define RX_QUE_OVERRUN 0x0001 -#define RX_HARDWARE_OVERRUN 0x0002 -#define PARITY_ERROR 0x0004 -#define FRAMING_ERROR 0x0008 -#define CHAR_RECEIVED 0x0001 -#define LAST_CHAR_SENT 0x0004 -#define CTS_CHANGED 0x0008 -#define DSR_CHANGED 0x0010 -#define DCD_CHANGED 0x0020 -#define BREAK_DETECTED 0x0040 -#define ERROR_OCCURRED 0x0080 -#define RI_DETECTED 0x0100 -#define TX_WAITING_FOR_CTS 0x0001 -#define TX_WAITING_FOR_DSR 0x0002 -#define TX_WAITING_FOR_DCD 0x0004 -#define TX_WAITING_FOR_XON 0x0008 -#define TX_WAITING_TO_SEND_XON 0x0010 -#define TX_WAITING_WHILE_BREAK_ON 0x0020 -#define TX_WAITING_TO_SEND_IMM 0x0040 -#define RX_WAITING_FOR_DSR 0x0080 -#define WRITE_REQUEST_QUEUED 0x0001 -#define DATA_IN_TX_QUE 0x0002 -#define HARDWARE_TRANSMITTING 0x0004 -#define CHAR_READY_TO_SEND_IMM 0x0008 -#define WAITING_TO_SEND_XON 0x0010 -#define WAITING_TO_SEND_XOFF 0x0020 -#define CTS_ON 0x10 -#define DSR_ON 0x20 -#define RI_ON 0x40 -#define DCD_ON 0x80 -#define MODE_DTR_CONTROL 0x01 -#define MODE_DTR_HANDSHAKE 0x02 -#define MODE_CTS_HANDSHAKE 0x08 -#define MODE_DSR_HANDSHAKE 0x10 -#define MODE_DCD_HANDSHAKE 0x20 -#define MODE_DSR_SENSITIVITY 0x40 -#define MODE_AUTO_TRANSMIT 0x01 -#define MODE_AUTO_RECEIVE 0x02 -#define MODE_ERROR_CHAR 0x04 -#define MODE_NULL_STRIPPING 0x08 -#define MODE_BREAK_CHAR 0x10 -#define MODE_RTS_CONTROL 0x40 -#define MODE_RTS_HANDSHAKE 0x80 -#define MODE_TRANSMIT_TOGGLE 0xc0 -#define MODE_NO_WRITE_TIMEOUT 0x01 -#define MODE_READ_TIMEOUT 0x02 -#define MODE_WAIT_READ_TIMEOUT 0x04 -#define MODE_NOWAIT_READ_TIMEOUT 0x06 -#define DTR_ON 0x01 -#define RTS_ON 0x02 -#define DTR_OFF 0xfe -#define RTS_OFF 0xfd -#define ASCII_MODE 0x00 -#define BINARY_MODE 0x80 -#define CONVERSION_REQUEST 0x20 -#define INTERIM_CHAR 0x80 -#define HOTKEY_MAX_COUNT 0x0000 -#define HOTKEY_CURRENT_COUNT 0x0001 -#define KBD_DATA_RECEIVED 0x0001 -#define KBD_DATA_BINARY 0x8000 -#define KBD_READ_WAIT 0x0000 -#define KBD_READ_NOWAIT 0x8000 -#define SHIFT_REPORT_MODE 0x01 -#define RIGHTSHIFT 0x0001 -#define LEFTSHIFT 0x0002 -#define CONTROL 0x0004 -#define ALT 0x0008 -#define SCROLLLOCK_ON 0x0010 -#define NUMLOCK_ON 0x0020 -#define CAPSLOCK_ON 0x0040 -#define INSERT_ON 0x0080 -#define LEFTCONTROL 0x0100 -#define LEFTALT 0x0200 -#define RIGHTCONTROL 0x0400 -#define RIGHTALT 0x0800 -#define SCROLLLOCK 0x1000 -#define NUMLOCK 0x2000 -#define CAPSLOCK 0x4000 -#define SYSREQ 0x8000 -#define PRINTER_TIMEOUT 0x0001 -#define PRINTER_IO_ERROR 0x0008 -#define PRINTER_SELECTED 0x0010 -#define PRINTER_OUT_OF_PAPER 0x0020 -#define PRINTER_ACKNOWLEDGED 0x0040 -#define PRINTER_NOT_BUSY 0x0080 -#define MOUSE_MOTION 0x0001 -#define MOUSE_MOTION_WITH_BN1_DOWN 0x0002 -#define MOUSE_BN1_DOWN 0x0004 -#define MOUSE_MOTION_WITH_BN2_DOWN 0x0008 -#define MOUSE_BN2_DOWN 0x0010 -#define MOUSE_MOTION_WITH_BN3_DOWN 0x0020 -#define MOUSE_BN3_DOWN 0x0040 -#define MHK_BUTTON1 0x0001 -#define MHK_BUTTON2 0x0002 -#define MHK_BUTTON3 0x0004 -#define MOU_NOWAIT 0x0000 -#define MOU_WAIT 0x0001 -#define MHK_NO_HOTKEY 0x0000 -#define MOUSE_QUEUEBUSY 0x0001 -#define MOUSE_BLOCKREAD 0x0002 -#define MOUSE_FLUSH 0x0004 -#define MOUSE_UNSUPPORTED_MODE 0x0008 -#define MOUSE_DISABLED 0x0100 -#define MOUSE_MICKEYS 0x0200 -#define BUILD_BPB_FROM_MEDIUM 0x00 -#define REPLACE_BPB_FOR_DEVICE 0x01 -#define REPLACE_BPB_FOR_MEDIUM 0x02 -#define DEVTYPE_48TPI 0x0000 -#define DEVTYPE_96TPI 0x0001 -#define DEVTYPE_35 0x0002 -#define DEVTYPE_8SD 0x0003 -#define DEVTYPE_8DD 0x0004 -#define DEVTYPE_FIXED 0x0005 -#define DEVTYPE_TAPE 0x0006 -#define DEVTYPE_UNKNOWN 0x0007 -#define SCREENDD_GETCURRENTBANK 0x00 -#define SCREENDD_SETCURRENTBANK 0x01 -#define SCREENDD_SVGA_ID 0x08 -#define SCREENDD_SVGA_OEM 0x09 -#define SCREENDD_UPDATEMEMORY 0x0a -#define SCREENDD_GETLINEARACCESS 0x0b -#define SCREENDD_GETGLOBALACCESS 0x0c -#define SCREENDD_FREEGLOBALACCESS 0x0d -#define SCREENDD_REGISTER_RING0_CALLER 0x0e -#define SCREENDD_WAIT_ON_RING0_CALLER 0x0f -#define SCREENDD_CATEGORY 0x80 -#define SCREENDD_NAME "SCREEN$" -#define GETLINEAR_FLAG_MAPPHYSICAL 0x00000010 -#define GETLINEAR_FLAG_MAPPROCESS 0x00000020 -#define GETLINEAR_FLAG_MAPSHARED 0x00000400 -#define GETLINEAR_FLAG_MAPATTACH 0x80000000 -#define EGA_BIT 4 -#define VGA_BIT 8 -#define EGAVGA_BIT (EGA_BIT|VGA_BIT) -#define READ_BANK 0 -#define WRITE_BANK 1 -#define MODE_TEXT 0 -#define MODE_PLANAR 1 -#define MODE_LINEAR 2 -#define PT_16BIT 0 -#define PT_32BIT 1 -#define RT_POINTER 1 -#define RT_BITMAP 2 -#define RT_MENU 3 -#define RT_DIALOG 4 -#define RT_STRING 5 -#define RT_FONTDIR 6 -#define RT_FONT 7 -#define RT_ACCELTABLE 8 -#define RT_RCDATA 9 -#define RT_MESSAGE 10 -#define RT_DLGINCLUDE 11 -#define RT_VKEYTBL 12 -#define RT_KEYTBL 13 -#define RT_CHARTBL 14 -#define RT_DISPLAYINFO 15 -#define RT_FKASHORT 16 -#define RT_FKALONG 17 -#define RT_HELPTABLE 18 -#define RT_HELPSUBTABLE 19 -#define RT_FDDIR 20 -#define RT_FD 21 -#define RT_MAX 22 -#define RF_ORDINALID 0x80000000L -#define EXIT_THREAD 0 -#define EXIT_PROCESS 1 -#define CREATE_READY 0 -#define CREATE_SUSPENDED 1 -#define STACK_SPARSE 0 -#define STACK_COMMITTED 2 -#define DCWA_PROCESS 0 -#define DCWA_PROCESSTREE 1 -#define DCWW_WAIT 0 -#define DCWW_NOWAIT 1 -#define DKP_PROCESSTREE 0 -#define DKP_PROCESS 1 -#define EXEC_SYNC 0 -#define EXEC_ASYNC 1 -#define EXEC_ASYNCRESULT 2 -#define EXEC_TRACE 3 -#define EXEC_BACKGROUND 4 -#define EXEC_LOAD 5 -#define EXEC_ASYNCRESULTDB 6 -#define EXLST_ADD 1 -#define EXLST_REMOVE 2 -#define EXLST_EXIT 3 -#define PRTYC_NOCHANGE 0 -#define PRTYC_IDLETIME 1 -#define PRTYC_REGULAR 2 -#define PRTYC_TIMECRITICAL 3 -#define PRTYC_FOREGROUNDSERVER 4 -#define PRTYD_MINIMUM (-31) -#define PRTYD_MAXIMUM 31 -#define PRTYS_PROCESS 0 -#define PRTYS_PROCESSTREE 1 -#define PRTYS_THREAD 2 -#define TC_EXIT 0 -#define TC_HARDERROR 1 -#define TC_TRAP 2 -#define TC_KILLPROCESS 3 -#define TC_EXCEPTION 4 -#define FAPPTYP_NOTSPEC 0x0000 -#define FAPPTYP_NOTWINDOWCOMPAT 0x0001 -#define FAPPTYP_WINDOWCOMPAT 0x0002 -#define FAPPTYP_WINDOWAPI 0x0003 -#define FAPPTYP_BOUND 0x0008 -#define FAPPTYP_DLL 0x0010 -#define FAPPTYP_DOS 0x0020 -#define FAPPTYP_PHYSDRV 0x0040 -#define FAPPTYP_VIRTDRV 0x0080 -#define FAPPTYP_PROTDLL 0x0100 -#define FAPPTYP_WINDOWSREAL 0x0200 -#define FAPPTYP_WINDOWSPROT 0x0400 -#define FAPPTYP_WINDOWSPROT31 0x1000 -#define FAPPTYP_32BIT 0x4000 -#define FAPPTYP_EXETYPE 0x0003 -#define FAPPTYP_RESERVED (~(FAPPTYP_WINDOWAPI | FAPPTYP_BOUND | \ -#define SET_SESSION_UNCHANGED 0 -#define SET_SESSION_SELECTABLE 1 -#define SET_SESSION_NON_SELECTABLE 2 -#define SET_SESSION_BOND 1 -#define SET_SESSION_NO_BOND 2 -#define SSF_RELATED_INDEPENDENT 0 -#define SSF_RELATED_CHILD 1 -#define SSF_FGBG_FORE 0 -#define SSF_FGBG_BACK 1 -#define SSF_TRACEOPT_NONE 0 -#define SSF_TRACEOPT_TRACE 1 -#define SSF_TRACEOPT_TRACEALL 2 -#define SSF_INHERTOPT_SHELL 0 -#define SSF_INHERTOPT_PARENT 1 -#define SSF_TYPE_DEFAULT 0 -#define SSF_TYPE_FULLSCREEN 1 -#define SSF_TYPE_WINDOWABLEVIO 2 -#define SSF_TYPE_PM 3 -#define SSF_TYPE_VDM 4 -#define SSF_TYPE_GROUP 5 -#define SSF_TYPE_DLL 6 -#define SSF_TYPE_WINDOWEDVDM 7 -#define SSF_TYPE_PDD 8 -#define SSF_TYPE_VDD 9 -#define SSF_CONTROL_VISIBLE 0x0000 -#define SSF_CONTROL_INVISIBLE 0x0001 -#define SSF_CONTROL_MAXIMIZE 0x0002 -#define SSF_CONTROL_MINIMIZE 0x0004 -#define SSF_CONTROL_NOAUTOCLOSE 0x0008 -#define SSF_CONTROL_SETPOS 0x8000 -#define STOP_SESSION_SPECIFIED 0 -#define STOP_SESSION_ALL 1 -#define DC_SEM_SHARED 0x01 -#define DCMW_WAIT_ANY 0x02 -#define DCMW_WAIT_ALL 0x04 -#define SEM_INDEFINITE_WAIT ((ULONG)-1) -#define SEM_IMMEDIATE_RETURN 0 -#define NP_INDEFINITE_WAIT ((ULONG)-1) -#define NP_DEFAULT_WAIT 0 -#define NP_STATE_DISCONNECTED 1 -#define NP_STATE_LISTENING 2 -#define NP_STATE_CONNECTED 3 -#define NP_STATE_CLOSING 4 -#define NP_ACCESS_INBOUND 0x0000 -#define NP_ACCESS_OUTBOUND 0x0001 -#define NP_ACCESS_DUPLEX 0x0002 -#define NP_INHERIT 0x0000 -#define NP_NOINHERIT 0x0080 -#define NP_WRITEBEHIND 0x0000 -#define NP_NOWRITEBEHIND 0x4000 -#define NP_READMODE_BYTE 0x0000 -#define NP_READMODE_MESSAGE 0x0100 -#define NP_TYPE_BYTE 0x0000 -#define NP_TYPE_MESSAGE 0x0400 -#define NP_END_CLIENT 0x0000 -#define NP_END_SERVER 0x4000 -#define NP_WAIT 0x0000 -#define NP_NOWAIT 0x8000 -#define NP_UNLIMITED_INSTANCES 0x00ff -#define NP_NBLK NO_WAIT -#define NP_SERVER NP_END_SERVER -#define NP_WMESG NP_TYPE_MESSAGE -#define NP_RMESG NP_READMODE_MESSAGE -#define NP_ICOUNT 0x00ff -#define NPSS_EOI 0 -#define NPSS_RDATA 1 -#define NPSS_WSPACE 2 -#define NPSS_CLOSE 3 -#define NPSS_WAIT 0x0001 -#define QUE_FIFO 0x0000 -#define QUE_LIFO 0x0001 -#define QUE_PRIORITY 0x0002 -#define QUE_NOCONVERT_ADDRESS 0x0000 -#define QUE_CONVERT_ADDRESS 0x0004 -#define CONTEXT_CONTROL 0x0001 -#define CONTEXT_INTEGER 0x0002 -#define CONTEXT_SEGMENTS 0x0004 -#define CONTEXT_FLOATING_POINT 0x0008 -#define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_INTEGER | \ -#define EH_NONCONTINUABLE 0x0001 -#define EH_UNWINDING 0x0002 -#define EH_EXIT_UNWIND 0x0004 -#define EH_STACK_INVALID 0x0008 -#define EH_NESTED_CALL 0x0010 -#define SIG_UNSETFOCUS 0 -#define SIG_SETFOCUS 1 -#define UNWIND_ALL 0 -#define XCPT_CONTINUE_SEARCH 0x00000000 -#define XCPT_CONTINUE_EXECUTION 0xffffffff -#define XCPT_CONTINUE_STOP 0x00716668 -#define XCPT_SIGNAL_INTR 1 -#define XCPT_SIGNAL_KILLPROC 3 -#define XCPT_SIGNAL_BREAK 4 -#define XCPT_FATAL_EXCEPTION 0xc0000000 -#define XCPT_SEVERITY_CODE 0xc0000000 -#define XCPT_CUSTOMER_CODE 0x20000000 -#define XCPT_FACILITY_CODE 0x1fff0000 -#define XCPT_EXCEPTION_CODE 0x0000ffff -#define XCPT_UNKNOWN_ACCESS 0x00000000 -#define XCPT_READ_ACCESS 0x00000001 -#define XCPT_WRITE_ACCESS 0x00000002 -#define XCPT_EXECUTE_ACCESS 0x00000004 -#define XCPT_SPACE_ACCESS 0x00000008 -#define XCPT_LIMIT_ACCESS 0x00000010 -#define XCPT_DATA_UNKNOWN 0xffffffff -#define XCPT_GUARD_PAGE_VIOLATION 0x80000001 -#define XCPT_UNABLE_TO_GROW_STACK 0x80010001 -#define XCPT_ACCESS_VIOLATION 0xc0000005 -#define XCPT_IN_PAGE_ERROR 0xc0000006 -#define XCPT_ILLEGAL_INSTRUCTION 0xc000001c -#define XCPT_INVALID_LOCK_SEQUENCE 0xc000001d -#define XCPT_NONCONTINUABLE_EXCEPTION 0xc0000024 -#define XCPT_INVALID_DISPOSITION 0xc0000025 -#define XCPT_UNWIND 0xc0000026 -#define XCPT_BAD_STACK 0xc0000027 -#define XCPT_INVALID_UNWIND_TARGET 0xc0000028 -#define XCPT_ARRAY_BOUNDS_EXCEEDED 0xc0000093 -#define XCPT_FLOAT_DENORMAL_OPERAND 0xc0000094 -#define XCPT_FLOAT_DIVIDE_BY_ZERO 0xc0000095 -#define XCPT_FLOAT_INEXACT_RESULT 0xc0000096 -#define XCPT_FLOAT_INVALID_OPERATION 0xc0000097 -#define XCPT_FLOAT_OVERFLOW 0xc0000098 -#define XCPT_FLOAT_STACK_CHECK 0xc0000099 -#define XCPT_FLOAT_UNDERFLOW 0xc000009a -#define XCPT_INTEGER_DIVIDE_BY_ZERO 0xc000009b -#define XCPT_INTEGER_OVERFLOW 0xc000009c -#define XCPT_PRIVILEGED_INSTRUCTION 0xc000009d -#define XCPT_DATATYPE_MISALIGNMENT 0xc000009e -#define XCPT_BREAKPOINT 0xc000009f -#define XCPT_SINGLE_STEP 0xc00000a0 -#define XCPT_PROCESS_TERMINATE 0xc0010001 -#define XCPT_ASYNC_PROCESS_TERMINATE 0xc0010002 -#define XCPT_SIGNAL 0xc0010003 -#define EXCEPTION_MAXIMUM_PARAMETERS 4 -#define END_OF_CHAIN ((PEXCEPTIONREGISTRATIONRECORD)(-1)) -#define QSV_MAX_PATH_LENGTH 1 -#define QSV_MAX_TEXT_SESSIONS 2 -#define QSV_MAX_PM_SESSIONS 3 -#define QSV_MAX_VDM_SESSIONS 4 -#define QSV_BOOT_DRIVE 5 -#define QSV_DYN_PRI_VARIATION 6 -#define QSV_MAX_WAIT 7 -#define QSV_MIN_SLICE 8 -#define QSV_MAX_SLICE 9 -#define QSV_PAGE_SIZE 10 -#define QSV_VERSION_MAJOR 11 -#define QSV_VERSION_MINOR 12 -#define QSV_VERSION_REVISION 13 -#define QSV_MS_COUNT 14 -#define QSV_TIME_LOW 15 -#define QSV_TIME_HIGH 16 -#define QSV_TOTPHYSMEM 17 -#define QSV_TOTRESMEM 18 -#define QSV_TOTAVAILMEM 19 -#define QSV_MAXPRMEM 20 -#define QSV_MAXSHMEM 21 -#define QSV_TIMER_INTERVAL 22 -#define QSV_MAX_COMP_LENGTH 23 -#define QSV_FOREGROUND_FS_SESSION 24 -#define QSV_FOREGROUND_PROCESS 25 -#define QSV_MAX QSV_FOREGROUND_PROCESS -#define SIS_MMIOADDR 0 -#define SIS_MEC_TABLE 1 -#define SIS_SYS_LOG 2 -#define DBG_C_Null 0 -#define DBG_C_ReadMem 1 -#define DBG_C_ReadMem_I 1 -#define DBG_C_ReadMem_D 2 -#define DBG_C_ReadReg 3 -#define DBG_C_WriteMem 4 -#define DBG_C_WriteMem_I 4 -#define DBG_C_WriteMem_D 5 -#define DBG_C_WriteReg 6 -#define DBG_C_Go 7 -#define DBG_C_Term 8 -#define DBG_C_SStep 9 -#define DBG_C_Stop 10 -#define DBG_C_Freeze 11 -#define DBG_C_Resume 12 -#define DBG_C_NumToAddr 13 -#define DBG_C_ReadCoRegs 14 -#define DBG_C_WriteCoRegs 15 -#define DBG_C_ThrdStat 17 -#define DBG_C_MapROAlias 18 -#define DBG_C_MapRWAlias 19 -#define DBG_C_UnMapAlias 20 -#define DBG_C_Connect 21 -#define DBG_C_ReadMemBuf 22 -#define DBG_C_WriteMemBuf 23 -#define DBG_C_SetWatch 24 -#define DBG_C_ClearWatch 25 -#define DBG_C_RangeStep 26 -#define DBG_C_Continue 27 -#define DBG_C_AddrToObject 28 -#define DBG_C_XchngOpcode 29 -#define DBG_C_LinToSel 30 -#define DBG_C_SelToLin 31 -#define DBG_N_Success 0 -#define DBG_N_Error (-1) -#define DBG_N_ProcTerm (-6) -#define DBG_N_Exception (-7) -#define DBG_N_ModuleLoad (-8) -#define DBG_N_CoError (-9) -#define DBG_N_ThreadTerm (-10) -#define DBG_N_AsyncStop (-11) -#define DBG_N_NewProc (-12) -#define DBG_N_AliasFree (-13) -#define DBG_N_Watchpoint (-14) -#define DBG_N_ThreadCreate (-15) -#define DBG_N_ModuleFree (-16) -#define DBG_N_RangeStep (-17) -#define DBG_D_Thawed 0 -#define DBG_D_Frozen 1 -#define DBG_T_Runnable 0 -#define DBG_T_Suspended 1 -#define DBG_T_Blocked 2 -#define DBG_T_CritSec 3 -#define DBG_L_386 1 -#define DBG_LEN_387 108 -#define DBG_CO_387 1 -#define DBG_O_OBJMTE 0x10000000 -#define DBG_W_Global 0x00000001 -#define DBG_W_Local 0x00000002 -#define DBG_W_Execute 0x00010000 -#define DBG_W_Write 0x00020000 -#define DBG_W_ReadWrite 0x00030000 -#define DBG_X_PRE_FIRST_CHANCE 0x00000000 -#define DBG_X_FIRST_CHANCE 0x00000001 -#define DBG_X_LAST_CHANCE 0x00000002 -#define DBG_X_STACK_INVALID 0x00000003 -#define DDP_DISABLEPROCDUMP 0 -#define DDP_ENABLEPROCDUMP 1 -#define DDP_PERFORMPROCDUMP 2 -#define LF_LOGENABLE 0x0001 -#define LF_LOGAVAILABLE 0x0002 - - - -#define SPU_DISABLESUPPRESSION 0 -#define SPU_ENABLESUPPRESSION 1 -#define RXAUTOBUFLEN 256 -#define RXNULLSTRING(r) ((r).strptr == (PCH)0) -#define RXZEROLENSTRING(r) ((r).strptr != (PCH)0 && (r).strlength == 0) -#define RXVALIDSTRING(r) ((r).strptr != (PCH)0 && (r).strlength != 0) -#define RXSTRLEN(r) (RXNULLSTRING(r) ? 0 : (r).strlength) -#define RXSTRPTR(r) (r).strptr -#define MAKERXSTRING(r,p,l) \ -#define RXCOMMAND 0 -#define RXSUBROUTINE 1 -#define RXFUNCTION 2 -#define RXSUBCOM_DROPPABLE 0x0000 -#define RXSUBCOM_NONDROP 0x0001 -#define RXSUBCOM_ISREG 0x0001 -#define RXSUBCOM_ERROR 0x0001 -#define RXSUBCOM_FAILURE 0x0002 -#define RXSUBCOM_BADENTRY 1001 -#define RXSUBCOM_NOEMEM 1002 -#define RXSUBCOM_BADTYPE 1003 -#define RXSUBCOM_NOTINIT 1004 -#define RXSUBCOM_OK 0 -#define RXSUBCOM_DUP 10 -#define RXSUBCOM_MAXREG 20 -#define RXSUBCOM_NOTREG 30 -#define RXSUBCOM_NOCANDROP 40 -#define RXSUBCOM_LOADERR 50 -#define RXSUBCOM_NOPROC 127 -#define REXXDEREGISTERSUBCOM RexxDeregisterSubcom -#define REXXREGISTERSUBCOMDLL RexxRegisterSubcomDll -#define REXXREGISTERSUBCOMEXE RexxRegisterSubcomExe -#define REXXQUERYSUBCOM RexxQuerySubcom -#define RXSHV_SET 0x0000 -#define RXSHV_FETCH 0x0001 -#define RXSHV_DROPV 0x0002 -#define RXSHV_SYSET 0x0003 -#define RXSHV_SYFET 0x0004 -#define RXSHV_SYDRO 0x0005 -#define RXSHV_NEXTV 0x0006 -#define RXSHV_PRIV 0x0007 -#define RXSHV_EXIT 0x0008 -#define RXSHV_NOAVL 144 -#define RXSHV_OK 0x0000 -#define RXSHV_NEWV 0x0001 -#define RXSHV_LVAR 0x0002 -#define RXSHV_TRUNC 0x0004 -#define RXSHV_BADN 0x0008 -#define RXSHV_MEMFL 0x0010 -#define RXSHV_BADF 0x0080 -#define REXXVARIABLEPOOL RexxVariablePool -#define RXFUNC_DYNALINK 1 -#define RXFUNC_CALLENTRY 2 -#define RXFUNC_OK 0 -#define RXFUNC_DEFINED 10 -#define RXFUNC_NOMEM 20 -#define RXFUNC_NOTREG 30 -#define RXFUNC_MODNOTFND 40 -#define RXFUNC_ENTNOTFND 50 -#define RXFUNC_NOTINIT 60 -#define RXFUNC_BADTYPE 70 -#define REXXDEREGISTERFUNCTION RexxDeregisterFunction -#define REXXQUERYFUNCTION RexxQueryFunction -#define REXXREGISTERFUNCTIONDLL RexxRegisterFunctionDll -#define REXXREGISTERFUNCTIONEXE RexxRegisterFunctionExe -#define RXEXIT_DROPPABLE 0x0000 -#define RXEXIT_NONDROP 0x0001 -#define RXEXIT_HANDLED 0 -#define RXEXIT_NOT_HANDLED 1 -#define RXEXIT_RAISE_ERROR (-1) -#define RXEXIT_ISREG 0x0001 -#define RXEXIT_ERROR 0x0001 -#define RXEXIT_FAILURE 0x0002 -#define RXEXIT_BADENTRY 1001 -#define RXEXIT_NOEMEM 1002 -#define RXEXIT_BADTYPE 1003 -#define RXEXIT_NOTINIT 1004 -#define RXEXIT_OK 0 -#define RXEXIT_DUP 10 -#define RXEXIT_MAXREG 20 -#define RXEXIT_NOTREG 30 -#define RXEXIT_NOCANDROP 40 -#define RXEXIT_LOADERR 50 -#define RXEXIT_NOPROC 127 -#define RXENDLST 0 -#define RXFNC 2 -#define RXFNCCAL 1 -#define RXCMD 3 -#define RXCMDHST 1 -#define RXMSQ 4 -#define RXMSQPLL 1 -#define RXMSQPSH 2 -#define RXMSQSIZ 3 -#define RXMSQNAM 20 -#define RXSIO 5 -#define RXSIOSAY 1 -#define RXSIOTRC 2 -#define RXSIOTRD 3 -#define RXSIODTR 4 -#define RXSIOTLL 5 -#define RXHLT 7 -#define RXHLTCLR 1 -#define RXHLTTST 2 -#define RXTRC 8 -#define RXTRCTST 1 -#define RXINI 9 -#define RXINIEXT 1 -#define RXTER 10 -#define RXTEREXT 1 -#define RXNOOFEXITS 11 -#define REXXDEREGISTEREXIT RexxDeregisterExit -#define REXXQUERYEXIT RexxQueryExit -#define REXXREGISTEREXITDLL RexxRegisterExitDll -#define REXXREGISTEREXITEXE RexxRegisterExitExe -#define RXARI_OK 0 -#define RXARI_NOT_FOUND 1 -#define RXARI_PROCESSING_ERROR 2 -#define REXXRESETTRACE RexxResetTrace -#define REXXSETHALT RexxSetHalt -#define REXXSETTRACE RexxSetTrace -#define RXMACRO_SEARCH_BEFORE 1 -#define RXMACRO_SEARCH_AFTER 2 -#define RXMACRO_OK 0 -#define RXMACRO_NO_STORAGE 1 -#define RXMACRO_NOT_FOUND 2 -#define RXMACRO_EXTENSION_REQUIRED 3 -#define RXMACRO_ALREADY_EXISTS 4 -#define RXMACRO_FILE_ERROR 5 -#define RXMACRO_SIGNATURE_ERROR 6 -#define RXMACRO_SOURCE_NOT_FOUND 7 -#define RXMACRO_INVALID_POSITION 8 -#define RXMACRO_NOT_INIT 9 -#define REXXADDMACRO RexxAddMacro -#define REXXCLEARMACROSPACE RexxClearMacroSpace -#define REXXDROPMACRO RexxDropMacro -#define REXXSAVEMACROSPACE RexxSaveMacroSpace -#define REXXLOADMACROSPACE RexxLoadMacroSpace -#define REXXQUERYMACRO RexxQueryMacro -#define REXXREORDERMACRO RexxReorderMacro -#define REXXSTART RexxStart -#define CTLS_WM_BIDI_FIRST 0x390 -#define CTLS_WM_BIDI_LAST 0x39f -#define WM_DBCSFIRST 0x00b0 -#define WM_DBCSLAST 0x00cf - -#define WC_FRAME 0xffff0001 -#define WC_COMBOBOX 0xffff0002 -#define WC_BUTTON 0xffff0003 -#define WC_MENU 0xffff0004 -#define WC_STATIC 0xffff0005 -#define WC_ENTRYFIELD 0xffff0006 -#define WC_LISTBOX 0xffff0007 -#define WC_SCROLLBAR 0xffff0008 -#define WC_TITLEBAR 0xffff0009 -#define WC_MLE 0xffff000a -#define WC_APPSTAT 0xffff0010 -#define WC_KBDSTAT 0xffff0011 -#define WC_PECIC 0xffff0012 -#define WC_DBE_KKPOPUP 0xffff0013 -#define WC_SPINBUTTON 0xffff0020 -#define WC_CONTAINER 0xffff0025 -#define WC_SLIDER 0xffff0026 -#define WC_VALUESET 0xffff0027 -#define WC_NOTEBOOK 0xffff0028 -#define WC_PENFIRST 0xffff0029 -#define WC_PENLAST 0xffff002c -#define WC_MMPMFIRST 0xffff0040 -#define WC_CIRCULARSLIDER 0xffff0041 -#define WC_MMPMLAST 0xffff004f +#define WC_FRAME "#1" //0xffff0001 +#define WC_COMBOBOX "#2" //0xffff0002 +#define WC_BUTTON "#3" //0xffff0003 +#define WC_MENU "#4" //0xffff0004 +#define WC_STATIC "#5" //0xffff0005 +#define WC_ENTRYFIELD "#6" //0xffff0006 +#define WC_LISTBOX "#7" //0xffff0007 +#define WC_SCROLLBAR "#8" //0xffff0008 +#define WC_TITLEBAR "#9" //0xffff0009 +#define WC_MLE "#10" //0xffff000a +#define WC_APPSTAT "#16" //0xffff0010 +#define WC_KBDSTAT "#17" //0xffff0011 +#define WC_PECIC "#18" //0xffff0012 +#define WC_DBE_KKPOPUP "#19" //0xffff0013 +#define WC_SPINBUTTON "#32" //0xffff0020 +#define WC_CONTAINER "#37" //0xffff0025 +#define WC_SLIDER "#38" //0xffff0026 +#define WC_VALUESET "#39" //0xffff0027 +#define WC_NOTEBOOK "#40" //0xffff0028 +#define WC_PENFIRST "#41" //0xffff0029 +#define WC_PENLAST "#44" //0xffff002c +#define WC_MMPMFIRST "#64" //0xffff0040 +#define WC_CIRCULARSLIDER "#65" //0xffff0041 +#define WC_MMPMLAST "#79" //0xffff004f #define WS_VISIBLE 0x80000000 #define WS_DISABLED 0x40000000 @@ -1867,95 +93,282 @@ #define WS_TABSTOP 0x00020000 #define WS_MULTISELECT 0x00040000 -#define CS_MOVENOTIFY 0x00000001 -#define CS_SIZEREDRAW 0x00000004 +#define CS_MOVENOTIFY 0x00000001 +#define CS_SIZEREDRAW 0x00000004 #define CS_HITTEST 0x00000008 -#define CS_PUBLIC 0x00000010 -#define CS_FRAME 0x00000020 -#define CS_CLIPCHILDREN 0x20000000 -#define CS_CLIPSIBLINGS 0x10000000 -#define CS_PARENTCLIP 0x08000000 +#define CS_PUBLIC 0x00000010 +#define CS_FRAME 0x00000020 +#define CS_CLIPCHILDREN 0x20000000 +#define CS_CLIPSIBLINGS 0x10000000 +#define CS_PARENTCLIP 0x08000000 #define CS_SAVEBITS 0x04000000 #define CS_SYNCPAINT 0x02000000 -#define MID_NONE (-1) -#define MID_ERROR (-1) -#define DB_PATCOPY 0x0000 -#define DB_PATINVERT 0x0001 -#define DB_DESTINVERT 0x0002 -#define DB_AREAMIXMODE 0x0003 -#define DB_ROP 0x0007 -#define DB_INTERIOR 0x0008 -#define DB_AREAATTRS 0x0010 -#define DB_STANDARD 0x0100 -#define DB_DLGBORDER 0x0200 -#define DBM_NORMAL 0x0000 -#define DBM_INVERT 0x0001 -#define DBM_HALFTONE 0x0002 -#define DBM_STRETCH 0x0004 -#define DBM_IMAGEATTRS 0x0008 -#define DT_LEFT 0x00000000 -#define DT_QUERYEXTENT 0x00000002 -#define DT_UNDERSCORE 0x00000010 -#define DT_STRIKEOUT 0x00000020 -#define DT_TEXTATTRS 0x00000040 -#define DT_EXTERNALLEADING 0x00000080 -#define DT_CENTER 0x00000100 -#define DT_RIGHT 0x00000200 -#define DT_TOP 0x00000000 -#define DT_VCENTER 0x00000400 -#define DT_BOTTOM 0x00000800 -#define DT_HALFTONE 0x00001000 -#define DT_MNEMONIC 0x00002000 -#define DT_WORDBREAK 0x00004000 -#define DT_ERASERECT 0x00008000 -#define QW_NEXT 0 -#define QW_PREV 1 -#define QW_TOP 2 -#define QW_BOTTOM 3 -#define QW_OWNER 4 -#define QW_PARENT 5 -#define QW_NEXTTOP 6 -#define QW_PREVTOP 7 -#define QW_FRAMEOWNER 8 -#define SWP_SIZE 0x0001 -#define SWP_MOVE 0x0002 -#define SWP_ZORDER 0x0004 -#define SWP_SHOW 0x0008 -#define SWP_HIDE 0x0010 -#define SWP_NOREDRAW 0x0020 -#define SWP_NOADJUST 0x0040 -#define SWP_ACTIVATE 0x0080 -#define SWP_DEACTIVATE 0x0100 -#define SWP_EXTSTATECHANGE 0x0200 -#define SWP_MINIMIZE 0x0400 -#define SWP_MAXIMIZE 0x0800 -#define SWP_RESTORE 0x1000 -#define SWP_FOCUSACTIVATE 0x2000 -#define SWP_FOCUSDEACTIVATE 0x4000 -#define SWP_NOAUTOCLOSE 0x8000 -#define AWP_MINIMIZED 0x00010000 -#define AWP_MAXIMIZED 0x00020000 -#define AWP_RESTORED 0x00040000 -#define AWP_ACTIVATE 0x00080000 -#define AWP_DEACTIVATE 0x00100000 + +#define WM_NULL 0x0000 +#define WM_CREATE 0x0001 +#define WM_DESTROY 0x0002 +#define WM_ENABLE 0x0004 +#define WM_SHOW 0x0005 +#define WM_MOVE 0x0006 +#define WM_SIZE 0x0007 +#define WM_ADJUSTWINDOWPOS 0x0008 +#define WM_CALCVALIDRECTS 0x0009 +#define WM_SETWINDOWPARAMS 0x000a +#define WM_QUERYWINDOWPARAMS 0x000b +#define WM_HITTEST 0x000c +#define WM_ACTIVATE 0x000d +#define WM_SETFOCUS 0x000f +#define WM_SETSELECTION 0x0010 +#define WM_PPAINT 0x0011 +#define WM_PSETFOCUS 0x0012 +#define WM_PSYSCOLORCHANGE 0x0013 +#define WM_PSIZE 0x0014 +#define WM_PACTIVATE 0x0015 +#define WM_PCONTROL 0x0016 +#define WM_COMMAND 0x0020 +#define WM_SYSCOMMAND 0x0021 +#define WM_HELP 0x0022 +#define WM_PAINT 0x0023 +#define WM_TIMER 0x0024 +#define WM_SEM1 0x0025 +#define WM_SEM2 0x0026 +#define WM_SEM3 0x0027 +#define WM_SEM4 0x0028 +#define WM_CLOSE 0x0029 +#define WM_QUIT 0x002a +#define WM_SYSCOLORCHANGE 0x002b +#define WM_SYSVALUECHANGED 0x002d +#define WM_APPTERMINATENOTIFY 0x002e +#define WM_PRESPARAMCHANGED 0x002f +#define WM_CONTROL 0x0030 +#define WM_VSCROLL 0x0031 +#define WM_HSCROLL 0x0032 +#define WM_INITMENU 0x0033 +#define WM_MENUSELECT 0x0034 +#define WM_MENUEND 0x0035 +#define WM_DRAWITEM 0x0036 +#define WM_MEASUREITEM 0x0037 +#define WM_CONTROLPOINTER 0x0038 +#define WM_QUERYDLGCODE 0x003a +#define WM_INITDLG 0x003b +#define WM_SUBSTITUTESTRING 0x003c +#define WM_MATCHMNEMONIC 0x003d +#define WM_SAVEAPPLICATION 0x003e +#define WM_HELPBASE 0x0f00 +#define WM_HELPTOP 0x0fff +#define WM_USER 0x1000 +#define WM_FLASHWINDOW 0x0040 +#define WM_FORMATFRAME 0x0041 +#define WM_UPDATEFRAME 0x0042 +#define WM_FOCUSCHANGE 0x0043 +#define WM_SETBORDERSIZE 0x0044 +#define WM_TRACKFRAME 0x0045 +#define WM_MINMAXFRAME 0x0046 +#define WM_SETICON 0x0047 +#define WM_QUERYICON 0x0048 +#define WM_SETACCELTABLE 0x0049 +#define WM_QUERYACCELTABLE 0x004a +#define WM_TRANSLATEACCEL 0x004b +#define WM_QUERYTRACKINFO 0x004c +#define WM_QUERYBORDERSIZE 0x004d +#define WM_NEXTMENU 0x004e +#define WM_ERASEBACKGROUND 0x004f +#define WM_QUERYFRAMEINFO 0x0050 +#define WM_QUERYFOCUSCHAIN 0x0051 +#define WM_OWNERPOSCHANGE 0x0052 +#define WM_CALCFRAMERECT 0x0053 +#define WM_WINDOWPOSCHANGED 0x0055 +#define WM_ADJUSTFRAMEPOS 0x0056 +#define WM_QUERYFRAMECTLCOUNT 0x0059 +#define WM_QUERYHELPINFO 0x005b +#define WM_SETHELPINFO 0x005c +#define WM_ERROR 0x005d +#define WM_REALIZEPALETTE 0x005e +#define WM_QUERYCONVERTPOS 0x00b0 +#define WM_RENDERFMT 0x0060 +#define WM_RENDERALLFMTS 0x0061 +#define WM_DESTROYCLIPBOARD 0x0062 +#define WM_PAINTCLIPBOARD 0x0063 +#define WM_SIZECLIPBOARD 0x0064 +#define WM_HSCROLLCLIPBOARD 0x0065 +#define WM_VSCROLLCLIPBOARD 0x0066 +#define WM_MOUSEFIRST 0x0070 +#define WM_MOUSEMOVE 0x0070 +#define WM_BUTTONCLICKFIRST 0x0071 +#define WM_BUTTON1DOWN 0x0071 +#define WM_BUTTON1UP 0x0072 +#define WM_BUTTON1DBLCLK 0x0073 +#define WM_BUTTON2DOWN 0x0074 +#define WM_BUTTON2UP 0x0075 +#define WM_BUTTON2DBLCLK 0x0076 +#define WM_BUTTON3DOWN 0x0077 +#define WM_BUTTON3UP 0x0078 +#define WM_BUTTON3DBLCLK 0x0079 +#define WM_BUTTONCLICKLAST 0x0079 +#define WM_MOUSELAST 0x0079 +#define WM_CHAR 0x007a +#define WM_VIOCHAR 0x007b +#define WM_JOURNALNOTIFY 0x007c +#define WM_MOUSEMAP 0x007d +#define WM_VRNDISABLED 0x007e +#define WM_VRNENABLED 0x007f +#define WM_EXTMOUSEFIRST 0x0410 +#define WM_CHORD 0x0410 +#define WM_BUTTON1MOTIONSTART 0x0411 +#define WM_BUTTON1MOTIONEND 0x0412 +#define WM_BUTTON1CLICK 0x0413 +#define WM_BUTTON2MOTIONSTART 0x0414 +#define WM_BUTTON2MOTIONEND 0x0415 +#define WM_BUTTON2CLICK 0x0416 +#define WM_BUTTON3MOTIONSTART 0x0417 +#define WM_BUTTON3MOTIONEND 0x0418 +#define WM_BUTTON3CLICK 0x0419 +#define WM_EXTMOUSELAST 0x0419 +#define WM_MOUSETRANSLATEFIRST 0x0420 +#define WM_BEGINDRAG 0x0420 +#define WM_ENDDRAG 0x0421 +#define WM_SINGLESELECT 0x0422 +#define WM_OPEN 0x0423 +#define WM_CONTEXTMENU 0x0424 +#define WM_CONTEXTHELP 0x0425 +#define WM_TEXTEDIT 0x0426 +#define WM_BEGINSELECT 0x0427 +#define WM_ENDSELECT 0x0428 +#define WM_MOUSETRANSLATELAST 0x0428 +#define WM_PICKUP 0x0429 +#define WM_PENFIRST 0x0481 +#define WM_PENLAST 0x049f +#define WM_MMPMFIRST 0x0500 +#define WM_MMPMLAST 0x05ff +#define WM_BIDI_FIRST 0x0bd0 +#define WM_BIDI_LAST 0x0bff +#define WM_MSGBOXINIT 0x010e +#define WM_MSGBOXDISMISS 0x010f +#define WM_CTLCOLORCHANGE 0x0129 +#define WM_QUERYCTLTYPE 0x0130 /*0x012a?*/ +#define WM_DRAGFIRST 0x0310 +#define WM_DRAGLAST 0x032f + #define HWND_DESKTOP 1 #define HWND_OBJECT 2 #define HWND_TOP 3 #define HWND_BOTTOM 4 #define HWND_THREADCAPTURE 5 -#define EAF_DEFAULTOWNER 0x0001 -#define EAF_UNCHANGEABLE 0x0002 -#define EAF_REUSEICON 0x0004 -#define ICON_FILE 1 -#define ICON_RESOURCE 2 -#define ICON_DATA 3 -#define ICON_CLEAR 4 -#define SZDDEFMT_RTF "Rich Text Format" -#define SZDDEFMT_PTRPICT "Printer_Picture" -#define STR_DLLNAME "keyremap" -#define PMERR_INVALID_HWND 0x1001 -#define PMERR_INVALID_HMQ 0x1002 -#define PMERR_PARAMETER_OUT_OF_RANGE 0x1003 +#define HWND_PARENT NIL + +#define FCF_TITLEBAR 0x00000001 +#define FCF_SYSMENU 0x00000002 +#define FCF_MENU 0x00000004 +#define FCF_SIZEBORDER 0x00000008 +#define FCF_MINBUTTON 0x00000010 +#define FCF_MAXBUTTON 0x00000020 +#define FCF_MINMAX (FCF_MINBUTTON + FCF_MAXBUTTON) +#define FCF_VERTSCROLL 0x00000040 +#define FCF_HORZSCROLL 0x00000080 +#define FCF_DLGBORDER 0x00000100 +#define FCF_BORDER 0x00000200 +#define FCF_SHELLPOSITION 0x00000400 +#define FCF_TASKLIST 0x00000800 +#define FCF_NOBYTEALIGN 0x00001000 +#define FCF_NOMOVEWITHOWNER 0x00002000 +#define FCF_ICON 0x00004000 +#define FCF_ACCELTABLE 0x00008000 +#define FCF_SYSMODAL 0x00010000 +#define FCF_SCREENALIGN 0x00020000 +#define FCF_MOUSEALIGN 0x00040000 +#define FCF_PALETTE_NORMAL 0x00080000 +#define FCF_PALETTE_HELP 0x00100000 +#define FCF_PALETTE_POPUPODD 0x00200000 +#define FCF_PALETTE_POPUPEVEN 0x00400000 +#define FCF_HIDEBUTTON 0x01000000 +#define FCF_HIDEMAX 0x01000020 +#define FCF_AUTOICON 0x40000000 +#define FCF_DBE_APPSTAT 0x80000000 +#define FCF_STANDARD 0x0000cc3f + +#define MIA_NODISMISS 0x0020 +#define MIA_FRAMED 0x1000 +#define MIA_CHECKED 0x2000 +#define MIA_DISABLED 0x4000 +#define MIA_HILITED 0x8000 +#define MIS_TEXT 0x0001 +#define MIS_BITMAP 0x0002 +#define MIS_SEPARATOR 0x0004 +#define MIS_OWNERDRAW 0x0008 +#define MIS_SUBMENU 0x0010 +#define MIS_MULTMENU 0x0020 +#define MIS_SYSCOMMAND 0x0040 +#define MIS_HELP 0x0080 +#define MIS_STATIC 0x0100 +#define MIS_BUTTONSEPARATOR 0x0200 +#define MIS_BREAK 0x0400 +#define MIS_BREAKSEPARATOR 0x0800 +#define MIS_GROUP 0x1000 +#define MIS_SINGLE 0x2000 +#define MIT_END (-1) +#define MIT_NONE (-1) +#define MIT_MEMERROR (-1) +#define MIT_ERROR (-1) +#define MIT_FIRST (-2) +#define MIT_LAST (-3) + +#define BS_PUSHBUTTON 0 +#define BS_CHECKBOX 1 +#define BS_AUTOCHECKBOX 2 +#define BS_RADIOBUTTON 3 +#define BS_AUTORADIOBUTTON 4 +#define BS_3STATE 5 +#define BS_AUTO3STATE 6 +#define BS_USERBUTTON 7 +#define BS_PRIMARYSTYLES 0x000f +#define BS_TEXT 0x0010 +#define BS_MINIICON 0x0020 +#define BS_BITMAP 0x0040 +#define BS_ICON 0x0080 +#define BS_HELP 0x0100 +#define BS_SYSCOMMAND 0x0200 +#define BS_DEFAULT 0x0400 +#define BS_NOPOINTERFOCUS 0x0800 +#define BS_NOBORDER 0x1000 +#define BS_NOCURSORSELECT 0x2000 +#define BS_AUTOSIZE 0x4000 + +#define MLS_WORDWRAP 0x0001 +#define MLS_BORDER 0x0002 +#define MLS_VSCROLL 0x0004 +#define MLS_HSCROLL 0x0008 +#define MLS_READONLY 0x0010 +#define MLS_IGNORETAB 0x0020 +#define MLS_DISABLEUNDO 0x0040 + +#define ES_LEFT 0x0000 +#define ES_CENTER 0x0001 +#define ES_RIGHT 0x0002 +#define ES_AUTOSCROLL 0x0004 +#define ES_MARGIN 0x0008 +#define ES_AUTOTAB 0x0010 +#define ES_READONLY 0x0020 +#define ES_COMMAND 0x0040 +#define ES_UNREADABLE 0x0080 +#define ES_AUTOSIZE 0x0200 +#define ES_ANY 0x0000 +#define ES_SBCS 0x1000 +#define ES_DBCS 0x2000 +#define ES_MIXED 0x3000 + +#define CMDSRC_OTHER 0 +#define CMDSRC_PUSHBUTTON 1 +#define CMDSRC_MENU 2 +#define CMDSRC_ACCELERATOR 3 +#define CMDSRC_FONTDLG 4 +#define CMDSRC_FILEDLG 5 +#define CMDSRC_PRINTDLG 6 +#define CMDSRC_COLORDLG 7 + + +#define PMERR_INVALID_HWND 0x1001 +#define PMERR_INVALID_HMQ 0x1002 +#define PMERR_PARAMETER_OUT_OF_RANGE 0x1003 #define PMERR_WINDOW_LOCK_UNDERFLOW 0x1004 #define PMERR_WINDOW_LOCK_OVERFLOW 0x1005 #define PMERR_BAD_WINDOW_LOCK_COUNT 0x1006 @@ -2452,3733 +865,4 @@ #define PMERR_HFONT_IS_SELECTED 0x2119 #define PMERR_DRVR_NOT_SUPPORTED 0x2120 #define PMERR_INV_INKPS_FUNCTION 0x2121 -#define WPERR_PROTECTED_CLASS 0x1700 -#define WPERR_INVALID_CLASS 0x1701 -#define WPERR_INVALID_SUPERCLASS 0x1702 -#define WPERR_NO_MEMORY 0x1703 -#define WPERR_SEMAPHORE_ERROR 0x1704 -#define WPERR_BUFFER_TOO_SMALL 0x1705 -#define WPERR_CLSLOADMOD_FAILED 0x1706 -#define WPERR_CLSPROCADDR_FAILED 0x1707 -#define WPERR_OBJWORD_LOCATION 0x1708 -#define WPERR_INVALID_OBJECT 0x1709 -#define WPERR_MEMORY_CLEANUP 0x170a -#define WPERR_INVALID_MODULE 0x170b -#define WPERR_INVALID_OLDCLASS 0x170c -#define WPERR_INVALID_NEWCLASS 0x170d -#define WPERR_NOT_IMMEDIATE_CHILD 0x170e -#define WPERR_NOT_WORKPLACE_CLASS 0x170f -#define WPERR_CANT_REPLACE_METACLS 0x1710 -#define WPERR_INI_FILE_WRITE 0x1711 -#define WPERR_INVALID_FOLDER 0x1712 -#define WPERR_BUFFER_OVERFLOW 0x1713 -#define WPERR_OBJECT_NOT_FOUND 0x1714 -#define WPERR_INVALID_HFIND 0x1715 -#define WPERR_INVALID_COUNT 0x1716 -#define WPERR_INVALID_BUFFER 0x1717 -#define WPERR_ALREADY_EXISTS 0x1718 -#define WPERR_INVALID_FLAGS 0x1719 -#define WPERR_INVALID_OBJECTID 0x1720 -#define WPERR_INVALID_TARGET_OBJECT 0x1721 -#define PMERR_SPL_DRIVER_ERROR 0x4001 -#define PMERR_SPL_DEVICE_ERROR 0x4002 -#define PMERR_SPL_DEVICE_NOT_INSTALLED 0x4003 -#define PMERR_SPL_QUEUE_ERROR 0x4004 -#define PMERR_SPL_INV_HSPL 0x4005 -#define PMERR_SPL_NO_DISK_SPACE 0x4006 -#define PMERR_SPL_NO_MEMORY 0x4007 -#define PMERR_SPL_PRINT_ABORT 0x4008 -#define PMERR_SPL_SPOOLER_NOT_INSTALLED 0x4009 -#define PMERR_SPL_INV_FORMS_CODE 0x400a -#define PMERR_SPL_INV_PRIORITY 0x400b -#define PMERR_SPL_NO_FREE_JOB_ID 0x400c -#define PMERR_SPL_NO_DATA 0x400d -#define PMERR_SPL_INV_TOKEN 0x400e -#define PMERR_SPL_INV_DATATYPE 0x400f -#define PMERR_SPL_PROCESSOR_ERROR 0x4010 -#define PMERR_SPL_INV_JOB_ID 0x4011 -#define PMERR_SPL_JOB_NOT_PRINTING 0x4012 -#define PMERR_SPL_JOB_PRINTING 0x4013 -#define PMERR_SPL_QUEUE_ALREADY_EXISTS 0x4014 -#define PMERR_SPL_INV_QUEUE_NAME 0x4015 -#define PMERR_SPL_QUEUE_NOT_EMPTY 0x4016 -#define PMERR_SPL_DEVICE_ALREADY_EXISTS 0x4017 -#define PMERR_SPL_DEVICE_LIMIT_REACHED 0x4018 -#define PMERR_SPL_STATUS_STRING_TRUNC 0x4019 -#define PMERR_SPL_INV_LENGTH_OR_COUNT 0x401a -#define PMERR_SPL_FILE_NOT_FOUND 0x401b -#define PMERR_SPL_CANNOT_OPEN_FILE 0x401c -#define PMERR_SPL_DRIVER_NOT_INSTALLED 0x401d -#define PMERR_SPL_INV_PROCESSOR_DATTYPE 0x401e -#define PMERR_SPL_INV_DRIVER_DATATYPE 0x401f -#define PMERR_SPL_PROCESSOR_NOT_INST 0x4020 -#define PMERR_SPL_NO_SUCH_LOG_ADDRESS 0x4021 -#define PMERR_SPL_PRINTER_NOT_FOUND 0x4022 -#define PMERR_SPL_DD_NOT_FOUND 0x4023 -#define PMERR_SPL_QUEUE_NOT_FOUND 0x4024 -#define PMERR_SPL_MANY_QUEUES_ASSOC 0x4025 -#define PMERR_SPL_NO_QUEUES_ASSOCIATED 0x4026 -#define PMERR_SPL_INI_FILE_ERROR 0x4027 -#define PMERR_SPL_NO_DEFAULT_QUEUE 0x4028 -#define PMERR_SPL_NO_CURRENT_FORMS_CODE 0x4029 -#define PMERR_SPL_NOT_AUTHORISED 0x402a -#define PMERR_SPL_TEMP_NETWORK_ERROR 0x402b -#define PMERR_SPL_HARD_NETWORK_ERROR 0x402c -#define PMERR_DEL_NOT_ALLOWED 0x402d -#define PMERR_CANNOT_DEL_QP_REF 0x402e -#define PMERR_CANNOT_DEL_QNAME_REF 0x402f -#define PMERR_CANNOT_DEL_PRINTER_DD_REF 0x4030 -#define PMERR_CANNOT_DEL_PRN_NAME_REF 0x4031 -#define PMERR_CANNOT_DEL_PRN_ADDR_REF 0x4032 -#define PMERR_SPOOLER_QP_NOT_DEFINED 0x4033 -#define PMERR_PRN_NAME_NOT_DEFINED 0x4034 -#define PMERR_PRN_ADDR_NOT_DEFINED 0x4035 -#define PMERR_PRINTER_DD_NOT_DEFINED 0x4036 -#define PMERR_PRINTER_QUEUE_NOT_DEFINED 0x4037 -#define PMERR_PRN_ADDR_IN_USE 0x4038 -#define PMERR_SPL_TOO_MANY_OPEN_FILES 0x4039 -#define PMERR_SPL_CP_NOT_REQD 0x403a -#define PMERR_SPL_PORT_SHUTDOWN 0x403b -#define PMERR_SPL_NOT_HANDLED 0x403c -#define PMERR_SPL_CNV_NOT_INIT 0x403d -#define PMERR_SPL_INIT_IN_PROGRESS 0x403e -#define PMERR_SPL_TYPE_NOT_AVAIL 0x403f -#define PMERR_UNABLE_TO_CLOSE_DEVICE 0x4040 -#define PMERR_SPL_SESSION_TERM 0x4041 -#define PMERR_SPL_NOT_REGISTERED 0x4042 -#define PMERR_INV_TYPE 0x5001 -#define PMERR_INV_CONV 0x5002 -#define PMERR_INV_SEGLEN 0x5003 -#define PMERR_DUP_SEGNAME 0x5004 -#define PMERR_INV_XFORM 0x5005 -#define PMERR_INV_VIEWLIM 0x5006 -#define PMERR_INV_3DCOORD 0x5007 -#define PMERR_SMB_OVFLOW 0x5008 -#define PMERR_SEG_OVFLOW 0x5009 -#define PMERR_PIC_DUP_FILENAME 0x5010 -#define WINDBG_HWND_NOT_DESTROYED 0x1022 -#define WINDBG_HPTR_NOT_DESTROYED 0x1023 -#define WINDBG_HACCEL_NOT_DESTROYED 0x1024 -#define WINDBG_HENUM_NOT_DESTROYED 0x1025 -#define WINDBG_VISRGN_SEM_BUSY 0x1026 -#define WINDBG_USER_SEM_BUSY 0x1027 -#define WINDBG_DC_CACHE_BUSY 0x1028 -#define WINDBG_HOOK_STILL_INSTALLED 0x1029 -#define WINDBG_WINDOW_STILL_LOCKED 0x102a -#define WINDBG_UPDATEPS_ASSERTION_FAIL 0x102b -#define WINDBG_SENDMSG_WITHIN_USER_SEM 0x102c -#define WINDBG_USER_SEM_NOT_ENTERED 0x102d -#define WINDBG_PROC_NOT_EXPORTED 0x102e -#define WINDBG_BAD_SENDMSG_HWND 0x102f -#define WINDBG_ABNORMAL_EXIT 0x1030 -#define WINDBG_INTERNAL_REVISION 0x1031 -#define WINDBG_INITSYSTEM_FAILED 0x1032 -#define WINDBG_HATOMTBL_NOT_DESTROYED 0x1033 -#define WINDBG_WINDOW_UNLOCK_WAIT 0x1035 -#define WRECT RECTL -#define PWRECT PRECTL -#define WPOINT POINTL -#define PWPOINT PPOINTL -#define ERRORIDERROR(errid) (LOUSHORT (errid)) -#define ERRORIDSEV(errid) (HIUSHORT (errid)) -#define MAKEERRORID(sev,error) (ERRORID)(MAKEULONG ((error), (sev))) -#define WM_NULL 0x0000 -#define WM_CREATE 0x0001 -#define WM_DESTROY 0x0002 -#define WM_ENABLE 0x0004 -#define WM_SHOW 0x0005 -#define WM_MOVE 0x0006 -#define WM_SIZE 0x0007 -#define WM_ADJUSTWINDOWPOS 0x0008 -#define WM_CALCVALIDRECTS 0x0009 -#define WM_SETWINDOWPARAMS 0x000a -#define WM_QUERYWINDOWPARAMS 0x000b -#define WM_HITTEST 0x000c -#define WM_ACTIVATE 0x000d -#define WM_SETFOCUS 0x000f -#define WM_SETSELECTION 0x0010 -#define WM_PPAINT 0x0011 -#define WM_PSETFOCUS 0x0012 -#define WM_PSYSCOLORCHANGE 0x0013 -#define WM_PSIZE 0x0014 -#define WM_PACTIVATE 0x0015 -#define WM_PCONTROL 0x0016 -#define WM_COMMAND 0x0020 -#define WM_SYSCOMMAND 0x0021 -#define WM_HELP 0x0022 -#define WM_PAINT 0x0023 -#define WM_TIMER 0x0024 -#define WM_SEM1 0x0025 -#define WM_SEM2 0x0026 -#define WM_SEM3 0x0027 -#define WM_SEM4 0x0028 -#define WM_CLOSE 0x0029 -#define WM_QUIT 0x002a -#define WM_SYSCOLORCHANGE 0x002b -#define WM_SYSVALUECHANGED 0x002d -#define WM_APPTERMINATENOTIFY 0x002e -#define WM_PRESPARAMCHANGED 0x002f -#define WM_CONTROL 0x0030 -#define WM_VSCROLL 0x0031 -#define WM_HSCROLL 0x0032 -#define WM_INITMENU 0x0033 -#define WM_MENUSELECT 0x0034 -#define WM_MENUEND 0x0035 -#define WM_DRAWITEM 0x0036 -#define WM_MEASUREITEM 0x0037 -#define WM_CONTROLPOINTER 0x0038 -#define WM_QUERYDLGCODE 0x003a -#define WM_INITDLG 0x003b -#define WM_SUBSTITUTESTRING 0x003c -#define WM_MATCHMNEMONIC 0x003d -#define WM_SAVEAPPLICATION 0x003e -#define WM_HELPBASE 0x0f00 -#define WM_HELPTOP 0x0fff -#define WM_USER 0x1000 -#define CMDSRC_OTHER 0 -#define CMDSRC_PUSHBUTTON 1 -#define CMDSRC_MENU 2 -#define CMDSRC_ACCELERATOR 3 -#define CMDSRC_FONTDLG 4 -#define CMDSRC_FILEDLG 5 -#define CMDSRC_PRINTDLG 6 -#define CMDSRC_COLORDLG 7 -#define PM_NOREMOVE 0x0000 -#define PM_REMOVE 0x0001 -#define RUM_IN 1 -#define RUM_OUT 2 -#define RUM_INOUT 3 -#define SMD_DELAYED 0x0001 -#define SMD_IMMEDIATE 0x0002 -#define SSM_SYNCHRONOUS 0x0001 -#define SSM_ASYNCHRONOUS 0x0002 -#define SSM_MIXED 0x0003 -#define WLI_NOBUTTONUP 0x0002 -#define DTYP_USER 16384 -#define DTYP_CTL_ARRAY 1 -#define DTYP_CTL_PARRAY (-1) -#define DTYP_CTL_OFFSET 2 -#define DTYP_CTL_LENGTH 3 -#define DTYP_ACCEL 28 -#define DTYP_ACCELTABLE 29 -#define DTYP_ARCPARAMS 38 -#define DTYP_AREABUNDLE 139 -#define DTYP_ATOM 90 -#define DTYP_BITMAPINFO 60 -#define DTYP_BITMAPINFOHEADER 61 -#define DTYP_BITMAPINFO2 170 -#define DTYP_BITMAPINFOHEADER2 171 -#define DTYP_BIT16 20 -#define DTYP_BIT32 21 -#define DTYP_BIT8 19 -#define DTYP_BOOL 18 -#define DTYP_BTNCDATA 35 -#define DTYP_BYTE 13 -#define DTYP_CATCHBUF 141 -#define DTYP_CHAR 15 -#define DTYP_CHARBUNDLE 135 -#define DTYP_CLASSINFO 95 -#define DTYP_COUNT2 93 -#define DTYP_COUNT2B 70 -#define DTYP_COUNT2CH 82 -#define DTYP_COUNT4 152 -#define DTYP_COUNT4B 42 -#define DTYP_CPID 57 -#define DTYP_CREATESTRUCT 98 -#define DTYP_CURSORINFO 34 -#define DTYP_DEVOPENSTRUC 124 -#define DTYP_DLGTEMPLATE 96 -#define DTYP_DLGTITEM 97 -#define DTYP_ENTRYFDATA 127 -#define DTYP_ERRORID 45 -#define DTYP_FATTRS 75 -#define DTYP_FFDESCS 142 -#define DTYP_FIXED 99 -#define DTYP_FONTMETRICS 74 -#define DTYP_FRAMECDATA 144 -#define DTYP_GRADIENTL 48 -#define DTYP_HAB 10 -#define DTYP_HACCEL 30 -#define DTYP_HAPP 146 -#define DTYP_HATOMTBL 91 -#define DTYP_HBITMAP 62 -#define DTYP_HCINFO 46 -#define DTYP_HDC 132 -#define DTYP_HENUM 117 -#define DTYP_HHEAP 109 -#define DTYP_HINI 53 -#define DTYP_HLIB 147 -#define DTYP_HMF 85 -#define DTYP_HMQ 86 -#define DTYP_HPOINTER 106 -#define DTYP_HPROGRAM 131 -#define DTYP_HPS 12 -#define DTYP_HRGN 116 -#define DTYP_HSEM 140 -#define DTYP_HSPL 32 -#define DTYP_HSWITCH 66 -#define DTYP_HVPS 58 -#define DTYP_HWND 11 -#define DTYP_IDENTITY 133 -#define DTYP_IDENTITY4 169 -#define DTYP_IMAGEBUNDLE 136 -#define DTYP_INDEX2 81 -#define DTYP_IPT 155 -#define DTYP_KERNINGPAIRS 118 -#define DTYP_LENGTH2 68 -#define DTYP_LENGTH4 69 -#define DTYP_LINEBUNDLE 137 -#define DTYP_LONG 25 -#define DTYP_MARKERBUNDLE 138 -#define DTYP_MATRIXLF 113 -#define DTYP_MLECTLDATA 161 -#define DTYP_MLEMARGSTRUCT 157 -#define DTYP_MLEOVERFLOW 158 -#define DTYP_OFFSET2B 112 -#define DTYP_OWNERITEM 154 -#define DTYP_PID 92 -#define DTYP_PIX 156 -#define DTYP_POINTERINFO 105 -#define DTYP_POINTL 77 -#define DTYP_PROGCATEGORY 129 -#define DTYP_PROGRAMENTRY 128 -#define DTYP_PROGTYPE 130 -#define DTYP_PROPERTY2 88 -#define DTYP_PROPERTY4 89 -#define DTYP_QMSG 87 -#define DTYP_RECTL 121 -#define DTYP_RESID 125 -#define DTYP_RGB 111 -#define DTYP_RGNRECT 115 -#define DTYP_SBCDATA 159 -#define DTYP_SEGOFF 126 -#define DTYP_SHORT 23 -#define DTYP_SIZEF 101 -#define DTYP_SIZEL 102 -#define DTYP_STRL 17 -#define DTYP_STR16 40 -#define DTYP_STR32 37 -#define DTYP_STR64 47 -#define DTYP_STR8 33 -#define DTYP_SWBLOCK 63 -#define DTYP_SWCNTRL 64 -#define DTYP_SWENTRY 65 -#define DTYP_SWP 31 -#define DTYP_TID 104 -#define DTYP_TIME 107 -#define DTYP_TRACKINFO 73 -#define DTYP_UCHAR 22 -#define DTYP_ULONG 26 -#define DTYP_USERBUTTON 36 -#define DTYP_USHORT 24 -#define DTYP_WIDTH4 108 -#define DTYP_WNDPARAMS 83 -#define DTYP_WNDPROC 84 -#define DTYP_WPOINT 59 -#define DTYP_WRECT 55 -#define DTYP_XYWINSIZE 52 -#define DTYP_PACCEL (-28) -#define DTYP_PACCELTABLE (-29) -#define DTYP_PARCPARAMS (-38) -#define DTYP_PAREABUNDLE (-139) -#define DTYP_PATOM (-90) -#define DTYP_PBITMAPINFO (-60) -#define DTYP_PBITMAPINFOHEADER (-61) -#define DTYP_PBITMAPINFO2 (-170) -#define DTYP_PBITMAPINFOHEADER2 (-171) -#define DTYP_PBIT16 (-20) -#define DTYP_PBIT32 (-21) -#define DTYP_PBIT8 (-19) -#define DTYP_PBOOL (-18) -#define DTYP_PBTNCDATA (-35) -#define DTYP_PBYTE (-13) -#define DTYP_PCATCHBUF (-141) -#define DTYP_PCHAR (-15) -#define DTYP_PCHARBUNDLE (-135) -#define DTYP_PCLASSINFO (-95) -#define DTYP_PCOUNT2 (-93) -#define DTYP_PCOUNT2B (-70) -#define DTYP_PCOUNT2CH (-82) -#define DTYP_PCOUNT4 (-152) -#define DTYP_PCOUNT4B (-42) -#define DTYP_PCPID (-57) -#define DTYP_PCREATESTRUCT (-98) -#define DTYP_PCURSORINFO (-34) -#define DTYP_PDEVOPENSTRUC (-124) -#define DTYP_PDLGTEMPLATE (-96) -#define DTYP_PDLGTITEM (-97) -#define DTYP_PENTRYFDATA (-127) -#define DTYP_PERRORID (-45) -#define DTYP_PFATTRS (-75) -#define DTYP_PFFDESCS (-142) -#define DTYP_PFIXED (-99) -#define DTYP_PFONTMETRICS (-74) -#define DTYP_PFRAMECDATA (-144) -#define DTYP_PGRADIENTL (-48) -#define DTYP_PHAB (-10) -#define DTYP_PHACCEL (-30) -#define DTYP_PHAPP (-146) -#define DTYP_PHATOMTBL (-91) -#define DTYP_PHBITMAP (-62) -#define DTYP_PHCINFO (-46) -#define DTYP_PHDC (-132) -#define DTYP_PHENUM (-117) -#define DTYP_PHHEAP (-109) -#define DTYP_PHINI (-53) -#define DTYP_PHLIB (-147) -#define DTYP_PHMF (-85) -#define DTYP_PHMQ (-86) -#define DTYP_PHPOINTER (-106) -#define DTYP_PHPROGRAM (-131) -#define DTYP_PHPS (-12) -#define DTYP_PHRGN (-116) -#define DTYP_PHSEM (-140) -#define DTYP_PHSPL (-32) -#define DTYP_PHSWITCH (-66) -#define DTYP_PHVPS (-58) -#define DTYP_PHWND (-11) -#define DTYP_PIDENTITY (-133) -#define DTYP_PIDENTITY4 (-169) -#define DTYP_PIMAGEBUNDLE (-136) -#define DTYP_PINDEX2 (-81) -#define DTYP_PIPT (-155) -#define DTYP_PKERNINGPAIRS (-118) -#define DTYP_PLENGTH2 (-68) -#define DTYP_PLENGTH4 (-69) -#define DTYP_PLINEBUNDLE (-137) -#define DTYP_PLONG (-25) -#define DTYP_PMARKERBUNDLE (-138) -#define DTYP_PMATRIXLF (-113) -#define DTYP_PMLECTLDATA (-161) -#define DTYP_PMLEMARGSTRUCT (-157) -#define DTYP_PMLEOVERFLOW (-158) -#define DTYP_POFFSET2B (-112) -#define DTYP_POWNERITEM (-154) -#define DTYP_PPID (-92) -#define DTYP_PPIX (-156) -#define DTYP_PPOINTERINFO (-105) -#define DTYP_PPOINTL (-77) -#define DTYP_PPROGCATEGORY (-129) -#define DTYP_PPROGRAMENTRY (-128) -#define DTYP_PPROGTYPE (-130) -#define DTYP_PPROPERTY2 (-88) -#define DTYP_PPROPERTY4 (-89) -#define DTYP_PQMSG (-87) -#define DTYP_PRECTL (-121) -#define DTYP_PRESID (-125) -#define DTYP_PRGB (-111) -#define DTYP_PRGNRECT (-115) -#define DTYP_PSBCDATA (-159) -#define DTYP_PSEGOFF (-126) -#define DTYP_PSHORT (-23) -#define DTYP_PSIZEF (-101) -#define DTYP_PSIZEL (-102) -#define DTYP_PSTRL (-17) -#define DTYP_PSTR16 (-40) -#define DTYP_PSTR32 (-37) -#define DTYP_PSTR64 (-47) -#define DTYP_PSTR8 (-33) -#define DTYP_PSWBLOCK (-63) -#define DTYP_PSWCNTRL (-64) -#define DTYP_PSWENTRY (-65) -#define DTYP_PSWP (-31) -#define DTYP_PTID (-104) -#define DTYP_PTIME (-107) -#define DTYP_PTRACKINFO (-73) -#define DTYP_PUCHAR (-22) -#define DTYP_PULONG (-26) -#define DTYP_PUSERBUTTON (-36) -#define DTYP_PUSHORT (-24) -#define DTYP_PWIDTH4 (-108) -#define DTYP_PWNDPARAMS (-83) -#define DTYP_PWNDPROC (-84) -#define DTYP_PWPOINT (-59) -#define DTYP_PWRECT (-55) -#define DTYP_PXYWINSIZE (-52) -#define COMMANDMSG(pmsg) ((PCMDMSG)((PBYTE)pmsg + sizeof (ULONG))) -#define MPVOID ((MPARAM)0) -#define MPFROMP(x) ((MPARAM)((ULONG)(x))) -#define MPFROMHWND(x) ((MPARAM)(HWND)(x)) -#define MPFROMCHAR(x) ((MPARAM)(ULONG)(USHORT)(x)) -#define MPFROMSHORT(x) ((MPARAM)(ULONG)(USHORT)(x)) -#define MPFROM2SHORT(x1,x2) ((MPARAM)MAKELONG (x1, x2)) -#define MPFROMSH2CH(s,c1,c2) ((MPARAM)MAKELONG (s, MAKESHORT (c1, c2))) -#define MPFROMLONG(x) ((MPARAM)(ULONG)(x)) -#define PVOIDFROMMP(mp) ((PVOID)(mp)) -#define HWNDFROMMP(mp) ((HWND)(mp)) -#define CHAR1FROMMP(mp) ((UCHAR)(ULONG)(mp)) -#define CHAR2FROMMP(mp) ((UCHAR)((ULONG)mp >> 8)) -#define CHAR3FROMMP(mp) ((UCHAR)((ULONG)mp >> 16)) -#define CHAR4FROMMP(mp) ((UCHAR)((ULONG)mp >> 24)) -#define SHORT1FROMMP(mp) ((USHORT)(ULONG)(mp)) -#define SHORT2FROMMP(mp) ((USHORT)((ULONG)mp >> 16)) -#define LONGFROMMP(mp) ((ULONG)(mp)) -#define MRFROMP(x) ((MRESULT)(PVOID)(x)) -#define MRFROMSHORT(x) ((MRESULT)(ULONG)(USHORT)(x)) -#define MRFROM2SHORT(x1,x2) ((MRESULT)MAKELONG (x1, x2)) -#define MRFROMLONG(x) ((MRESULT)(ULONG)(x)) -#define PVOIDFROMMR(mr) ((VOID *)(mr)) -#define SHORT1FROMMR(mr) ((USHORT)((ULONG)mr)) -#define SHORT2FROMMR(mr) ((USHORT)((ULONG)mr >> 16)) -#define LONGFROMMR(mr) ((ULONG)(mr)) -#define FCF_TITLEBAR 0x00000001 -#define FCF_SYSMENU 0x00000002 -#define FCF_MENU 0x00000004 -#define FCF_SIZEBORDER 0x00000008 -#define FCF_MINBUTTON 0x00000010 -#define FCF_MAXBUTTON 0x00000020 -#define FCF_MINMAX (FCF_MINBUTTON + FCF_MAXBUTTON) -#define FCF_VERTSCROLL 0x00000040 -#define FCF_HORZSCROLL 0x00000080 -#define FCF_DLGBORDER 0x00000100 -#define FCF_BORDER 0x00000200 -#define FCF_SHELLPOSITION 0x00000400 -#define FCF_TASKLIST 0x00000800 -#define FCF_NOBYTEALIGN 0x00001000 -#define FCF_NOMOVEWITHOWNER 0x00002000 -#define FCF_ICON 0x00004000 -#define FCF_ACCELTABLE 0x00008000 -#define FCF_SYSMODAL 0x00010000 -#define FCF_SCREENALIGN 0x00020000 -#define FCF_MOUSEALIGN 0x00040000 -#define FCF_PALETTE_NORMAL 0x00080000 -#define FCF_PALETTE_HELP 0x00100000 -#define FCF_PALETTE_POPUPODD 0x00200000 -#define FCF_PALETTE_POPUPEVEN 0x00400000 -#define FCF_HIDEBUTTON 0x01000000 -#define FCF_HIDEMAX 0x01000020 -#define FCF_AUTOICON 0x40000000 -#define FCF_DBE_APPSTAT 0x80000000 -#define FCF_STANDARD 0x0000cc3f -#define FF_FLASHWINDOW 0x0001 -#define FF_ACTIVE 0x0002 -#define FF_FLASHHILITE 0x0004 -#define FF_OWNERHIDDEN 0x0008 -#define FF_DLGDISMISSED 0x0010 -#define FF_OWNERDISABLED 0x0020 -#define FF_SELECTED 0x0040 -#define FF_NOACTIVATESWP 0x0080 -#define FF_DIALOGBOX 0x0100 -#define FS_ICON 0x00000001 -#define FS_ACCELTABLE 0x00000002 -#define FS_SHELLPOSITION 0x00000004 -#define FS_TASKLIST 0x00000008 -#define FS_NOBYTEALIGN 0x00000010 -#define FS_NOMOVEWITHOWNER 0x00000020 -#define FS_SYSMODAL 0x00000040 -#define FS_DLGBORDER 0x00000080 -#define FS_BORDER 0x00000100 -#define FS_SCREENALIGN 0x00000200 -#define FS_MOUSEALIGN 0x00000400 -#define FS_SIZEBORDER 0x00000800 -#define FS_AUTOICON 0x00001000 -#define FS_DBE_APPSTAT 0x00008000 -#define FS_STANDARD 0x0000000f -#define WM_FLASHWINDOW 0x0040 -#define WM_FORMATFRAME 0x0041 -#define WM_UPDATEFRAME 0x0042 -#define WM_FOCUSCHANGE 0x0043 -#define WM_SETBORDERSIZE 0x0044 -#define WM_TRACKFRAME 0x0045 -#define WM_MINMAXFRAME 0x0046 -#define WM_SETICON 0x0047 -#define WM_QUERYICON 0x0048 -#define WM_SETACCELTABLE 0x0049 -#define WM_QUERYACCELTABLE 0x004a -#define WM_TRANSLATEACCEL 0x004b -#define WM_QUERYTRACKINFO 0x004c -#define WM_QUERYBORDERSIZE 0x004d -#define WM_NEXTMENU 0x004e -#define WM_ERASEBACKGROUND 0x004f -#define WM_QUERYFRAMEINFO 0x0050 -#define WM_QUERYFOCUSCHAIN 0x0051 -#define WM_OWNERPOSCHANGE 0x0052 -#define WM_CALCFRAMERECT 0x0053 -#define WM_WINDOWPOSCHANGED 0x0055 -#define WM_ADJUSTFRAMEPOS 0x0056 -#define WM_QUERYFRAMECTLCOUNT 0x0059 -#define WM_QUERYHELPINFO 0x005b -#define WM_SETHELPINFO 0x005c -#define WM_ERROR 0x005d -#define WM_REALIZEPALETTE 0x005e -#define FI_FRAME 0x00000001 -#define FI_OWNERHIDE 0x00000002 -#define FI_ACTIVATEOK 0x00000004 -#define FI_NOMOVEWITHOWNER 0x00000008 -#define FID_SYSMENU 0x8002 -#define FID_TITLEBAR 0x8003 -#define FID_MINMAX 0x8004 -#define FID_MENU 0x8005 -#define FID_VERTSCROLL 0x8006 -#define FID_HORZSCROLL 0x8007 -#define FID_CLIENT 0x8008 -#define FID_DBE_APPSTAT 0x8010 -#define FID_DBE_KBDSTAT 0x8011 -#define FID_DBE_PECIC 0x8012 -#define FID_DBE_KKPOPUP 0x8013 -#define SC_SIZE 0x8000 -#define SC_MOVE 0x8001 -#define SC_MINIMIZE 0x8002 -#define SC_MAXIMIZE 0x8003 -#define SC_CLOSE 0x8004 -#define SC_NEXT 0x8005 -#define SC_APPMENU 0x8006 -#define SC_SYSMENU 0x8007 -#define SC_RESTORE 0x8008 -#define SC_NEXTFRAME 0x8009 -#define SC_NEXTWINDOW 0x8010 -#define SC_TASKMANAGER 0x8011 -#define SC_HELPKEYS 0x8012 -#define SC_HELPINDEX 0x8013 -#define SC_HELPEXTENDED 0x8014 -#define SC_SWITCHPANELIDS 0x8015 -#define SC_DBE_FIRST 0x8018 -#define SC_DBE_LAST 0x801f -#define SC_BEGINDRAG 0x8020 -#define SC_ENDDRAG 0x8021 -#define SC_SELECT 0x8022 -#define SC_OPEN 0x8023 -#define SC_CONTEXTMENU 0x8024 -#define SC_CONTEXTHELP 0x8025 -#define SC_TEXTEDIT 0x8026 -#define SC_BEGINSELECT 0x8027 -#define SC_ENDSELECT 0x8028 -#define SC_WINDOW 0x8029 -#define SC_HIDE 0x802a -#define PSF_LOCKWINDOWUPDATE 0x0001 -#define PSF_CLIPUPWARDS 0x0002 -#define PSF_CLIPDOWNWARDS 0x0004 -#define PSF_CLIPSIBLINGS 0x0008 -#define PSF_CLIPCHILDREN 0x0010 -#define PSF_PARENTCLIP 0x0020 -#define QV_OS2 0x0000 -#define QV_CMS 0x0001 -#define QV_TSO 0x0002 -#define QV_TSOBATCH 0x0003 -#define QV_OS400 0x0004 -#define SW_SCROLLCHILDREN 0x0001 -#define SW_INVALIDATERGN 0x0002 -#define WM_QUERYCONVERTPOS 0x00b0 -#define QCP_CONVERT 0x0001 -#define QCP_NOCONVERT 0x0000 -#define QWS_USER 0 -#define QWS_ID (-1) -#define QWS_MIN (-1) -#define QWL_USER 0 -#define QWL_STYLE (-2) -#define QWP_PFNWP (-3) -#define QWL_HMQ (-4) -#define QWL_RESERVED (-5) -#define QWL_PENDATA (-7) -#define QWL_BD_ATTR (-9) -#define QWL_BD_STAT (-10) -#define QWL_KBDLAYER (-11) -#define QWL_MIN (-11) -#define QWL_HHEAP 0x0004 -#define QWL_HWNDFOCUSSAVE 0x0018 -#define QWL_DEFBUTTON 0x0040 -#define QWL_PSSCBLK 0x0048 -#define QWL_PFEPBLK 0x004c -#define QWL_PSTATBLK 0x0050 -#define QWS_FLAGS 0x0008 -#define QWS_RESULT 0x000a -#define QWS_XRESTORE 0x000c -#define QWS_YRESTORE 0x000e -#define QWS_CXRESTORE 0x0010 -#define QWS_CYRESTORE 0x0012 -#define QWS_XMINIMIZE 0x0014 -#define QWS_YMINIMIZE 0x0016 -#define AF_CHAR 0x0001 -#define AF_VIRTUALKEY 0x0002 -#define AF_SCANCODE 0x0004 -#define AF_SHIFT 0x0008 -#define AF_CONTROL 0x0010 -#define AF_ALT 0x0020 -#define AF_LONEKEY 0x0040 -#define AF_SYSCOMMAND 0x0100 -#define AF_HELP 0x0200 -#define MAKEINTATOM(x) ((PCH)MAKEULONG (x, 0xffff)) -#define BDS_HILITED 0x0100 -#define BDS_DISABLED 0x0200 -#define BDS_DEFAULT 0x0400 -#define BM_CLICK 0x0120 -#define BM_QUERYCHECKINDEX 0x0121 -#define BM_QUERYHILITE 0x0122 -#define BM_SETHILITE 0x0123 -#define BM_QUERYCHECK 0x0124 -#define BM_SETCHECK 0x0125 -#define BM_SETDEFAULT 0x0126 -#define BN_CLICKED 1 -#define BN_DBLCLICKED 2 -#define BN_PAINT 3 -#define BS_PUSHBUTTON 0 -#define BS_CHECKBOX 1 -#define BS_AUTOCHECKBOX 2 -#define BS_RADIOBUTTON 3 -#define BS_AUTORADIOBUTTON 4 -#define BS_3STATE 5 -#define BS_AUTO3STATE 6 -#define BS_USERBUTTON 7 -#define BS_PRIMARYSTYLES 0x000f -#define BS_TEXT 0x0010 -#define BS_MINIICON 0x0020 -#define BS_BITMAP 0x0040 -#define BS_ICON 0x0080 -#define BS_HELP 0x0100 -#define BS_SYSCOMMAND 0x0200 -#define BS_DEFAULT 0x0400 -#define BS_NOPOINTERFOCUS 0x0800 -#define BS_NOBORDER 0x1000 -#define BS_NOCURSORSELECT 0x2000 -#define BS_AUTOSIZE 0x4000 -#define WM_RENDERFMT 0x0060 -#define WM_RENDERALLFMTS 0x0061 -#define WM_DESTROYCLIPBOARD 0x0062 -#define WM_PAINTCLIPBOARD 0x0063 -#define WM_SIZECLIPBOARD 0x0064 -#define WM_HSCROLLCLIPBOARD 0x0065 -#define WM_VSCROLLCLIPBOARD 0x0066 -#define WM_DRAWCLIPBOARD 0x0067 -#define CF_TEXT 1 -#define CF_BITMAP 2 -#define CF_DSPTEXT 3 -#define CF_DSPBITMAP 4 -#define CF_METAFILE 5 -#define CF_DSPMETAFILE 6 -#define CF_PALETTE 9 -#define CF_MMPMFIRST 10 -#define CF_MMPMLAST 19 -#define SZFMT_TEXT "#1" -#define SZFMT_BITMAP "#2" -#define SZFMT_DSPTEXT "#3" -#define SZFMT_DSPBITMAP "#4" -#define SZFMT_METAFILE "#5" -#define SZFMT_DSPMETAFILE "#6" -#define SZFMT_PALETTE "#9" -#define SZFMT_SYLK "Sylk" -#define SZFMT_DIF "Dif" -#define SZFMT_TIFF "Tiff" -#define SZFMT_OEMTEXT "OemText" -#define SZFMT_DIB "Dib" -#define SZFMT_OWNERDISPLAY "OwnerDisplay" -#define SZFMT_LINK "Link" -#define SZFMT_METAFILEPICT "MetaFilePict" -#define SZFMT_DSPMETAFILEPICT "DspMetaFilePict" -#define SZFMT_CPTEXT "Codepage Text" -#define CFI_OWNERFREE 0x0001 -#define CFI_OWNERDISPLAY 0x0002 -#define CFI_HANDLE 0x0200 -#define CFI_POINTER 0x0400 -#define WM_DDE_FIRST 0x00a0 -#define WM_DDE_INITIATE 0x00a0 -#define WM_DDE_REQUEST 0x00a1 -#define WM_DDE_ACK 0x00a2 -#define WM_DDE_DATA 0x00a3 -#define WM_DDE_ADVISE 0x00a4 -#define WM_DDE_UNADVISE 0x00a5 -#define WM_DDE_POKE 0x00a6 -#define WM_DDE_EXECUTE 0x00a7 -#define WM_DDE_TERMINATE 0x00a8 -#define WM_DDE_INITIATEACK 0x00a9 -#define WM_DDE_LAST 0x00af -#define DDE_FACK 0x0001 -#define DDE_FBUSY 0x0002 -#define DDE_FNODATA 0x0004 -#define DDE_FACKREQ 0x0008 -#define DDE_FRESPONSE 0x0010 -#define DDE_NOTPROCESSED 0x0020 -#define DDE_FRESERVED 0x00c0 -#define DDE_FAPPSTATUS 0xff00 -#define DDECTXT_CASESENSITIVE 0x0001 -#define DDEFMT_TEXT 0x0001 -#define DDEPM_RETRY 0x0001 -#define DDEPM_NOFREE 0x0002 -#define SZDDESYS_TOPIC "System" -#define SZDDESYS_ITEM_TOPICS "Topics" -#define SZDDESYS_ITEM_SYSITEMS "SysItems" -#define SZDDESYS_ITEM_RTNMSG "ReturnMessage" -#define SZDDESYS_ITEM_STATUS "Status" -#define SZDDESYS_ITEM_FORMATS "Formats" -#define SZDDESYS_ITEM_SECURITY "Security" -#define SZDDESYS_ITEM_ITEMFORMATS "ItemFormats" -#define SZDDESYS_ITEM_HELP "Help" -#define SZDDESYS_ITEM_PROTOCOLS "Protocols" -#define SZDDESYS_ITEM_RESTART "Restart" -#define DDES_PSZITEMNAME(pddes) \ -#define DDES_PABDATA(pddes) \ -#define DDEI_PCONVCONTEXT(pddei) \ -#define WCS_ERROR 0 -#define WCS_EQ 1 -#define WCS_LT 2 -#define WCS_GT 3 -#define CURSOR_SOLID 0x0000 -#define CURSOR_HALFTONE 0x0001 -#define CURSOR_FRAME 0x0002 -#define CURSOR_FLASH 0x0004 -#define CURSOR_BIDI_FIRST 0x0100 -#define CURSOR_BIDI_LAST 0x0200 -#define CURSOR_SETPOS 0x8000 -#define SDT_DESTROY 0x0001 -#define SDT_NOBKGND 0x0002 -#define SDT_TILE 0x0004 -#define SDT_SCALE 0x0008 -#define SDT_PATTERN 0x0010 -#define SDT_CENTER 0x0020 -#define SDT_RETAIN 0x0040 -#define SDT_LOADFILE 0x0080 -#define DID_OK 1 -#define DID_CANCEL 2 -#define DID_ERROR 0xffff -#define MB_OK 0x0000 -#define MB_OKCANCEL 0x0001 -#define MB_RETRYCANCEL 0x0002 -#define MB_ABORTRETRYIGNORE 0x0003 -#define MB_YESNO 0x0004 -#define MB_YESNOCANCEL 0x0005 -#define MB_CANCEL 0x0006 -#define MB_ENTER 0x0007 -#define MB_ENTERCANCEL 0x0008 -#define MB_NOICON 0x0000 -#define MB_CUANOTIFICATION 0x0000 -#define MB_ICONQUESTION 0x0010 -#define MB_ICONEXCLAMATION 0x0020 -#define MB_CUAWARNING 0x0020 -#define MB_ICONASTERISK 0x0030 -#define MB_ICONHAND 0x0040 -#define MB_CUACRITICAL 0x0040 -#define MB_QUERY MB_ICONQUESTION -#define MB_WARNING MB_CUAWARNING -#define MB_INFORMATION MB_ICONASTERISK -#define MB_CRITICAL MB_CUACRITICAL -#define MB_ERROR MB_CRITICAL -#define MB_CUSTOMICON 0x0080 -#define MB_DEFBUTTON1 0x0000 -#define MB_DEFBUTTON2 0x0100 -#define MB_DEFBUTTON3 0x0200 -#define MB_APPLMODAL 0x0000 -#define MB_SYSTEMMODAL 0x1000 -#define MB_HELP 0x2000 -#define MB_MOVEABLE 0x4000 -#define MB_NONMODAL 0x8000 -#define MBID_OK 1 -#define MBID_CANCEL 2 -#define MBID_ABORT 3 -#define MBID_RETRY 4 -#define MBID_IGNORE 5 -#define MBID_YES 6 -#define MBID_NO 7 -#define MBID_HELP 8 -#define MBID_ENTER 9 -#define MBID_ERROR 0xffff -#define WA_WARNING 0 -#define WA_NOTE 1 -#define WA_ERROR 2 -#define WA_CDEFALARMS 3 -#define WA_WINDOWOPEN 3 -#define WA_WINDOWCLOSE 4 -#define WA_BEGINDRAG 5 -#define WA_ENDDRAG 6 -#define WA_STARTUP 7 -#define WA_SHUTDOWN 8 -#define WA_SHRED 9 -#define WA_CWINALARMS 13 -#define MAX_MBDTEXT 70 -#define WinCheckButton(hwndDlg,id,usCheckState) \ -#define WinEnableControl(hwndDlg,id,fEnable) \ -#define WinIsControlEnabled(hwndDlg,id) \ -#define WinQueryButtonCheckstate(hwndDlg,id) \ -#define DLGC_ENTRYFIELD 0x0001 -#define DLGC_BUTTON 0x0002 -#define DLGC_RADIOBUTTON 0x0004 -#define DLGC_STATIC 0x0008 -#define DLGC_DEFAULT 0x0010 -#define DLGC_PUSHBUTTON 0x0020 -#define DLGC_CHECKBOX 0x0040 -#define DLGC_SCROLLBAR 0x0080 -#define DLGC_MENU 0x0100 -#define DLGC_TABONCLICK 0x0200 -#define DLGC_MLE 0x0400 -#define EDI_FIRSTTABITEM 0 -#define EDI_LASTTABITEM 1 -#define EDI_NEXTTABITEM 2 -#define EDI_PREVTABITEM 3 -#define EDI_FIRSTGROUPITEM 4 -#define EDI_LASTGROUPITEM 5 -#define EDI_NEXTGROUPITEM 6 -#define EDI_PREVGROUPITEM 7 -#define CBID_LIST 0x029a -#define CBID_EDIT 0x029b -#define CBM_SHOWLIST 0x0170 -#define CBM_HILITE 0x0171 -#define CBM_ISLISTSHOWING 0x0172 -#define CBN_EFCHANGE 1 -#define CBN_EFSCROLL 2 -#define CBN_MEMERROR 3 -#define CBN_LBSELECT 4 -#define CBN_LBSCROLL 5 -#define CBN_SHOWLIST 6 -#define CBN_ENTER 7 -#define CBS_SIMPLE 0x0001 -#define CBS_DROPDOWN 0x0002 -#define CBS_DROPDOWNLIST 0x0004 -#define CBS_COMPATIBLE 0x0008 -#define EM_QUERYCHANGED 0x0140 -#define EM_QUERYSEL 0x0141 -#define EM_SETSEL 0x0142 -#define EM_SETTEXTLIMIT 0x0143 -#define EM_CUT 0x0144 -#define EM_COPY 0x0145 -#define EM_CLEAR 0x0146 -#define EM_PASTE 0x0147 -#define EM_QUERYFIRSTCHAR 0x0148 -#define EM_SETFIRSTCHAR 0x0149 -#define EM_QUERYREADONLY 0x014a -#define EM_SETREADONLY 0x014b -#define EM_SETINSERTMODE 0x014c -#define EN_SETFOCUS 0x0001 -#define EN_KILLFOCUS 0x0002 -#define EN_CHANGE 0x0004 -#define EN_SCROLL 0x0008 -#define EN_MEMERROR 0x0010 -#define EN_OVERFLOW 0x0020 -#define EN_INSERTMODETOGGLE 0x0040 -#define ES_LEFT 0x0000 -#define ES_CENTER 0x0001 -#define ES_RIGHT 0x0002 -#define ES_AUTOSCROLL 0x0004 -#define ES_MARGIN 0x0008 -#define ES_AUTOTAB 0x0010 -#define ES_READONLY 0x0020 -#define ES_COMMAND 0x0040 -#define ES_UNREADABLE 0x0080 -#define ES_AUTOSIZE 0x0200 -#define ES_ANY 0x0000 -#define ES_SBCS 0x1000 -#define ES_DBCS 0x2000 -#define ES_MIXED 0x3000 -#define TBM_SETHILITE 0x01e3 -#define TBM_QUERYHILITE 0x01e4 -#define HK_SENDMSG 0 -#define HK_INPUT 1 -#define HK_MSGFILTER 2 -#define HK_JOURNALRECORD 3 -#define HK_JOURNALPLAYBACK 4 -#define HK_HELP 5 -#define HK_LOADER 6 -#define HK_REGISTERUSERMSG 7 -#define HK_MSGCONTROL 8 -#define HK_PLIST_ENTRY 9 -#define HK_PLIST_EXIT 10 -#define HK_FINDWORD 11 -#define HK_CODEPAGECHANGED 12 -#define HK_WINDOWDC 15 -#define HK_DESTROYWINDOW 16 -#define HK_CHECKMSGFILTER 20 -#define HK_MSGINPUT 21 -#define HK_ALARM 22 -#define HK_LOCKUP 23 -#define HK_FLUSHBUF 24 -#define HLPM_FRAME (-1) -#define HLPM_WINDOW (-2) -#define HLPM_MENU (-3) -#define HMQ_CURRENT ((HMQ)1) -#define LHK_DELETEPROC 1 -#define LHK_DELETELIB 2 -#define LHK_LOADPROC 3 -#define LHK_LOADLIB 4 -#define MCHK_MSGINTEREST 1 -#define MCHK_CLASSMSGINTEREST 2 -#define MCHK_SYNCHRONISATION 3 -#define MCHK_MSGMODE 4 -#define MSGF_DIALOGBOX 1 -#define MSGF_MESSAGEBOX 2 -#define MSGF_DDEPOSTMSG 3 -#define MSGF_TRACK 8 -#define PM_MODEL_1X 0 -#define PM_MODEL_2X 1 -#define RUMHK_DATATYPE 1 -#define RUMHK_MSG 2 -#define FC_NOSETFOCUS 0x0001 -#define FC_NOBRINGTOTOP 0x0001 /*!*/ -#define FC_NOLOSEFOCUS 0x0002 -#define FC_NOBRINGTOPFIRSTWINDOW 0x0002 /*!*/ -#define FC_NOSETACTIVE 0x0004 -#define FC_NOLOSEACTIVE 0x0008 -#define FC_NOSETSELECTION 0x0010 -#define FC_NOLOSESELECTION 0x0020 -#define QFC_NEXTINCHAIN 0x0001 -#define QFC_ACTIVE 0x0002 -#define QFC_FRAME 0x0003 -#define QFC_SELECTACTIVE 0x0004 -#define QFC_PARTOFCHAIN 0x0005 -#define WM_MOUSEFIRST 0x0070 -#define WM_MOUSEMOVE 0x0070 -#define WM_BUTTONCLICKFIRST 0x0071 -#define WM_BUTTON1DOWN 0x0071 -#define WM_BUTTON1UP 0x0072 -#define WM_BUTTON1DBLCLK 0x0073 -#define WM_BUTTON2DOWN 0x0074 -#define WM_BUTTON2UP 0x0075 -#define WM_BUTTON2DBLCLK 0x0076 -#define WM_BUTTON3DOWN 0x0077 -#define WM_BUTTON3UP 0x0078 -#define WM_BUTTON3DBLCLK 0x0079 -#define WM_BUTTONCLICKLAST 0x0079 -#define WM_MOUSELAST 0x0079 -#define WM_CHAR 0x007a -#define WM_VIOCHAR 0x007b -#define WM_JOURNALNOTIFY 0x007c -#define WM_MOUSEMAP 0x007d -#define WM_VRNDISABLED 0x007e -#define WM_VRNENABLED 0x007f -#define WM_EXTMOUSEFIRST 0x0410 -#define WM_CHORD 0x0410 -#define WM_BUTTON1MOTIONSTART 0x0411 -#define WM_BUTTON1MOTIONEND 0x0412 -#define WM_BUTTON1CLICK 0x0413 -#define WM_BUTTON2MOTIONSTART 0x0414 -#define WM_BUTTON2MOTIONEND 0x0415 -#define WM_BUTTON2CLICK 0x0416 -#define WM_BUTTON3MOTIONSTART 0x0417 -#define WM_BUTTON3MOTIONEND 0x0418 -#define WM_BUTTON3CLICK 0x0419 -#define WM_EXTMOUSELAST 0x0419 -#define WM_MOUSETRANSLATEFIRST 0x0420 -#define WM_BEGINDRAG 0x0420 -#define WM_ENDDRAG 0x0421 -#define WM_SINGLESELECT 0x0422 -#define WM_OPEN 0x0423 -#define WM_CONTEXTMENU 0x0424 -#define WM_CONTEXTHELP 0x0425 -#define WM_TEXTEDIT 0x0426 -#define WM_BEGINSELECT 0x0427 -#define WM_ENDSELECT 0x0428 -#define WM_MOUSETRANSLATELAST 0x0428 -#define WM_PICKUP 0x0429 -#define WM_PENFIRST 0x0481 -#define WM_PENLAST 0x049f -#define WM_MMPMFIRST 0x0500 -#define WM_MMPMLAST 0x05ff -#define WM_BIDI_FIRST 0x0bd0 -#define WM_BIDI_LAST 0x0bff -#define INP_NONE 0x0000 -#define INP_KBD 0x0001 -#define INP_MULT 0x0002 -#define INP_RES2 0x0004 -#define INP_SHIFT 0x0008 -#define INP_CTRL 0x0010 -#define INP_ALT 0x0020 -#define INP_RES3 0x0040 -#define INP_RES4 0x0080 -#define INP_IGNORE 0xffff -#define JRN_QUEUESTATUS 0x0001 -#define JRN_PHYSKEYSTATE 0x0002 -#define KC_NONE 0x0000 -#define KC_CHAR 0x0001 -#define KC_VIRTUALKEY 0x0002 -#define KC_SCANCODE 0x0004 -#define KC_SHIFT 0x0008 -#define KC_CTRL 0x0010 -#define KC_ALT 0x0020 -#define KC_KEYUP 0x0040 -#define KC_PREVDOWN 0x0080 -#define KC_LONEKEY 0x0100 -#define KC_DEADKEY 0x0200 -#define KC_COMPOSITE 0x0400 -#define KC_INVALIDCOMP 0x0800 -#define KC_TOGGLE 0x1000 -#define KC_INVALIDCHAR 0x2000 -#define KC_DBCSRSRVD1 0x4000 -#define KC_DBCSRSRVD2 0x8000 -#define VK_BUTTON1 0x0001 -#define VK_BUTTON2 0x0002 -#define VK_BUTTON3 0x0003 -#define VK_BREAK 0x0004 -#define VK_BACKSPACE 0x0005 -#define VK_TAB 0x0006 -#define VK_BACKTAB 0x0007 -#define VK_NEWLINE 0x0008 -#define VK_SHIFT 0x0009 -#define VK_CTRL 0x000a -#define VK_ALT 0x000b -#define VK_ALTGRAF 0x000c -#define VK_PAUSE 0x000d -#define VK_CAPSLOCK 0x000e -#define VK_ESC 0x000f -#define VK_SPACE 0x0010 -#define VK_PAGEUP 0x0011 -#define VK_PAGEDOWN 0x0012 -#define VK_END 0x0013 -#define VK_HOME 0x0014 -#define VK_LEFT 0x0015 -#define VK_UP 0x0016 -#define VK_RIGHT 0x0017 -#define VK_DOWN 0x0018 -#define VK_PRINTSCRN 0x0019 -#define VK_INSERT 0x001a -#define VK_DELETE 0x001b -#define VK_SCRLLOCK 0x001c -#define VK_NUMLOCK 0x001d -#define VK_ENTER 0x001e -#define VK_SYSRQ 0x001f -#define VK_F1 0x0020 -#define VK_F2 0x0021 -#define VK_F3 0x0022 -#define VK_F4 0x0023 -#define VK_F5 0x0024 -#define VK_F6 0x0025 -#define VK_F7 0x0026 -#define VK_F8 0x0027 -#define VK_F9 0x0028 -#define VK_F10 0x0029 -#define VK_F11 0x002a -#define VK_F12 0x002b -#define VK_F13 0x002c -#define VK_F14 0x002d -#define VK_F15 0x002e -#define VK_F16 0x002f -#define VK_F17 0x0030 -#define VK_F18 0x0031 -#define VK_F19 0x0032 -#define VK_F20 0x0033 -#define VK_F21 0x0034 -#define VK_F22 0x0035 -#define VK_F23 0x0036 -#define VK_F24 0x0037 -#define VK_ENDDRAG 0x0038 -#define VK_CLEAR 0x0039 -#define VK_EREOF 0x003a -#define VK_PA1 0x003b -#define VK_ATTN 0x003c -#define VK_CRSEL 0x003d -#define VK_EXSEL 0x003e -#define VK_COPY 0x003f -#define VK_BLK1 0x0040 -#define VK_BLK2 0x0041 -#define VK_MENU VK_F10 -#define VK_DBCSFIRST 0x0080 -#define VK_DBCSLAST 0x00ff -#define VK_BIDI_FIRST 0x00e0 -#define VK_BIDI_LAST 0x00ff -#define VK_USERFIRST 0x0100 -#define VK_USERLAST 0x01ff -#define CHARMSG(pmsg) ((PCHRMSG)((PBYTE)pmsg + sizeof (ULONG))) -#define MOUSEMSG(pmsg) ((PMSEMSG)((PBYTE)pmsg + sizeof (ULONG))) -#define LS_MULTIPLESEL 0x0001 -#define LS_OWNERDRAW 0x0002 -#define LS_NOADJUSTPOS 0x0004 -#define LS_HORZSCROLL 0x0008 -#define LS_EXTENDEDSEL 0x0010 -#define LN_SELECT 1 -#define LN_SETFOCUS 2 -#define LN_KILLFOCUS 3 -#define LN_SCROLL 4 -#define LN_ENTER 5 -#define LM_QUERYITEMCOUNT 0x0160 -#define LM_INSERTITEM 0x0161 -#define LM_SETTOPINDEX 0x0162 -#define LM_DELETEITEM 0x0163 -#define LM_SELECTITEM 0x0164 -#define LM_QUERYSELECTION 0x0165 -#define LM_SETITEMTEXT 0x0166 -#define LM_QUERYITEMTEXTLENGTH 0x0167 -#define LM_QUERYITEMTEXT 0x0168 -#define LM_SETITEMHANDLE 0x0169 -#define LM_QUERYITEMHANDLE 0x016a -#define LM_SEARCHSTRING 0x016b -#define LM_SETITEMHEIGHT 0x016c -#define LM_QUERYTOPINDEX 0x016d -#define LM_DELETEALL 0x016e -#define LM_INSERTMULTITEMS 0x016f -#define LM_SETITEMWIDTH 0x0660 /* ? */ -#define LIT_CURSOR (-4) -#define LIT_ERROR (-3) -#define LIT_MEMERROR (-2) -#define LIT_NONE (-1) -#define LIT_FIRST (-1) -#define LIT_END (-1) -#define LIT_SORTASCENDING (-2) -#define LIT_SORTDESCENDING (-3) -#define LSS_SUBSTRING 0x0001 -#define LSS_PREFIX 0x0002 -#define LSS_CASESENSITIVE 0x0004 -#define WinDeleteLboxItem(hwndLbox,index) \ -#define WinInsertLboxItem(hwndLbox,index,psz) \ -#define WinQueryLboxCount(hwndLbox) \ -#define WinQueryLboxItemText(hwndLbox,index,psz,cchMax) \ -#define WinQueryLboxItemTextLength(hwndLbox,index) \ -#define WinQueryLboxSelectedItem(hwndLbox) \ -#define WinSetLboxItemText(hwndLbox,index,psz) \ -#define MIA_NODISMISS 0x0020 -#define MIA_FRAMED 0x1000 -#define MIA_CHECKED 0x2000 -#define MIA_DISABLED 0x4000 -#define MIA_HILITED 0x8000 -#define MIS_TEXT 0x0001 -#define MIS_BITMAP 0x0002 -#define MIS_SEPARATOR 0x0004 -#define MIS_OWNERDRAW 0x0008 -#define MIS_SUBMENU 0x0010 -#define MIS_MULTMENU 0x0020 -#define MIS_SYSCOMMAND 0x0040 -#define MIS_HELP 0x0080 -#define MIS_STATIC 0x0100 -#define MIS_BUTTONSEPARATOR 0x0200 -#define MIS_BREAK 0x0400 -#define MIS_BREAKSEPARATOR 0x0800 -#define MIS_GROUP 0x1000 -#define MIS_SINGLE 0x2000 -#define MIT_END (-1) -#define MIT_NONE (-1) -#define MIT_MEMERROR (-1) -#define MIT_ERROR (-1) -#define MIT_FIRST (-2) -#define MIT_LAST (-3) -#define MM_INSERTITEM 0x0180 -#define MM_DELETEITEM 0x0181 -#define MM_QUERYITEM 0x0182 -#define MM_SETITEM 0x0183 -#define MM_QUERYITEMCOUNT 0x0184 -#define MM_STARTMENUMODE 0x0185 -#define MM_ENDMENUMODE 0x0186 -#define MM_REMOVEITEM 0x0188 -#define MM_SELECTITEM 0x0189 -#define MM_QUERYSELITEMID 0x018a -#define MM_QUERYITEMTEXT 0x018b -#define MM_QUERYITEMTEXTLENGTH 0x018c -#define MM_SETITEMHANDLE 0x018d -#define MM_SETITEMTEXT 0x018e -#define MM_ITEMPOSITIONFROMID 0x018f -#define MM_ITEMIDFROMPOSITION 0x0190 -#define MM_QUERYITEMATTR 0x0191 -#define MM_SETITEMATTR 0x0192 -#define MM_ISITEMVALID 0x0193 -#define MM_QUERYITEMRECT 0x0194 -#define MM_QUERYDEFAULTITEMID 0x0431 -#define MM_SETDEFAULTITEMID 0x0432 -#define MS_ACTIONBAR 0x0001 -#define MS_TITLEBUTTON 0x0002 -#define MS_VERTICALFLIP 0x0004 -#define MS_CONDITIONALCASCADE 0x0040 -#define PU_POSITIONONITEM 0x0001 -#define PU_HCONSTRAIN 0x0002 -#define PU_VCONSTRAIN 0x0004 -#define PU_NONE 0x0000 -#define PU_MOUSEBUTTON1DOWN 0x0008 -#define PU_MOUSEBUTTON2DOWN 0x0010 -#define PU_MOUSEBUTTON3DOWN 0x0018 -#define PU_SELECTITEM 0x0020 -#define PU_MOUSEBUTTON1 0x0040 -#define PU_MOUSEBUTTON2 0x0080 -#define PU_MOUSEBUTTON3 0x0100 -#define PU_KEYBOARD 0x0200 -#define WinCheckMenuItem(hwndMenu,id,fcheck) \ -#define WinEnableMenuItem(hwndMenu,id,fEnable) \ -#define WinIsMenuItemChecked(hwndMenu,id) \ -#define WinIsMenuItemEnabled(hwndMenu,id) \ -#define WinIsMenuItemValid(hwndMenu,id) \ -#define WinSetMenuItemText(hwndMenu,id,psz) \ -#define BMSG_POST 0x0000 -#define BMSG_SEND 0x0001 -#define BMSG_POSTQUEUE 0x0002 -#define BMSG_DESCENDANTS 0x0004 -#define BMSG_FRAMEONLY 0x0008 -#define CVR_ALIGNLEFT 0x0001 -#define CVR_ALIGNBOTTOM 0x0002 -#define CVR_ALIGNRIGHT 0x0004 -#define CVR_ALIGNTOP 0x0008 -#define CVR_REDRAW 0x0010 -#define HT_NORMAL 0 -#define HT_TRANSPARENT (-1) -#define HT_DISCARD (-2) -#define HT_ERROR (-3) -#define QS_KEY 0x0001 -#define QS_MOUSEBUTTON 0x0002 -#define QS_MOUSEMOVE 0x0004 -#define QS_MOUSE 0x0006 -#define QS_TIMER 0x0008 -#define QS_PAINT 0x0010 -#define QS_POSTMSG 0x0020 -#define QS_SEM1 0x0040 -#define QS_SEM2 0x0080 -#define QS_SEM3 0x0100 -#define QS_SEM4 0x0200 -#define QS_SENDMSG 0x0400 -#define QS_MSGINPUT 0x0800 -#define SMIM_ALL 0x0eff -#define SMI_NOINTEREST 0x0001 -#define SMI_INTEREST 0x0002 -#define SMI_RESET 0x0004 -#define SMI_AUTODISPATCH 0x0008 -#define WPM_TEXT 0x0001 -#define WPM_CTLDATA 0x0002 -#define WPM_PRESPARAMS 0x0004 -#define WPM_CCHTEXT 0x0008 -#define WPM_CBCTLDATA 0x0010 -#define WPM_CBPRESPARAMS 0x0020 -#define DP_NORMAL 0x0000 -#define DP_HALFTONED 0x0001 -#define DP_INVERTED 0x0002 -#define DP_MINI 0x0004 -#define SBMP_OLD_SYSMENU 1 -#define SBMP_OLD_SBUPARROW 2 -#define SBMP_OLD_SBDNARROW 3 -#define SBMP_OLD_SBRGARROW 4 -#define SBMP_OLD_SBLFARROW 5 -#define SBMP_MENUCHECK 6 -#define SBMP_OLD_CHECKBOXES 7 -#define SBMP_BTNCORNERS 8 -#define SBMP_OLD_MINBUTTON 9 -#define SBMP_OLD_MAXBUTTON 10 -#define SBMP_OLD_RESTOREBUTTON 11 -#define SBMP_OLD_CHILDSYSMENU 12 -#define SBMP_DRIVE 15 -#define SBMP_FILE 16 -#define SBMP_FOLDER 17 -#define SBMP_TREEPLUS 18 -#define SBMP_TREEMINUS 19 -#define SBMP_PROGRAM 22 -#define SBMP_MENUATTACHED 23 -#define SBMP_SIZEBOX 24 -#define SBMP_SYSMENU 25 -#define SBMP_MINBUTTON 26 -#define SBMP_MAXBUTTON 27 -#define SBMP_RESTOREBUTTON 28 -#define SBMP_CHILDSYSMENU 29 -#define SBMP_SYSMENUDEP 30 -#define SBMP_MINBUTTONDEP 31 -#define SBMP_MAXBUTTONDEP 32 -#define SBMP_RESTOREBUTTONDEP 33 -#define SBMP_CHILDSYSMENUDEP 34 -#define SBMP_SBUPARROW 35 -#define SBMP_SBDNARROW 36 -#define SBMP_SBLFARROW 37 -#define SBMP_SBRGARROW 38 -#define SBMP_SBUPARROWDEP 39 -#define SBMP_SBDNARROWDEP 40 -#define SBMP_SBLFARROWDEP 41 -#define SBMP_SBRGARROWDEP 42 -#define SBMP_SBUPARROWDIS 43 -#define SBMP_SBDNARROWDIS 44 -#define SBMP_SBLFARROWDIS 45 -#define SBMP_SBRGARROWDIS 46 -#define SBMP_COMBODOWN 47 -#define SBMP_CHECKBOXES 48 -#define SBMP_HIDE 50 -#define SBMP_HIDEDEP 51 -#define SBMP_CLOSE 52 -#define SBMP_CLOSEDEP 53 -#define SPTR_ARROW 1 -#define SPTR_TEXT 2 -#define SPTR_WAIT 3 -#define SPTR_SIZE 4 -#define SPTR_MOVE 5 -#define SPTR_SIZENWSE 6 -#define SPTR_SIZENESW 7 -#define SPTR_SIZEWE 8 -#define SPTR_SIZENS 9 -#define SPTR_APPICON 10 -#define SPTR_ICONINFORMATION 11 -#define SPTR_ICONQUESTION 12 -#define SPTR_ICONERROR 13 -#define SPTR_ICONWARNING 14 -#define SPTR_ILLEGAL 18 -#define SPTR_FILE 19 -#define SPTR_FOLDER 20 -#define SPTR_MULTFILE 21 -#define SPTR_PROGRAM 22 -#define SPTR_DISPLAY_PTRS 22 -#define SPTR_PENFIRST 23 -#define SPTR_PENLAST 39 -#define SPTR_CPTR 39 -#define SPTR_HANDICON SPTR_ICONERROR -#define SPTR_QUESICON SPTR_ICONQUESTION -#define SPTR_BANGICON SPTR_ICONWARNING -#define SPTR_NOTEICON SPTR_ICONINFORMATION -#define SB_LINEUP 1 -#define SB_LINEDOWN 2 -#define SB_LINELEFT 1 -#define SB_LINERIGHT 2 -#define SB_PAGEUP 3 -#define SB_PAGEDOWN 4 -#define SB_PAGELEFT 3 -#define SB_PAGERIGHT 4 -#define SB_SLIDERTRACK 5 -#define SB_SLIDERPOSITION 6 -#define SB_ENDSCROLL 7 -#define SBM_SETSCROLLBAR 0x01a0 -#define SBM_SETPOS 0x01a1 -#define SBM_QUERYPOS 0x01a2 -#define SBM_QUERYRANGE 0x01a3 -#define SBM_SETTHUMBSIZE 0x01a6 -#define SBS_HORZ 0 -#define SBS_VERT 1 -#define SBS_THUMBSIZE 2 -#define SBS_AUTOTRACK 4 -#define SBS_AUTOSIZE 0x2000 -#define SM_SETHANDLE 0x0100 -#define SM_QUERYHANDLE 0x0101 -#define SS_TEXT 0x0001 -#define SS_GROUPBOX 0x0002 -#define SS_ICON 0x0003 -#define SS_BITMAP 0x0004 -#define SS_FGNDRECT 0x0005 -#define SS_HALFTONERECT 0x0006 -#define SS_BKGNDRECT 0x0007 -#define SS_FGNDFRAME 0x0008 -#define SS_HALFTONEFRAME 0x0009 -#define SS_BKGNDFRAME 0x000a -#define SS_SYSICON 0x000b -#define SS_AUTOSIZE 0x0040 -#define WM_MSGBOXINIT 0x010e -#define WM_MSGBOXDISMISS 0x010f -#define CCF_GLOBAL 0x0000 -#define CCF_APPLICATION 0x0001 -#define CCF_COUNTCOLORS 0x0010 -#define CCF_ALLCOLORS 0x0020 -#define CCI_FOREGROUND 1 -#define CCI_FOREGROUNDREADONLY 2 -#define CCI_BACKGROUND 3 -#define CCI_BACKGROUNDDIALOG 4 -#define CCI_DISABLEDFOREGROUND 5 -#define CCI_DISABLEDFOREGROUNDREADONLY 6 -#define CCI_DISABLEDBACKGROUND 7 -#define CCI_DISABLEDBACKGROUNDDIALOG 8 -#define CCI_HIGHLIGHTFOREGROUND 9 -#define CCI_HIGHLIGHTBACKGROUND 10 -#define CCI_HIGHLIGHTBACKGROUNDDIALOG 11 -#define CCI_INACTIVEFOREGROUND 12 -#define CCI_INACTIVEFOREGROUNDDIALOG 13 -#define CCI_INACTIVEBACKGROUND 14 -#define CCI_INACTIVEBACKGROUNDTEXT 15 -#define CCI_ACTIVEFOREGROUND 16 -#define CCI_ACTIVEFOREGROUNDDIALOG 17 -#define CCI_ACTIVEBACKGROUND 18 -#define CCI_ACTIVEBACKGROUNDTEXT 19 -#define CCI_PAGEBACKGROUND 20 -#define CCI_PAGEFOREGROUND 21 -#define CCI_FIELDBACKGROUND 22 -#define CCI_BORDER 23 -#define CCI_BORDERLIGHT 24 -#define CCI_BORDERDARK 25 -#define CCI_BORDER2 26 -#define CCI_BORDER2LIGHT 27 -#define CCI_BORDER2DARK 28 -#define CCI_BORDERDEFAULT 29 -#define CCI_BUTTONBACKGROUND 30 -#define CCI_BUTTONFOREGROUND 31 -#define CCI_BUTTONBORDERLIGHT 32 -#define CCI_BUTTONBORDERDARK 33 -#define CCI_ARROW 34 -#define CCI_DISABLEDARROW 35 -#define CCI_ARROWBORDERLIGHT 36 -#define CCI_ARROWBORDERDARK 37 -#define CCI_CHECKLIGHT 38 -#define CCI_CHECKMIDDLE 39 -#define CCI_CHECKDARK 40 -#define CCI_ICONFOREGROUND 41 -#define CCI_ICONBACKGROUND 42 -#define CCI_ICONBACKGROUNDDESKTOP 43 -#define CCI_ICONHILITEFOREGROUND 44 -#define CCI_ICONHILITEBACKGROUND 45 -#define CCI_MAJORTABFOREGROUND 46 -#define CCI_MAJORTABBACKGROUND 47 -#define CCI_MINORTABFOREGROUND 48 -#define CCI_MINORTABBACKGROUND 49 -#define CCI_MAXINDEX 49 -#define CCT_STATIC 1 -#define CCT_STATICTEXT 2 -#define CCT_GROUPBOX 3 -#define CCT_PUSHBUTTON 4 -#define CCT_CHECKBOX 5 -#define CCT_RADIOBUTTON 6 -#define CCT_ENTRYFIELD 7 -#define CCT_LISTBOX 8 -#define CCT_COMBOBOX 9 -#define CCT_SCROLLBAR 10 -#define CCT_FRAME 11 -#define CCT_MENU 12 -#define CCT_TITLEBAR 13 -#define CCT_SPINBUTTON 14 -#define CCT_SLIDER 15 -#define CCT_CIRCULARSLIDER 16 -#define CCT_VALUESET 17 -#define CCT_MLE 18 -#define CCT_CONTAINER 19 -#define CCT_NOTEBOOK 20 -#define CCT_MAXTYPE 20 -#define CCV_NOTFOUND (-1) -#define CCV_IGNORE (-2) -#define CCV_DEFAULT (-3) -#define PP_FOREGROUNDCOLOR 1 -#define PP_FOREGROUNDCOLORINDEX 2 -#define PP_BACKGROUNDCOLOR 3 -#define PP_BACKGROUNDCOLORINDEX 4 -#define PP_HILITEFOREGROUNDCOLOR 5 -#define PP_HILITEFOREGROUNDCOLORINDEX 6 -#define PP_HILITEBACKGROUNDCOLOR 7 -#define PP_HILITEBACKGROUNDCOLORINDEX 8 -#define PP_DISABLEDFOREGROUNDCOLOR 9 -#define PP_DISABLEDFOREGROUNDCOLORINDEX 10 -#define PP_DISABLEDBACKGROUNDCOLOR 11 -#define PP_DISABLEDBACKGROUNDCOLORINDEX 12 -#define PP_BORDERCOLOR 13 -#define PP_BORDERCOLORINDEX 14 -#define PP_FONTNAMESIZE 15 -#define PP_FONTHANDLE 16 -#define PP_RESERVED 17 -#define PP_ACTIVECOLOR 18 -#define PP_ACTIVECOLORINDEX 19 -#define PP_INACTIVECOLOR 20 -#define PP_INACTIVECOLORINDEX 21 -#define PP_ACTIVETEXTFGNDCOLOR 22 -#define PP_ACTIVETEXTFGNDCOLORINDEX 23 -#define PP_ACTIVETEXTBGNDCOLOR 24 -#define PP_ACTIVETEXTBGNDCOLORINDEX 25 -#define PP_INACTIVETEXTFGNDCOLOR 26 -#define PP_INACTIVETEXTFGNDCOLORINDEX 27 -#define PP_INACTIVETEXTBGNDCOLOR 28 -#define PP_INACTIVETEXTBGNDCOLORINDEX 29 -#define PP_SHADOW 30 -#define PP_MENUFOREGROUNDCOLOR 31 -#define PP_MENUFOREGROUNDCOLORINDEX 32 -#define PP_MENUBACKGROUNDCOLOR 33 -#define PP_MENUBACKGROUNDCOLORINDEX 34 -#define PP_MENUHILITEFGNDCOLOR 35 -#define PP_MENUHILITEFGNDCOLORINDEX 36 -#define PP_MENUHILITEBGNDCOLOR 37 -#define PP_MENUHILITEBGNDCOLORINDEX 38 -#define PP_MENUDISABLEDFGNDCOLOR 39 -#define PP_MENUDISABLEDFGNDCOLORINDEX 40 -#define PP_MENUDISABLEDBGNDCOLOR 41 -#define PP_MENUDISABLEDBGNDCOLORINDEX 42 -#define PP_SHADOWTEXTCOLOR 43 -#define PP_SHADOWTEXTCOLORINDEX 44 -#define PP_SHADOWHILITEFGNDCOLOR 45 -#define PP_SHADOWHILITEFGNDCOLORINDEX 46 -#define PP_SHADOWHILITEBGNDCOLOR 47 -#define PP_SHADOWHILITEBGNDCOLORINDEX 48 -#define PP_ICONTEXTBACKGROUNDCOLOR 49 -#define PP_ICONTEXTBACKGROUNDCOLORINDEX 50 -#define PP_BORDERLIGHTCOLOR 51 -#define PP_BORDERDARKCOLOR 52 -#define PP_BORDER2COLOR 53 -#define PP_BORDER2LIGHTCOLOR 54 -#define PP_BORDER2DARKCOLOR 55 -#define PP_BORDERDEFAULTCOLOR 56 -#define PP_FIELDBACKGROUNDCOLOR 57 -#define PP_BUTTONBACKGROUNDCOLOR 58 -#define PP_BUTTONBORDERLIGHTCOLOR 59 -#define PP_BUTTONBORDERDARKCOLOR 60 -#define PP_ARROWCOLOR 61 -#define PP_ARROWBORDERLIGHTCOLOR 62 -#define PP_ARROWBORDERDARKCOLOR 63 -#define PP_ARROWDISABLEDCOLOR 64 -#define PP_CHECKLIGHTCOLOR 65 -#define PP_CHECKMIDDLECOLOR 66 -#define PP_CHECKDARKCOLOR 67 -#define PP_PAGEFOREGROUNDCOLOR 68 -#define PP_PAGEBACKGROUNDCOLOR 69 -#define PP_MAJORTABFOREGROUNDCOLOR 70 -#define PP_MAJORTABBACKGROUNDCOLOR 71 -#define PP_MINORTABFOREGROUNDCOLOR 72 -#define PP_MINORTABBACKGROUNDCOLOR 73 -#define PP_BIDI_FIRST 0x0100 -#define PP_BIDI_LAST 0x012f -#define PP_USER 0x8000 -#define QPF_NOINHERIT 0x0001 -#define QPF_ID1COLORINDEX 0x0002 -#define QPF_ID2COLORINDEX 0x0004 -#define QPF_PURERGBCOLOR 0x0008 -#define QPF_VALIDFLAGS 0x000f -#define SV_SWAPBUTTON 0 -#define SV_DBLCLKTIME 1 -#define SV_CXDBLCLK 2 -#define SV_CYDBLCLK 3 -#define SV_CXSIZEBORDER 4 -#define SV_CYSIZEBORDER 5 -#define SV_ALARM 6 -#define SV_CURSORRATE 9 -#define SV_FIRSTSCROLLRATE 10 -#define SV_SCROLLRATE 11 -#define SV_NUMBEREDLISTS 12 -#define SV_WARNINGFREQ 13 -#define SV_NOTEFREQ 14 -#define SV_ERRORFREQ 15 -#define SV_WARNINGDURATION 16 -#define SV_NOTEDURATION 17 -#define SV_ERRORDURATION 18 -#define SV_CXSCREEN 20 -#define SV_CYSCREEN 21 -#define SV_CXVSCROLL 22 -#define SV_CYHSCROLL 23 -#define SV_CYVSCROLLARROW 24 -#define SV_CXHSCROLLARROW 25 -#define SV_CXBORDER 26 -#define SV_CYBORDER 27 -#define SV_CXDLGFRAME 28 -#define SV_CYDLGFRAME 29 -#define SV_CYTITLEBAR 30 -#define SV_CYVSLIDER 31 -#define SV_CXHSLIDER 32 -#define SV_CXMINMAXBUTTON 33 -#define SV_CYMINMAXBUTTON 34 -#define SV_CYMENU 35 -#define SV_CXFULLSCREEN 36 -#define SV_CYFULLSCREEN 37 -#define SV_CXICON 38 -#define SV_CYICON 39 -#define SV_CXPOINTER 40 -#define SV_CYPOINTER 41 -#define SV_DEBUG 42 -#define SV_CMOUSEBUTTONS 43 -#define SV_CPOINTERBUTTONS 43 -#define SV_POINTERLEVEL 44 -#define SV_CURSORLEVEL 45 -#define SV_TRACKRECTLEVEL 46 -#define SV_CTIMERS 47 -#define SV_MOUSEPRESENT 48 -#define SV_CXBYTEALIGN 49 -#define SV_CXALIGN 49 -#define SV_CYBYTEALIGN 50 -#define SV_CYALIGN 50 -#define SV_DESKTOPWORKAREAYTOP 51 -#define SV_DESKTOPWORKAREAYBOTTOM 52 -#define SV_DESKTOPWORKAREAXRIGHT 53 -#define SV_DESKTOPWORKAREAXLEFT 54 -#define SV_NOTRESERVED 56 -#define SV_EXTRAKEYBEEP 57 -#define SV_SETLIGHTS 58 -#define SV_INSERTMODE 59 -#define SV_MENUROLLDOWNDELAY 64 -#define SV_MENUROLLUPDELAY 65 -#define SV_ALTMNEMONIC 66 -#define SV_TASKLISTMOUSEACCESS 67 -#define SV_CXICONTEXTWIDTH 68 -#define SV_CICONTEXTLINES 69 -#define SV_CHORDTIME 70 -#define SV_CXCHORD 71 -#define SV_CYCHORD 72 -#define SV_CXMOTIONSTART 73 -#define SV_CYMOTIONSTART 74 -#define SV_BEGINDRAG 75 -#define SV_ENDDRAG 76 -#define SV_SINGLESELECT 77 -#define SV_OPEN 78 -#define SV_CONTEXTMENU 79 -#define SV_CONTEXTHELP 80 -#define SV_TEXTEDIT 81 -#define SV_BEGINSELECT 82 -#define SV_ENDSELECT 83 -#define SV_BEGINDRAGKB 84 -#define SV_ENDDRAGKB 85 -#define SV_SELECTKB 86 -#define SV_OPENKB 87 -#define SV_CONTEXTMENUKB 88 -#define SV_CONTEXTHELPKB 89 -#define SV_TEXTEDITKB 90 -#define SV_BEGINSELECTKB 91 -#define SV_ENDSELECTKB 92 -#define SV_ANIMATION 93 -#define SV_ANIMATIONSPEED 94 -#define SV_MONOICONS 95 -#define SV_KBDALTERED 96 -#define SV_PRINTSCREEN 97 -#define SV_LOCKSTARTINPUT 98 -#define SV_DYNAMICDRAG 99 -#define SV_CSYSVALUES 100 -#define SYSCLR_SHADOWHILITEBGND (-50) -#define SYSCLR_SHADOWHILITEFGND (-49) -#define SYSCLR_SHADOWTEXT (-48) -#define SYSCLR_ENTRYFIELD (-47) -#define SYSCLR_MENUDISABLEDTEXT (-46) -#define SYSCLR_MENUHILITE (-45) -#define SYSCLR_MENUHILITEBGND (-44) -#define SYSCLR_PAGEBACKGROUND (-43) -#define SYSCLR_FIELDBACKGROUND (-42) -#define SYSCLR_BUTTONLIGHT (-41) -#define SYSCLR_BUTTONMIDDLE (-40) -#define SYSCLR_BUTTONDARK (-39) -#define SYSCLR_BUTTONDEFAULT (-38) -#define SYSCLR_TITLEBOTTOM (-37) -#define SYSCLR_SHADOW (-36) -#define SYSCLR_ICONTEXT (-35) -#define SYSCLR_DIALOGBACKGROUND (-34) -#define SYSCLR_HILITEFOREGROUND (-33) -#define SYSCLR_HILITEBACKGROUND (-32) -#define SYSCLR_INACTIVETITLETEXTBGND (-31) -#define SYSCLR_ACTIVETITLETEXTBGND (-30) -#define SYSCLR_INACTIVETITLETEXT (-29) -#define SYSCLR_ACTIVETITLETEXT (-28) -#define SYSCLR_OUTPUTTEXT (-27) -#define SYSCLR_WINDOWSTATICTEXT (-26) -#define SYSCLR_SCROLLBAR (-25) -#define SYSCLR_BACKGROUND (-24) -#define SYSCLR_ACTIVETITLE (-23) -#define SYSCLR_INACTIVETITLE (-22) -#define SYSCLR_MENU (-21) -#define SYSCLR_WINDOW (-20) -#define SYSCLR_WINDOWFRAME (-19) -#define SYSCLR_MENUTEXT (-18) -#define SYSCLR_WINDOWTEXT (-17) -#define SYSCLR_TITLETEXT (-16) -#define SYSCLR_ACTIVEBORDER (-15) -#define SYSCLR_INACTIVEBORDER (-14) -#define SYSCLR_APPWORKSPACE (-13) -#define SYSCLR_HELPBACKGROUND (-12) -#define SYSCLR_HELPTEXT (-11) -#define SYSCLR_HELPHILITE (-10) -#define SYSCLR_CSYSCOLORS 41 -#define WM_CTLCOLORCHANGE 0x0129 -#define WM_QUERYCTLTYPE 0x0130 /*0x012a?*/ -#define TID_CURSOR 0xffff -#define TID_SCROLL 0xfffe -#define TID_FLASHWINDOW 0xfffd -#define TID_USERMAX 0x7fff -#define TF_LEFT 0x0001 -#define TF_TOP 0x0002 -#define TF_RIGHT 0x0004 -#define TF_BOTTOM 0x0008 -#define TF_SETPOINTERPOS 0x0010 -#define TF_GRID 0x0020 -#define TF_STANDARD 0x0040 -#define TF_ALLINBOUNDARY 0x0080 -#define TF_VALIDATETRACKRECT 0x0100 -#define TF_PARTINBOUNDARY 0x0200 -#define TF_MOVE 0x000f -#define MLS_WORDWRAP 0x0001 -#define MLS_BORDER 0x0002 -#define MLS_VSCROLL 0x0004 -#define MLS_HSCROLL 0x0008 -#define MLS_READONLY 0x0010 -#define MLS_IGNORETAB 0x0020 -#define MLS_DISABLEUNDO 0x0040 -#define MLFFMTRECT_FORMATRECT 0x0007 -#define MLFFMTRECT_LIMITHORZ 0x0001 -#define MLFFMTRECT_LIMITVERT 0x0002 -#define MLFFMTRECT_MATCHWINDOW 0x0004 -#define MLFIE_CFTEXT 0 -#define MLFIE_NOTRANS 1 -#define MLFIE_WINFMT 2 -#define MLFIE_RTF 3 -#define MLFEFR_RESIZE 0x0001 -#define MLFEFR_TABSTOP 0x0002 -#define MLFEFR_FONT 0x0004 -#define MLFEFR_TEXT 0x0008 -#define MLFEFR_WORDWRAP 0x0010 -#define MLFETL_TEXTBYTES 0x0020 -#define MLFMARGIN_LEFT 0x0001 -#define MLFMARGIN_BOTTOM 0x0002 -#define MLFMARGIN_RIGHT 0x0003 -#define MLFMARGIN_TOP 0x0004 -#define MLFQS_MINMAXSEL 0 -#define MLFQS_MINSEL 1 -#define MLFQS_MAXSEL 2 -#define MLFQS_ANCHORSEL 3 -#define MLFQS_CURSORSEL 4 -#define MLFCLPBD_TOOMUCHTEXT 0x0001 -#define MLFCLPBD_ERROR 0x0002 -#define MLFSEARCH_CASESENSITIVE 0x0001 -#define MLFSEARCH_SELECTMATCH 0x0002 -#define MLFSEARCH_CHANGEALL 0x0004 -#define MLM_SETTEXTLIMIT 0x01b0 -#define MLM_QUERYTEXTLIMIT 0x01b1 -#define MLM_SETFORMATRECT 0x01b2 -#define MLM_QUERYFORMATRECT 0x01b3 -#define MLM_SETWRAP 0x01b4 -#define MLM_QUERYWRAP 0x01b5 -#define MLM_SETTABSTOP 0x01b6 -#define MLM_QUERYTABSTOP 0x01b7 -#define MLM_SETREADONLY 0x01b8 -#define MLM_QUERYREADONLY 0x01b9 -#define MLM_QUERYCHANGED 0x01ba -#define MLM_SETCHANGED 0x01bb -#define MLM_QUERYLINECOUNT 0x01bc -#define MLM_CHARFROMLINE 0x01bd -#define MLM_LINEFROMCHAR 0x01be -#define MLM_QUERYLINELENGTH 0x01bf -#define MLM_QUERYTEXTLENGTH 0x01c0 -#define MLM_FORMAT 0x01c1 -#define MLM_SETIMPORTEXPORT 0x01c2 -#define MLM_IMPORT 0x01c3 -#define MLM_EXPORT 0x01c4 -#define MLM_DELETE 0x01c6 -#define MLM_QUERYFORMATLINELENGTH 0x01c7 -#define MLM_QUERYFORMATTEXTLENGTH 0x01c8 -#define MLM_INSERT 0x01c9 -#define MLM_SETSEL 0x01ca -#define MLM_QUERYSEL 0x01cb -#define MLM_QUERYSELTEXT 0x01cc -#define MLM_QUERYUNDO 0x01cd -#define MLM_UNDO 0x01ce -#define MLM_RESETUNDO 0x01cf -#define MLM_QUERYFONT 0x01d0 -#define MLM_SETFONT 0x01d1 -#define MLM_SETTEXTCOLOR 0x01d2 -#define MLM_QUERYTEXTCOLOR 0x01d3 -#define MLM_SETBACKCOLOR 0x01d4 -#define MLM_QUERYBACKCOLOR 0x01d5 -#define MLM_QUERYFIRSTCHAR 0x01d6 -#define MLM_SETFIRSTCHAR 0x01d7 -#define MLM_CUT 0x01d8 -#define MLM_COPY 0x01d9 -#define MLM_PASTE 0x01da -#define MLM_CLEAR 0x01db -#define MLM_ENABLEREFRESH 0x01dc -#define MLM_DISABLEREFRESH 0x01dd -#define MLM_SEARCH 0x01de -#define MLM_QUERYIMPORTEXPORT 0x01df -#define MLN_OVERFLOW 0x0001 -#define MLN_PIXHORZOVERFLOW 0x0002 -#define MLN_PIXVERTOVERFLOW 0x0003 -#define MLN_TEXTOVERFLOW 0x0004 -#define MLN_VSCROLL 0x0005 -#define MLN_HSCROLL 0x0006 -#define MLN_CHANGE 0x0007 -#define MLN_SETFOCUS 0x0008 -#define MLN_KILLFOCUS 0x0009 -#define MLN_MARGIN 0x000a -#define MLN_SEARCHPAUSE 0x000b -#define MLN_MEMERROR 0x000c -#define MLN_UNDOOVERFLOW 0x000d -#define MLN_CLPBDFAIL 0x000f -#define GPI_ERROR 0 -#define GPI_OK 1 -#define GPI_ALTERROR (-1) -#define HRGN_ERROR ((HRGN)(-1)) -#define CLR_ERROR (-255) -#define CLR_NOINDEX (-254) -#define CLR_FALSE (-5) -#define CLR_TRUE (-4) -#define CLR_DEFAULT (-3) -#define CLR_WHITE (-2) -#define CLR_BLACK (-1) -#define CLR_BACKGROUND 0 -#define CLR_BLUE 1 -#define CLR_RED 2 -#define CLR_PINK 3 -#define CLR_GREEN 4 -#define CLR_CYAN 5 -#define CLR_YELLOW 6 -#define CLR_NEUTRAL 7 -#define CLR_DARKGRAY 8 -#define CLR_DARKBLUE 9 -#define CLR_DARKRED 10 -#define CLR_DARKPINK 11 -#define CLR_DARKGREEN 12 -#define CLR_DARKCYAN 13 -#define CLR_BROWN 14 -#define CLR_PALEGRAY 15 -#define RGB_ERROR (-255) -#define RGB_BLACK 0x00000000 -#define RGB_BLUE 0x000000ff -#define RGB_GREEN 0x0000ff00 -#define RGB_CYAN 0x0000ffff -#define RGB_RED 0x00ff0000 -#define RGB_PINK 0x00ff00ff -#define RGB_YELLOW 0x00ffff00 -#define RGB_WHITE 0x00ffffff -#define PRIM_LINE 1 -#define PRIM_CHAR 2 -#define PRIM_MARKER 3 -#define PRIM_AREA 4 -#define PRIM_IMAGE 5 -#define AM_ERROR (-1) -#define AM_PRESERVE 0 -#define AM_NOPRESERVE 1 -#define FM_ERROR (-1) -#define FM_DEFAULT 0 -#define FM_OR 1 -#define FM_OVERPAINT 2 -#define FM_LEAVEALONE 5 -#define FM_XOR 4 -#define FM_AND 6 -#define FM_SUBTRACT 7 -#define FM_MASKSRCNOT 8 -#define FM_ZERO 9 -#define FM_NOTMERGESRC 10 -#define FM_NOTXORSRC 11 -#define FM_INVERT 12 -#define FM_MERGESRCNOT 13 -#define FM_NOTCOPYSRC 14 -#define FM_MERGENOTSRC 15 -#define FM_NOTMASKSRC 16 -#define FM_ONE 17 -#define BM_ERROR (-1) -#define BM_DEFAULT 0 -#define BM_OR 1 -#define BM_OVERPAINT 2 -#define BM_LEAVEALONE 5 -#define BM_XOR 4 -#define BM_AND 6 -#define BM_SUBTRACT 7 -#define BM_MASKSRCNOT 8 -#define BM_ZERO 9 -#define BM_NOTMERGESRC 10 -#define BM_NOTXORSRC 11 -#define BM_INVERT 12 -#define BM_MERGESRCNOT 13 -#define BM_NOTCOPYSRC 14 -#define BM_MERGENOTSRC 15 -#define BM_NOTMASKSRC 16 -#define BM_ONE 17 -#define BM_SRCTRANSPARENT 18 -#define BM_DESTTRANSPARENT 19 -#define LINETYPE_ERROR (-1) -#define LINETYPE_DEFAULT 0 -#define LINETYPE_DOT 1 -#define LINETYPE_SHORTDASH 2 -#define LINETYPE_DASHDOT 3 -#define LINETYPE_DOUBLEDOT 4 -#define LINETYPE_LONGDASH 5 -#define LINETYPE_DASHDOUBLEDOT 6 -#define LINETYPE_SOLID 7 -#define LINETYPE_INVISIBLE 8 -#define LINETYPE_ALTERNATE 9 -#define LINEWIDTH_ERROR (-1) -#define LINEWIDTH_DEFAULT 0L -#define LINEWIDTH_NORMAL 0x00010000 -#define LINEWIDTH_THICK 0x00020000 -#define LINEWIDTHGEOM_ERROR (-1) -#define LINEEND_ERROR (-1) -#define LINEEND_DEFAULT 0 -#define LINEEND_FLAT 1 -#define LINEEND_SQUARE 2 -#define LINEEND_ROUND 3 -#define LINEJOIN_ERROR (-1) -#define LINEJOIN_DEFAULT 0 -#define LINEJOIN_BEVEL 1 -#define LINEJOIN_ROUND 2 -#define LINEJOIN_MITRE 3 -#define CHDIRN_ERROR (-1) -#define CHDIRN_DEFAULT 0 -#define CHDIRN_LEFTRIGHT 1 -#define CHDIRN_TOPBOTTOM 2 -#define CHDIRN_RIGHTLEFT 3 -#define CHDIRN_BOTTOMTOP 4 -#define TA_NORMAL_HORIZ 0x0001 -#define TA_LEFT 0x0002 -#define TA_CENTER 0x0003 -#define TA_RIGHT 0x0004 -#define TA_STANDARD_HORIZ 0x0005 -#define TA_NORMAL_VERT 0x0100 -#define TA_TOP 0x0200 -#define TA_HALF 0x0300 -#define TA_BASE 0x0400 -#define TA_BOTTOM 0x0500 -#define TA_STANDARD_VERT 0x0600 -#define CM_ERROR (-1) -#define CM_DEFAULT 0 -#define CM_MODE1 1 -#define CM_MODE2 2 -#define CM_MODE3 3 -#define MARKSYM_ERROR (-1) -#define MARKSYM_DEFAULT 0 -#define MARKSYM_CROSS 1 -#define MARKSYM_PLUS 2 -#define MARKSYM_DIAMOND 3 -#define MARKSYM_SQUARE 4 -#define MARKSYM_SIXPOINTSTAR 5 -#define MARKSYM_EIGHTPOINTSTAR 6 -#define MARKSYM_SOLIDDIAMOND 7 -#define MARKSYM_SOLIDSQUARE 8 -#define MARKSYM_DOT 9 -#define MARKSYM_SMALLCIRCLE 10 -#define MARKSYM_BLANK 64 -#define TXTBOX_TOPLEFT 0 -#define TXTBOX_BOTTOMLEFT 1 -#define TXTBOX_TOPRIGHT 2 -#define TXTBOX_BOTTOMRIGHT 3 -#define TXTBOX_CONCAT 4 -#define TXTBOX_COUNT 5 -#define PVIS_ERROR 0 -#define PVIS_INVISIBLE 1 -#define PVIS_VISIBLE 2 -#define RVIS_ERROR 0 -#define RVIS_INVISIBLE 1 -#define RVIS_PARTIAL 2 -#define RVIS_VISIBLE 3 -#define FONT_DEFAULT 1 -#define FONT_MATCH 2 -#define LCIDT_FONT 6 -#define LCIDT_BITMAP 7 -#define LCID_ALL (-1) -#define CHS_OPAQUE 0x0001 -#define CHS_VECTOR 0x0002 -#define CHS_LEAVEPOS 0x0008 -#define CHS_CLIP 0x0010 -#define CHS_UNDERSCORE 0x0200 -#define CHS_STRIKEOUT 0x0400 -#define FWEIGHT_DONT_CARE 0 -#define FWEIGHT_ULTRA_LIGHT 1 -#define FWEIGHT_EXTRA_LIGHT 2 -#define FWEIGHT_LIGHT 3 -#define FWEIGHT_SEMI_LIGHT 4 -#define FWEIGHT_NORMAL 5 -#define FWEIGHT_SEMI_BOLD 6 -#define FWEIGHT_BOLD 7 -#define FWEIGHT_EXTRA_BOLD 8 -#define FWEIGHT_ULTRA_BOLD 9 -#define FWIDTH_DONT_CARE 0 -#define FWIDTH_ULTRA_CONDENSED 1 -#define FWIDTH_EXTRA_CONDENSED 2 -#define FWIDTH_CONDENSED 3 -#define FWIDTH_SEMI_CONDENSED 4 -#define FWIDTH_NORMAL 5 -#define FWIDTH_SEMI_EXPANDED 6 -#define FWIDTH_EXPANDED 7 -#define FWIDTH_EXTRA_EXPANDED 8 -#define FWIDTH_ULTRA_EXPANDED 9 -#define FTYPE_ITALIC 0x0001 -#define FTYPE_ITALIC_DONT_CARE 0x0002 -#define FTYPE_OBLIQUE 0x0004 -#define FTYPE_OBLIQUE_DONT_CARE 0x0008 -#define FTYPE_ROUNDED 0x0010 -#define FTYPE_ROUNDED_DONT_CARE 0x0020 -#define QFA_PUBLIC 1 -#define QFA_PRIVATE 2 -#define QFA_ERROR GPI_ALTERROR -#define QF_PUBLIC 0x0001 -#define QF_PRIVATE 0x0002 -#define QF_NO_GENERIC 0x0004 -#define QF_NO_DEVICE 0x0008 -#define QCD_LCT_FORMAT 0 -#define QCD_LCT_LOINDEX 1 -#define QCD_LCT_HIINDEX 2 -#define QCD_LCT_OPTIONS 3 -#define QLCT_ERROR (-1) -#define QLCT_RGB (-2) -#define QLCT_NOTLOADED (-1) -#define PAL_ERROR (-1) -#define PC_RESERVED 0x01 -#define PC_EXPLICIT 0x02 -#define PC_NOCOLLAPSE 0x04 -#define SCP_ALTERNATE 0 -#define SCP_WINDING 2 -#define SCP_AND 4 -#define SCP_RESET 0 -#define SCP_INCL 0 -#define SCP_EXCL 8 -#define MPATH_STROKE 6 -#define FPATH_ALTERNATE 0 -#define FPATH_WINDING 2 -#define FPATH_INCL 0 -#define FPATH_EXCL 8 -#define CVTC_WORLD 1 -#define CVTC_MODEL 2 -#define CVTC_DEFAULTPAGE 3 -#define CVTC_PAGE 4 -#define CVTC_DEVICE 5 -#define TRANSFORM_REPLACE 0 -#define TRANSFORM_ADD 1 -#define TRANSFORM_PREEMPT 2 -#define SEGEM_ERROR 0 -#define SEGEM_INSERT 1 -#define SEGEM_REPLACE 2 -#define POLYGON_NOBOUNDARY 0x0000 -#define POLYGON_BOUNDARY 0x0001 -#define POLYGON_ALTERNATE 0x0000 -#define POLYGON_WINDING 0x0002 -#define POLYGON_INCL 0x0000 -#define POLYGON_EXCL 0x0008 -#define POLYGON_FILL 0x0000 -#define POLYGON_NOFILL 0x0010 -#define LCOL_RESET 0x0001 -#define LCOL_REALIZABLE 0x0002 -#define LCOL_PURECOLOR 0x0004 -#define LCOL_OVERRIDE_DEFAULT_COLORS 0x0008 -#define LCOL_REALIZED 0x0010 -#define LCOLF_DEFAULT 0 -#define LCOLF_INDRGB 1 -#define LCOLF_CONSECRGB 2 -#define LCOLF_RGB 3 -#define LCOLF_PALETTE 4 -#define LCOLOPT_REALIZED 0x0001 -#define LCOLOPT_INDEX 0x0002 -#define BA_NOBOUNDARY 0 -#define BA_BOUNDARY 0x0001 -#define BA_ALTERNATE 0 -#define BA_WINDING 0x0002 -#define BA_INCL 0 -#define BA_EXCL 8 -#define DRO_FILL 1 -#define DRO_OUTLINE 2 -#define DRO_OUTLINEFILL 3 -#define PATSYM_ERROR (-1) -#define PATSYM_DEFAULT 0 -#define PATSYM_DENSE1 1 -#define PATSYM_DENSE2 2 -#define PATSYM_DENSE3 3 -#define PATSYM_DENSE4 4 -#define PATSYM_DENSE5 5 -#define PATSYM_DENSE6 6 -#define PATSYM_DENSE7 7 -#define PATSYM_DENSE8 8 -#define PATSYM_VERT 9 -#define PATSYM_HORIZ 10 -#define PATSYM_DIAG1 11 -#define PATSYM_DIAG2 12 -#define PATSYM_DIAG3 13 -#define PATSYM_DIAG4 14 -#define PATSYM_NOSHADE 15 -#define PATSYM_SOLID 16 -#define PATSYM_HALFTONE 17 -#define PATSYM_HATCH 18 -#define PATSYM_DIAGHATCH 19 -#define PATSYM_BLANK 64 -#define LCID_ERROR (-1) -#define LCID_DEFAULT 0 -#define CRGN_OR 1 -#define CRGN_COPY 2 -#define CRGN_XOR 4 -#define CRGN_AND 6 -#define CRGN_DIFF 7 -#define RGN_ERROR 0 -#define RGN_NULL 1 -#define RGN_RECT 2 -#define RGN_COMPLEX 3 -#define PRGN_ERROR 0 -#define PRGN_OUTSIDE 1 -#define PRGN_INSIDE 2 -#define RRGN_ERROR 0 -#define RRGN_OUTSIDE 1 -#define RRGN_PARTIAL 2 -#define RRGN_INSIDE 3 -#define EQRGN_ERROR 0 -#define EQRGN_NOTEQUAL 1 -#define EQRGN_EQUAL 2 -#define RECTDIR_LFRT_TOPBOT 1 -#define RECTDIR_RTLF_TOPBOT 2 -#define RECTDIR_LFRT_BOTTOP 3 -#define RECTDIR_RTLF_BOTTOP 4 -#define PMF_SEGBASE 0 -#define PMF_LOADTYPE 1 -#define PMF_RESOLVE 2 -#define PMF_LCIDS 3 -#define PMF_RESET 4 -#define PMF_SUPPRESS 5 -#define PMF_COLORTABLES 6 -#define PMF_COLORREALIZABLE 7 -#define PMF_DEFAULTS 8 -#define PMF_DELETEOBJECTS 9 -#define RS_DEFAULT 0 -#define RS_NODISCARD 1 -#define LC_DEFAULT 0 -#define LC_NOLOAD 1 -#define LC_LOADDISC 3 -#define LT_DEFAULT 0 -#define LT_NOMODIFY 1 -#define LT_ORIGINALVIEW 4 -#define RES_DEFAULT 0 -#define RES_NORESET 1 -#define RES_RESET 2 -#define SUP_DEFAULT 0 -#define SUP_NOSUPPRESS 1 -#define SUP_SUPPRESS 2 -#define CTAB_DEFAULT 0 -#define CTAB_NOMODIFY 1 -#define CTAB_REPLACE 3 -#define CTAB_REPLACEPALETTE 4 -#define CREA_DEFAULT 0 -#define CREA_REALIZE 1 -#define CREA_NOREALIZE 2 -#define CREA_DOREALIZE 3 -#define DDEF_DEFAULT 0 -#define DDEF_IGNORE 1 -#define DDEF_LOADDISC 3 -#define DOBJ_DEFAULT 0 -#define DOBJ_NODELETE 1 -#define DOBJ_DELETE 2 -#define RSP_DEFAULT 0 -#define RSP_NODISCARD 1 -#define LBB_COLOR 0x0001 -#define LBB_BACK_COLOR 0x0002 -#define LBB_MIX_MODE 0x0004 -#define LBB_BACK_MIX_MODE 0x0008 -#define LBB_WIDTH 0x0010 -#define LBB_GEOM_WIDTH 0x0020 -#define LBB_TYPE 0x0040 -#define LBB_END 0x0080 -#define LBB_JOIN 0x0100 -#define CBB_COLOR 0x0001 -#define CBB_BACK_COLOR 0x0002 -#define CBB_MIX_MODE 0x0004 -#define CBB_BACK_MIX_MODE 0x0008 -#define CBB_SET 0x0010 -#define CBB_MODE 0x0020 -#define CBB_BOX 0x0040 -#define CBB_ANGLE 0x0080 -#define CBB_SHEAR 0x0100 -#define CBB_DIRECTION 0x0200 -#define CBB_TEXT_ALIGN 0x0400 -#define CBB_EXTRA 0x0800 -#define CBB_BREAK_EXTRA 0x1000 -#define MBB_COLOR 0x0001 -#define MBB_BACK_COLOR 0x0002 -#define MBB_MIX_MODE 0x0004 -#define MBB_BACK_MIX_MODE 0x0008 -#define MBB_SET 0x0010 -#define MBB_SYMBOL 0x0020 -#define MBB_BOX 0x0040 -#define ABB_COLOR 0x0001 -#define ABB_BACK_COLOR 0x0002 -#define ABB_MIX_MODE 0x0004 -#define ABB_BACK_MIX_MODE 0x0008 -#define ABB_SET 0x0010 -#define ABB_SYMBOL 0x0020 -#define ABB_REF_POINT 0x0040 -#define IBB_COLOR 0x0001 -#define IBB_BACK_COLOR 0x0002 -#define IBB_MIX_MODE 0x0004 -#define IBB_BACK_MIX_MODE 0x0008 -#define MAKEFIXED(i,f) MAKELONG(f,i) -#define FIXEDFRAC(fx) (LOUSHORT(fx)) -#define FIXEDINT(fx) ((SHORT)HIUSHORT(fx)) -#define ROP_SRCCOPY 0x00cc -#define ROP_SRCPAINT 0x00ee -#define ROP_SRCAND 0x0088 -#define ROP_SRCINVERT 0x0066 -#define ROP_SRCERASE 0x0044 -#define ROP_NOTSRCCOPY 0x0033 -#define ROP_NOTSRCERASE 0x0011 -#define ROP_MERGECOPY 0x00c0 -#define ROP_MERGEPAINT 0x00bb -#define ROP_PATCOPY 0x00f0 -#define ROP_PATPAINT 0x00fb -#define ROP_PATINVERT 0x005a -#define ROP_DSTINVERT 0x0055 -#define ROP_ZERO 0x0000 -#define ROP_ONE 0x00ff -#define BBO_OR 0 -#define BBO_AND 1 -#define BBO_IGNORE 2 -#define BBO_PAL_COLORS 4 -#define BBO_NO_COLOR_INFO 8 -#define FF_BOUNDARY 0 -#define FF_SURFACE 1 -#define HBM_ERROR ((HBITMAP)(-1)) -#define BFT_ICON 0x4349 -#define BFT_BMAP 0x4d42 -#define BFT_POINTER 0x5450 -#define BFT_COLORICON 0x4943 -#define BFT_COLORPOINTER 0x5043 -#define BFT_BITMAPARRAY 0x4142 -#define CBD_BITS 0 -#define CBD_COMPRESSION 1 -#define CBD_DECOMPRESSION 2 -#define CBD_COLOR_CONVERSION 0x0001 -#define CBM_INIT 0x0004 -#define BCA_UNCOMP 0 -#define BCA_RLE8 1 -#define BCA_RLE4 2 -#define BCA_HUFFMAN1D 3 -#define BCA_RLE24 4 -#define BMB_ERROR (-1) -#define BRU_METRIC 0 -#define BRA_BOTTOMUP 0 -#define BRH_NOTHALFTONED 0 -#define BRH_ERRORDIFFUSION 1 -#define BRH_PANDA 2 -#define BRH_SUPERCIRCLE 3 -#define BCE_PALETTE (-1) -#define BCE_RGB 0 -#define GPIA_NOASSOC 0x0000 -#define GPIA_ASSOC 0x4000 -#define GPIF_DEFAULT 0x0000 -#define GPIF_SHORT 0x0100 -#define GPIF_LONG 0x0200 -#define GPIM_AREAEXCL 0x8000 -#define GPIT_NORMAL 0x0000 -#define GPIT_MICRO 0x1000 -#define GPIT_INK 0x2000 -#define HDC_ERROR ((HDC)(-1)) -#define PU_ARBITRARY 0x0004 -#define PU_PELS 0x0008 -#define PU_LOMETRIC 0x000c -#define PU_HIMETRIC 0x0010 -#define PU_LOENGLISH 0x0014 -#define PU_HIENGLISH 0x0018 -#define PU_TWIPS 0x001c -#define DCTL_ERASE 1 -#define DCTL_DISPLAY 2 -#define DCTL_BOUNDARY 3 -#define DCTL_DYNAMIC 4 -#define DCTL_CORRELATE 5 -#define DCTL_ERROR (-1) -#define DCTL_OFF 0 -#define DCTL_ON 1 -#define DM_ERROR 0 -#define DM_DRAW 1 -#define DM_RETAIN 2 -#define DM_DRAWANDRETAIN 3 -#define GPIE_SEGMENT 0 -#define GPIE_ELEMENT 1 -#define GPIE_DATA 2 -#define GRES_ATTRS 0x0001 -#define GRES_SEGMENTS 0x0002 -#define GRES_ALL 0x0004 -#define PS_UNITS 0x00fc -#define PS_FORMAT 0x0f00 -#define PS_TYPE 0x1000 -#define PS_MODE 0x2000 -#define PS_ASSOCIATE 0x4000 -#define PS_NORESET 0x8000 -#define SDW_ERROR (-1) -#define SDW_OFF 0 -#define SDW_ON 1 -#define GPI_HITS 2 -#define PICKAP_DEFAULT 0 -#define PICKAP_REC 2 -#define PICKSEL_VISIBLE 0 -#define PICKSEL_ALL 1 -#define PPE_KEEPPATH 0 -#define PPE_ERASEPATH 1 -#define PPS_INKMOVE 0 -#define PPS_INKDOWN 1 -#define PPS_INKUP 2 -#define DFORM_NOCONV 0 -#define DFORM_S370SHORT 1 -#define DFORM_PCSHORT 2 -#define DFORM_PCLONG 4 -#define ATTR_ERROR (-1) -#define ATTR_DETECTABLE 1 -#define ATTR_VISIBLE 2 -#define ATTR_CHAINED 6 -#define ATTR_DYNAMIC 8 -#define ATTR_FASTCHAIN 9 -#define ATTR_PROP_DETECTABLE 10 -#define ATTR_PROP_VISIBLE 11 -#define ATTR_OFF 0 -#define ATTR_ON 1 -#define LOWER_PRI (-1) -#define HIGHER_PRI 1 -#define DEV_ERROR 0 -#define DEV_OK 1 -#define DEV_BAD_PARAMETERS 2 -#define DEV_WARNING 3 -#define DEV_PROP_BUF_TOO_SMALL 4 -#define DEV_ITEM_BUF_TOO_SMALL 5 -#define DEV_INV_INP_JOBPROPERTIES 6 -#define ADDRESS 0 -#define DRIVER_NAME 1 -#define DRIVER_DATA 2 -#define DATA_TYPE 3 -#define COMMENT 4 -#define PROC_NAME 5 -#define PROC_PARAMS 6 -#define SPL_PARAMS 7 -#define NETWORK_PARAMS 8 -#define OD_SCREEN 0 -#define OD_QUEUED 2 -#define OD_DIRECT 5 -#define OD_INFO 6 -#define OD_METAFILE 7 -#define OD_MEMORY 8 -#define OD_METAFILE_NOQUERY 9 -#define CAPS_FAMILY 0 -#define CAPS_IO_CAPS 1 -#define CAPS_TECHNOLOGY 2 -#define CAPS_DRIVER_VERSION 3 -#define CAPS_WIDTH 4 -#define CAPS_HEIGHT 5 -#define CAPS_WIDTH_IN_CHARS 6 -#define CAPS_HEIGHT_IN_CHARS 7 -#define CAPS_HORIZONTAL_RESOLUTION 8 -#define CAPS_VERTICAL_RESOLUTION 9 -#define CAPS_CHAR_WIDTH 10 -#define CAPS_CHAR_HEIGHT 11 -#define CAPS_SMALL_CHAR_WIDTH 12 -#define CAPS_SMALL_CHAR_HEIGHT 13 -#define CAPS_COLORS 14 -#define CAPS_COLOR_PLANES 15 -#define CAPS_COLOR_BITCOUNT 16 -#define CAPS_COLOR_TABLE_SUPPORT 17 -#define CAPS_MOUSE_BUTTONS 18 -#define CAPS_FOREGROUND_MIX_SUPPORT 19 -#define CAPS_BACKGROUND_MIX_SUPPORT 20 -#define CAPS_DEVICE_WINDOWING 31 -#define CAPS_ADDITIONAL_GRAPHICS 32 -#define CAPS_VIO_LOADABLE_FONTS 21 -#define CAPS_WINDOW_BYTE_ALIGNMENT 22 -#define CAPS_BITMAP_FORMATS 23 -#define CAPS_RASTER_CAPS 24 -#define CAPS_MARKER_HEIGHT 25 -#define CAPS_MARKER_WIDTH 26 -#define CAPS_DEVICE_FONTS 27 -#define CAPS_GRAPHICS_SUBSET 28 -#define CAPS_GRAPHICS_VERSION 29 -#define CAPS_GRAPHICS_VECTOR_SUBSET 30 -#define CAPS_PHYS_COLORS 33 -#define CAPS_COLOR_INDEX 34 -#define CAPS_GRAPHICS_CHAR_WIDTH 35 -#define CAPS_GRAPHICS_CHAR_HEIGHT 36 -#define CAPS_HORIZONTAL_FONT_RES 37 -#define CAPS_VERTICAL_FONT_RES 38 -#define CAPS_DEVICE_FONT_SIM 39 -#define CAPS_LINEWIDTH_THICK 40 -#define CAPS_DEVICE_POLYSET_POINTS 41 -#define CAPS_IO_DUMMY 1 -#define CAPS_IO_SUPPORTS_OP 2 -#define CAPS_IO_SUPPORTS_IP 3 -#define CAPS_IO_SUPPORTS_IO 4 -#define CAPS_TECH_UNKNOWN 0 -#define CAPS_TECH_VECTOR_PLOTTER 1 -#define CAPS_TECH_RASTER_DISPLAY 2 -#define CAPS_TECH_RASTER_PRINTER 3 -#define CAPS_TECH_RASTER_CAMERA 4 -#define CAPS_TECH_POSTSCRIPT 5 -#define CAPS_COLTABL_RGB_8 0x0001 -#define CAPS_COLTABL_RGB_8_PLUS 0x0002 -#define CAPS_COLTABL_TRUE_MIX 0x0004 -#define CAPS_COLTABL_REALIZE 0x0008 -#define CAPS_FM_OR 0x0001 -#define CAPS_FM_OVERPAINT 0x0002 -#define CAPS_FM_XOR 0x0008 -#define CAPS_FM_LEAVEALONE 0x0010 -#define CAPS_FM_AND 0x0020 -#define CAPS_FM_GENERAL_BOOLEAN 0x0040 -#define CAPS_BM_OR 0x0001 -#define CAPS_BM_OVERPAINT 0x0002 -#define CAPS_BM_XOR 0x0008 -#define CAPS_BM_LEAVEALONE 0x0010 -#define CAPS_BM_AND 0x0020 -#define CAPS_BM_GENERAL_BOOLEAN 0x0040 -#define CAPS_BM_SRCTRANSPARENT 0x0080 -#define CAPS_BM_DESTTRANSPARENT 0x0100 -#define CAPS_DEV_WINDOWING_SUPPORT 0x0001 -#define CAPS_DEV_FONT_SIM_BOLD 0x0001 -#define CAPS_DEV_FONT_SIM_ITALIC 0x0002 -#define CAPS_DEV_FONT_SIM_UNDERSCORE 0x0004 -#define CAPS_DEV_FONT_SIM_STRIKEOUT 0x0008 -#define CAPS_VDD_DDB_TRANSFER 0x0001 -#define CAPS_GRAPHICS_KERNING_SUPPORT 0x0002 -#define CAPS_FONT_OUTLINE_DEFAULT 0x0004 -#define CAPS_FONT_IMAGE_DEFAULT 0x0008 -#define CAPS_SCALED_DEFAULT_MARKERS 0x0040 -#define CAPS_COLOR_CURSOR_SUPPORT 0x0080 -#define CAPS_PALETTE_MANAGER 0x0100 -#define CAPS_COSMETIC_WIDELINE_SUPPORT 0x0200 -#define CAPS_DIRECT_FILL 0x0400 -#define CAPS_REBUILD_FILLS 0x0800 -#define CAPS_CLIP_FILLS 0x1000 -#define CAPS_ENHANCED_FONTMETRICS 0x2000 -#define CAPS_TRANSFORM_SUPPORT 0x4000 -#define CAPS_EXTERNAL_16_BITCOUNT 0x8000 -#define CAPS_BYTE_ALIGN_REQUIRED 0 -#define CAPS_BYTE_ALIGN_RECOMMENDED 1 -#define CAPS_BYTE_ALIGN_NOT_REQUIRED 2 -#define CAPS_RASTER_BITBLT 0x0001 -#define CAPS_RASTER_BANDING 0x0002 -#define CAPS_RASTER_BITBLT_SCALING 0x0004 -#define CAPS_RASTER_SET_PEL 0x0010 -#define CAPS_RASTER_FONTS 0x0020 -#define CAPS_RASTER_FLOOD_FILL 0x0040 -#define DEVESC_ERROR (-1) -#define DEVESC_NOTIMPLEMENTED 0 -#define DEVESC_QUERYESCSUPPORT 0 -#define DEVESC_GETSCALINGFACTOR 1 -#define DEVESC_QUERYVIOCELLSIZES 2 -#define DEVESC_GETCP 8000 -#define DEVESC_STARTDOC 8150 -#define DEVESC_ENDDOC 8151 -#define DEVESC_NEXTBAND 8152 -#define DEVESC_ABORTDOC 8153 -#define DEVESC_GETJOBID 8160 -#define DEVESC_QUERY_RASTER 8161 -#define DEVESC_QUERYSIZE 8162 -#define DEVESC_QUERYJOBPROPERTIES 8163 -#define DEVESC_SETJOBPROPERTIES 8164 -#define DEVESC_DEFAULTJOBPROPERTIES 8165 -#define DEVESC_CHANGEOUTPUTPORT 8166 -#define DEVESC_NEWFRAME 16300 -#define DEVESC_DRAFTMODE 16301 -#define DEVESC_FLUSHOUTPUT 16302 -#define DEVESC_RAWDATA 16303 -#define DEVESC_SETMODE 16304 -#define DEVESC_SEP 16305 -#define DEVESC_MACRO 16307 -#define DEVESC_BEGIN_BITBLT 16309 -#define DEVESC_END_BITBLT 16310 -#define DEVESC_SEND_COMPDATA 16311 -#define DEVESC_DBE_FIRST 24450 -#define DEVESC_DBE_LAST 24455 -#define DEVESC_CHAR_EXTRA 16998 -#define DEVESC_BREAK_EXTRA 16999 -#define DEVESC_STD_JOURNAL 32600 -#define DEVESC_STARTDOC_WPROP 49150 -#define DEVESC_NEWFRAME_WPROP 49151 -#define DPDM_ERROR (-1) -#define DPDM_NONE 0 -#define DPDM_POSTJOBPROP 0 -#define DPDM_CHANGEPROP 1 -#define DPDM_QUERYJOBPROP 2 -#define DQHC_ERROR (-1) -#define HCAPS_CURRENT 1 -#define HCAPS_SELECTABLE 2 -#define MAXNAMEL 60 -#define HINI_PROFILE (HINI)0 -#define HINI_USERPROFILE (HINI)(-1) -#define HINI_SYSTEMPROFILE (HINI)(-2) -#define HINI_USER HINI_USERPROFILE -#define HINI_SYSTEM HINI_SYSTEMPROFILE -#define MAXPATHL 128 -#define SGH_ROOT (HPROGRAM)(-1L) -#define PROG_DEFAULT 0 -#define PROG_FULLSCREEN 1 -#define PROG_WINDOWABLEVIO 2 -#define PROG_PM 3 -#define PROG_GROUP 5 -#define PROG_REAL 4 -#define PROG_VDM 4 -#define PROG_WINDOWEDVDM 7 -#define PROG_DLL 6 -#define PROG_PDD 8 -#define PROG_VDD 9 -#define PROG_WINDOW_REAL 10 -#define PROG_WINDOW_PROT 11 -#define PROG_WINDOW_AUTO 12 -#define PROG_SEAMLESSVDM 13 -#define PROG_SEAMLESSCOMMON 14 -#define PROG_30_STDSEAMLESSCOMMON 14 -#define PROG_31_STDSEAMLESSVDM 15 -#define PROG_31_STDSEAMLESSCOMMON 16 -#define PROG_31_ENHSEAMLESSVDM 17 -#define PROG_31_ENHSEAMLESSCOMMON 18 -#define PROG_31_ENH 19 -#define PROG_31_STD 20 -#define PROG_DOS_GAME 21 -#define PROG_WIN_GAME 22 -#define PROG_DOS_MODE 23 -#define PROG_RESERVED 255 -#define SAF_VALIDFLAGS 0x001f -#define SAF_INSTALLEDCMDLINE 0x0001 -#define SAF_STARTCHILDAPP 0x0002 -#define SAF_MAXIMIZED 0x0004 -#define SAF_MINIMIZED 0x0008 -#define SAF_BACKGROUND 0x0010 -#define SHE_VISIBLE 0x00 -#define SHE_INVISIBLE 0x01 -#define SHE_RESERVED 0xff -#define SHE_UNPROTECTED 0x00 -#define SHE_PROTECTED 0x02 -#define SWL_INVISIBLE 0x01 -#define SWL_GRAYED 0x02 -#define SWL_VISIBLE 0x04 -#define SWL_NOTJUMPABLE 0x01 -#define SWL_JUMPABLE 0x02 -#define PL_ALTERED 0x008e -#define FDM_FILTER (WM_USER+40) -#define FDM_VALIDATE (WM_USER+41) -#define FDM_ERROR (WM_USER+42) -#define DID_FILE_DIALOG 256 -#define DID_FILENAME_TXT 257 -#define DID_FILENAME_ED 258 -#define DID_DRIVE_TXT 259 -#define DID_DRIVE_CB 260 -#define DID_FILTER_TXT 261 -#define DID_FILTER_CB 262 -#define DID_DIRECTORY_TXT 263 -#define DID_DIRECTORY_LB 264 -#define DID_FILES_TXT 265 -#define DID_FILES_LB 266 -#define DID_HELP_PB 267 -#define DID_APPLY_PB 268 -#define DID_READ_ONLY 269 -#define DID_DIRECTORY_SELECTED 270 -#define DID_OK_PB DID_OK -#define DID_CANCEL_PB DID_CANCEL -#define FDS_CENTER 0x00000001 -#define FDS_CUSTOM 0x00000002 -#define FDS_FILTERUNION 0x00000004 -#define FDS_HELPBUTTON 0x00000008 -#define FDS_APPLYBUTTON 0x00000010 -#define FDS_PRELOAD_VOLINFO 0x00000020 -#define FDS_MODELESS 0x00000040 -#define FDS_INCLUDE_EAS 0x00000080 -#define FDS_OPEN_DIALOG 0x00000100 -#define FDS_SAVEAS_DIALOG 0x00000200 -#define FDS_MULTIPLESEL 0x00000400 -#define FDS_ENABLEFILELB 0x00000800 -#define FDS_NATIONAL_LANGUAGE 0x80000000 -#define FDS_EFSELECTION 0 -#define FDS_LBSELECTION 1 -#define FDS_SUCCESSFUL 0 -#define FDS_ERR_DEALLOCATE_MEMORY 1 -#define FDS_ERR_FILTER_TRUNC 2 -#define FDS_ERR_INVALID_DIALOG 3 -#define FDS_ERR_INVALID_DRIVE 4 -#define FDS_ERR_INVALID_FILTER 5 -#define FDS_ERR_INVALID_PATHFILE 6 -#define FDS_ERR_OUT_OF_MEMORY 7 -#define FDS_ERR_PATH_TOO_LONG 8 -#define FDS_ERR_TOO_MANY_FILE_TYPES 9 -#define FDS_ERR_INVALID_VERSION 10 -#define FDS_ERR_INVALID_CUSTOM_HANDLE 11 -#define FDS_ERR_DIALOG_LOAD_ERROR 12 -#define FDS_ERR_DRIVE_ERROR 13 -#define IDS_FILE_ALL_FILES_SELECTOR 1000 -#define IDS_FILE_BACK_CUR_PATH 1001 -#define IDS_FILE_BACK_PREV_PATH 1002 -#define IDS_FILE_BACK_SLASH 1003 -#define IDS_FILE_BASE_FILTER 1004 -#define IDS_FILE_BLANK 1005 -#define IDS_FILE_COLON 1006 -#define IDS_FILE_DOT 1007 -#define IDS_FILE_DRIVE_LETTERS 1008 -#define IDS_FILE_FWD_CUR_PATH 1009 -#define IDS_FILE_FWD_PREV_PATH 1010 -#define IDS_FILE_FORWARD_SLASH 1011 -#define IDS_FILE_PARENT_DIR 1012 -#define IDS_FILE_Q_MARK 1013 -#define IDS_FILE_SPLAT 1014 -#define IDS_FILE_SPLAT_DOT 1015 -#define IDS_FILE_SAVEAS_TITLE 1016 -#define IDS_FILE_SAVEAS_FILTER_TXT 1017 -#define IDS_FILE_SAVEAS_FILENM_TXT 1018 -#define IDS_FILE_DUMMY_FILE_NAME 1019 -#define IDS_FILE_DUMMY_FILE_EXT 1020 -#define IDS_FILE_DUMMY_DRIVE 1021 -#define IDS_FILE_DUMMY_ROOT_DIR 1022 -#define IDS_FILE_PATH_PTR 1023 -#define IDS_FILE_VOLUME_PREFIX 1024 -#define IDS_FILE_VOLUME_SUFFIX 1025 -#define IDS_FILE_PATH_PTR2 1026 -#define IDS_FILE_INVALID_CHARS 1027 -#define IDS_FILE_ETC_BACK_SLASH 1028 -#define IDS_FILE_OPEN_PARENTHESIS 1029 -#define IDS_FILE_CLOSE_PARENTHESIS 1030 -#define IDS_FILE_SEMICOLON 1031 -#define IDS_FILE_BAD_DRIVE_NAME 1100 -#define IDS_FILE_BAD_DRIVE_OR_PATH_NAME 1101 -#define IDS_FILE_BAD_FILE_NAME 1102 -#define IDS_FILE_BAD_FQF 1103 -#define IDS_FILE_BAD_NETWORK_NAME 1104 -#define IDS_FILE_BAD_SUB_DIR_NAME 1105 -#define IDS_FILE_DRIVE_NOT_AVAILABLE 1106 -#define IDS_FILE_FQFNAME_TOO_LONG 1107 -#define IDS_FILE_OPEN_DIALOG_NOTE 1108 -#define IDS_FILE_PATH_TOO_LONG 1109 -#define IDS_FILE_SAVEAS_DIALOG_NOTE 1110 -#define IDS_FILE_DRIVE_DISK_CHANGE 1120 -#define IDS_FILE_DRIVE_NOT_READY 1122 -#define IDS_FILE_DRIVE_LOCKED 1123 -#define IDS_FILE_DRIVE_NO_SECTOR 1124 -#define IDS_FILE_DRIVE_SOME_ERROR 1125 -#define IDS_FILE_DRIVE_INVALID 1126 -#define IDS_FILE_INSERT_DISK_NOTE 1127 -#define IDS_FILE_OK_WHEN_READY 1128 -#define FNTM_FACENAMECHANGED (WM_USER+50) -#define FNTM_POINTSIZECHANGED (WM_USER+51) -#define FNTM_STYLECHANGED (WM_USER+52) -#define FNTM_COLORCHANGED (WM_USER+53) -#define FNTM_UPDATEPREVIEW (WM_USER+54) -#define FNTM_FILTERLIST (WM_USER+55) -#define FNTS_CENTER 0x00000001 -#define FNTS_CUSTOM 0x00000002 -#define FNTS_OWNERDRAWPREVIEW 0x00000004 -#define FNTS_HELPBUTTON 0x00000008 -#define FNTS_APPLYBUTTON 0x00000010 -#define FNTS_RESETBUTTON 0x00000020 -#define FNTS_MODELESS 0x00000040 -#define FNTS_INITFROMFATTRS 0x00000080 -#define FNTS_BITMAPONLY 0x00000100 -#define FNTS_VECTORONLY 0x00000200 -#define FNTS_FIXEDWIDTHONLY 0x00000400 -#define FNTS_PROPORTIONALONLY 0x00000800 -#define FNTS_NOSYNTHESIZEDFONTS 0x00001000 -#define FNTS_NATIONAL_LANGUAGE 0x80000000 -#define FNTF_NOVIEWSCREENFONTS 0x0001 -#define FNTF_NOVIEWPRINTERFONTS 0x0002 -#define FNTF_SCREENFONTSELECTED 0x0004 -#define FNTF_PRINTERFONTSELECTED 0x0008 -#define CLRC_FOREGROUND 1 -#define CLRC_BACKGROUND 2 -#define FNTI_BITMAPFONT 0x0001 -#define FNTI_VECTORFONT 0x0002 -#define FNTI_FIXEDWIDTHFONT 0x0004 -#define FNTI_PROPORTIONALFONT 0x0008 -#define FNTI_SYNTHESIZED 0x0010 -#define FNTI_DEFAULTLIST 0x0020 -#define FNTI_FAMILYNAME 0x0100 -#define FNTI_STYLENAME 0x0200 -#define FNTI_POINTSIZE 0x0400 -#define FNTS_SUCCESSFUL 0 -#define FNTS_ERR_INVALID_DIALOG 3 -#define FNTS_ERR_ALLOC_SHARED_MEM 4 -#define FNTS_ERR_INVALID_PARM 5 -#define FNTS_ERR_OUT_OF_MEMORY 7 -#define FNTS_ERR_INVALID_VERSION 10 -#define FNTS_ERR_DIALOG_LOAD_ERROR 12 -#define DID_FONT_DIALOG 300 -#define DID_NAME 301 -#define DID_STYLE 302 -#define DID_DISPLAY_FILTER 303 -#define DID_PRINTER_FILTER 304 -#define DID_SIZE 305 -#define DID_SAMPLE 306 -#define DID_OUTLINE 307 -#define DID_UNDERSCORE 308 -#define DID_STRIKEOUT 309 -#define DID_HELP_BUTTON 310 -#define DID_APPLY_BUTTON 311 -#define DID_RESET_BUTTON 312 -#define DID_OK_BUTTON DID_OK -#define DID_CANCEL_BUTTON DID_CANCEL -#define DID_NAME_PREFIX 313 -#define DID_STYLE_PREFIX 314 -#define DID_SIZE_PREFIX 315 -#define DID_SAMPLE_GROUPBOX 316 -#define DID_EMPHASIS_GROUPBOX 317 -#define DID_FONT_ISO_SUPPORT 318 -#define DID_FONT_ISO_UNTESTED 319 -#define IDS_FONT_SAMPLE 350 -#define IDS_FONT_BLANK 351 -#define IDS_FONT_KEY_0 352 -#define IDS_FONT_KEY_9 353 -#define IDS_FONT_KEY_SEP 354 -#define IDS_FONT_DISP_ONLY 355 -#define IDS_FONT_PRINTER_ONLY 356 -#define IDS_FONT_COMBINED 357 -#define IDS_FONT_WEIGHT1 358 -#define IDS_FONT_WEIGHT2 359 -#define IDS_FONT_WEIGHT3 360 -#define IDS_FONT_WEIGHT4 361 -#define IDS_FONT_WEIGHT5 362 -#define IDS_FONT_WEIGHT6 363 -#define IDS_FONT_WEIGHT7 364 -#define IDS_FONT_WEIGHT8 365 -#define IDS_FONT_WEIGHT9 366 -#define IDS_FONT_WIDTH1 367 -#define IDS_FONT_WIDTH2 368 -#define IDS_FONT_WIDTH3 369 -#define IDS_FONT_WIDTH4 370 -#define IDS_FONT_WIDTH5 371 -#define IDS_FONT_WIDTH6 372 -#define IDS_FONT_WIDTH7 373 -#define IDS_FONT_WIDTH8 374 -#define IDS_FONT_WIDTH9 375 -#define IDS_FONT_OPTION0 376 -#define IDS_FONT_OPTION1 377 -#define IDS_FONT_OPTION2 378 -#define IDS_FONT_OPTION3 379 -#define IDS_FONT_POINT_SIZE_LIST 380 -#define SPBS_ALLCHARACTERS 0x0000 -#define SPBS_NUMERICONLY 0x0001 -#define SPBS_READONLY 0x0002 -#define SPBS_SERVANT 0x0000 -#define SPBS_MASTER 0x0010 -#define SPBS_JUSTDEFAULT 0x0000 -#define SPBS_JUSTRIGHT 0x0004 -#define SPBS_JUSTLEFT 0x0008 -#define SPBS_JUSTCENTER 0x000c -#define SPBS_NOBORDER 0x0020 -#define SPBS_PADWITHZEROS 0x0080 -#define SPBS_FASTSPIN 0x0100 -#define SPBM_OVERRIDESETLIMITS 0x0200 -#define SPBM_QUERYLIMITS 0x0201 -#define SPBM_SETTEXTLIMIT 0x0202 -#define SPBM_SPINUP 0x0203 -#define SPBM_SPINDOWN 0x0204 -#define SPBM_QUERYVALUE 0x0205 -#define SPBM_SETARRAY 0x0206 -#define SPBM_SETLIMITS 0x0207 -#define SPBM_SETCURRENTVALUE 0x0208 -#define SPBM_SETMASTER 0x0209 -#define SPBN_UPARROW 0x020a -#define SPBN_DOWNARROW 0x020b -#define SPBN_ENDSPIN 0x020c -#define SPBN_CHANGE 0x020d -#define SPBN_SETFOCUS 0x020e -#define SPBN_KILLFOCUS 0x020f -#define SPBQ_UPDATEIFVALID 0 -#define SPBQ_ALWAYSUPDATE 1 -#define SPBQ_DONOTUPDATE 3 -#define SLM_ADDDETENT 0x0369 -#define SLM_QUERYDETENTPOS 0x036a -#define SLM_QUERYSCALETEXT 0x036b -#define SLM_QUERYSLIDERINFO 0x036c -#define SLM_QUERYTICKPOS 0x036d -#define SLM_QUERYTICKSIZE 0x036e -#define SLM_REMOVEDETENT 0x036f -#define SLM_SETSCALETEXT 0x0370 -#define SLM_SETSLIDERINFO 0x0371 -#define SLM_SETTICKSIZE 0x0372 -#define SLN_CHANGE 1 -#define SLN_SLIDERTRACK 2 -#define SLN_SETFOCUS 3 -#define SLN_KILLFOCUS 4 -#define SLS_HORIZONTAL 0x0000 -#define SLS_VERTICAL 0x0001 -#define SLS_CENTER 0x0000 -#define SLS_BOTTOM 0x0002 -#define SLS_TOP 0x0004 -#define SLS_LEFT 0x0002 -#define SLS_RIGHT 0x0004 -#define SLS_SNAPTOINCREMENT 0x0008 -#define SLS_BUTTONSBOTTOM 0x0010 -#define SLS_BUTTONSTOP 0x0020 -#define SLS_BUTTONSLEFT 0x0010 -#define SLS_BUTTONSRIGHT 0x0020 -#define SLS_OWNERDRAW 0x0040 -#define SLS_READONLY 0x0080 -#define SLS_RIBBONSTRIP 0x0100 -#define SLS_HOMEBOTTOM 0x0000 -#define SLS_HOMETOP 0x0200 -#define SLS_HOMELEFT 0x0000 -#define SLS_HOMERIGHT 0x0200 -#define SLS_PRIMARYSCALE1 0x0000 -#define SLS_PRIMARYSCALE2 0x0400 -#define SMA_SCALE1 0x0001 -#define SMA_SCALE2 0x0002 -#define SMA_SHAFTDIMENSIONS 0x0000 -#define SMA_SHAFTPOSITION 0x0001 -#define SMA_SLIDERARMDIMENSIONS 0x0002 -#define SMA_SLIDERARMPOSITION 0x0003 -#define SMA_RANGEVALUE 0x0000 -#define SMA_INCREMENTVALUE 0x0001 -#define SMA_SETALLTICKS 0xffff -#define SDA_RIBBONSTRIP 1 -#define SDA_SLIDERSHAFT 2 -#define SDA_BACKGROUND 3 -#define SDA_SLIDERARM 4 -#define PMERR_UPDATE_IN_PROGRESS 0x1f06 -#define SLDERR_INVALID_PARAMETERS (-1) -#define CSM_QUERYRANGE 0x053d -#define CSM_SETRANGE 0x053e -#define CSM_QUERYVALUE 0x053f -#define CSM_SETVALUE 0x0540 -#define CSM_QUERYRADIUS 0x0541 -#define CSM_SETINCREMENT 0x0542 -#define CSM_QUERYINCREMENT 0x0543 -#define CSM_SETBITMAPDATA 0x0544 -#define CSN_SETFOCUS 0x0548 -#define CSN_CHANGED 0x0549 -#define CSN_TRACKING 0x054a -#define CSN_QUERYBACKGROUNDCOLOR 0x054b -#define CSS_NOBUTTON 0x0001 -#define CSS_NOTEXT 0x0002 -#define CSS_NONUMBER 0x0004 -#define CSS_POINTSELECT 0x0008 -#define CSS_360 0x0010 -#define CSS_MIDPOINT 0x0020 -#define CSS_PROPORTIONALTICKS 0x0040 -#define CSS_NOTICKS 0x0080 -#define CSS_CIRCULARVALUE 0x0100 -#define BFA_PAGEDATA 0x0001 -#define BFA_PAGEFROMHWND 0x0002 -#define BFA_PAGEFROMDLGTEMPLATE 0x0004 -#define BFA_PAGEFROMDLGRES 0x0008 -#define BFA_STATUSLINE 0x0010 -#define BFA_MAJORTABBITMAP 0x0020 -#define BFA_MINORTABBITMAP 0x0040 -#define BFA_MAJORTABTEXT 0x0080 -#define BFA_MINORTABTEXT 0x0100 -#define BFA_BIDIINFO 0x0200 -#define BKM_CALCPAGERECT 0x0353 -#define BKM_DELETEPAGE 0x0354 -#define BKM_INSERTPAGE 0x0355 -#define BKM_INVALIDATETABS 0x0356 -#define BKM_TURNTOPAGE 0x0357 -#define BKM_QUERYPAGECOUNT 0x0358 -#define BKM_QUERYPAGEID 0x0359 -#define BKM_QUERYPAGEDATA 0x035a -#define BKM_QUERYPAGEWINDOWHWND 0x035b -#define BKM_QUERYTABBITMAP 0x035c -#define BKM_QUERYTABTEXT 0x035d -#define BKM_SETDIMENSIONS 0x035e -#define BKM_SETPAGEDATA 0x035f -#define BKM_SETPAGEWINDOWHWND 0x0360 -#define BKM_SETSTATUSLINETEXT 0x0361 -#define BKM_SETTABBITMAP 0x0362 -#define BKM_SETTABTEXT 0x0363 -#define BKM_SETNOTEBOOKCOLORS 0x0364 -#define BKM_QUERYPAGESTYLE 0x0365 -#define BKM_QUERYSTATUSLINETEXT 0x0366 -#define BKM_SETPAGEINFO 0x0367 -#define BKM_QUERYPAGEINFO 0x0368 -#define BKM_SETTABCOLOR 0x0374 -#define BKM_SETNOTEBOOKBUTTONS 0x0375 -#define BKN_PAGESELECTED 0x0082 -#define BKN_NEWPAGESIZE 0x0083 -#define BKN_HELP 0x0084 -#define BKN_PAGEDELETED 0x0085 -#define BKN_PAGESELECTEDPENDING 0x0086 -#define BKA_ALL 0x0001 -#define BKA_SINGLE 0x0002 -#define BKA_TAB 0x0004 -#define BKA_LAST 0x0002 -#define BKA_FIRST 0x0004 -#define BKA_NEXT 0x0008 -#define BKA_PREV 0x0010 -#define BKA_TOP 0x0020 -#define BKA_MAJORTAB 0x0001 -#define BKA_MINORTAB 0x0002 -#define BKA_PAGEBUTTON 0x0100 -#define BKA_STATUSTEXTON 0x0001 -#define BKA_MAJOR 0x0040 -#define BKA_MINOR 0x0080 -#define BKA_AUTOPAGESIZE 0x0100 -#define BKA_END 0x0200 -#define BKA_TEXT 0x0400 -#define BKA_BITMAP 0x0800 -#define BKA_AUTOCOLOR (-1) -#define BKA_MAXBUTTONID 7999 -#define BKS_BACKPAGESBR 0x0001 -#define BKS_BACKPAGESBL 0x0002 -#define BKS_BACKPAGESTR 0x0004 -#define BKS_BACKPAGESTL 0x0008 -#define BKS_MAJORTABRIGHT 0x0010 -#define BKS_MAJORTABLEFT 0x0020 -#define BKS_MAJORTABTOP 0x0040 -#define BKS_MAJORTABBOTTOM 0x0080 -#define BKS_SQUARETABS 0x0000 -#define BKS_ROUNDEDTABS 0x0100 -#define BKS_POLYGONTABS 0x0200 -#define BKS_SOLIDBIND 0x0000 -#define BKS_SPIRALBIND 0x0400 -#define BKS_STATUSTEXTLEFT 0x0000 -#define BKS_STATUSTEXTRIGHT 0x1000 -#define BKS_STATUSTEXTCENTER 0x2000 -#define BKS_TABTEXTLEFT 0x0000 -#define BKS_TABTEXTRIGHT 0x4000 -#define BKS_TABTEXTCENTER 0x8000 -#define BKS_BUTTONAREA 0x0200 -#define BKS_TABBEDDIALOG 0x0800 -#define BKA_BACKGROUNDPAGECOLORINDEX 0x0001 -#define BKA_BACKGROUNDPAGECOLOR 0x0002 -#define BKA_BACKGROUNDMAJORCOLORINDEX 0x0003 -#define BKA_BACKGROUNDMAJORCOLOR 0x0004 -#define BKA_BACKGROUNDMINORCOLORINDEX 0x0005 -#define BKA_BACKGROUNDMINORCOLOR 0x0006 -#define BKA_FOREGROUNDMAJORCOLORINDEX 0x0007 -#define BKA_FOREGROUNDMAJORCOLOR 0x0008 -#define BKA_FOREGROUNDMINORCOLORINDEX 0x0009 -#define BKA_FOREGROUNDMINORCOLOR 0x000a -#define BOOKERR_INVALID_PARAMETERS (-1) -#define PMERR_NOT_DRAGGING 0x1f00 -#define PMERR_ALREADY_DRAGGING 0x1f01 -#define WM_DRAGFIRST 0x0310 -#define WM_DRAGLAST 0x032f -#define DM_DROP 0x032f -#define DM_DRAGOVER 0x032e -#define DM_DRAGLEAVE 0x032d -#define DM_DROPHELP 0x032c -#define DM_ENDCONVERSATION 0x032b -#define DM_PRINT 0x032a -#define DM_RENDER 0x0329 -#define DM_RENDERCOMPLETE 0x0328 -#define DM_RENDERPREPARE 0x0327 -#define DM_DRAGFILECOMPLETE 0x0326 -#define DM_EMPHASIZETARGET 0x0325 -#define DM_DRAGERROR 0x0324 -#define DM_FILERENDERED 0x0323 -#define DM_RENDERFILE 0x0322 -#define DM_DRAGOVERNOTIFY 0x0321 -#define DM_PRINTOBJECT 0x0320 -#define DM_DISCARDOBJECT 0x031f -#define DM_DROPNOTIFY 0x031e -#define MSGF_DRAG 0x0010 -#define DC_OPEN 0x0001 -#define DC_REF 0x0002 -#define DC_GROUP 0x0004 -#define DC_CONTAINER 0x0008 -#define DC_PREPARE 0x0010 -#define DC_REMOVEABLEMEDIA 0x0020 -#define DF_MOVE 0x0001 -#define DF_SOURCE 0x0002 -#define DF_SUCCESSFUL 0x0004 -#define DFF_MOVE 1 -#define DFF_COPY 2 -#define DFF_DELETE 3 -#define DGS_DRAGINPROGRESS 0x0001 -#define DGS_LAZYDRAGINPROGRESS 0x0002 -#define DME_IGNOREABORT 1 -#define DME_IGNORECONTINUE 2 -#define DME_REPLACE 3 -#define DME_RETRY 4 -#define DMFL_TARGETSUCCESSFUL 0x0001 -#define DMFL_TARGETFAIL 0x0002 -#define DMFL_NATIVERENDER 0x0004 -#define DMFL_RENDERRETRY 0x0008 -#define DMFL_RENDEROK 0x0010 -#define DMFL_RENDERFAIL 0x0020 -#define DO_DEFAULT 0xbffe -#define DO_UNKNOWN 0xbfff -#define DO_COPYABLE 0x0001 -#define DO_MOVEABLE 0x0002 -#define DO_LINKABLE 0x0004 -#define DO_CREATEABLE 0x0008 -#define DO_CREATEPROGRAMOBJECTABLE 0x0010 -#define DO_COPY 0x0010 -#define DO_MOVE 0x0020 -#define DO_LINK 0x0018 -#define DO_CREATE 0x0040 -#define DO_CREATEPROGRAMOBJECT 0x0080 -#define DOR_NODROP 0x0000 -#define DOR_DROP 0x0001 -#define DOR_NODROPOP 0x0002 -#define DOR_NEVERDROP 0x0003 -#define DRG_ICON 0x0001 -#define DRG_BITMAP 0x0002 -#define DRG_POLYGON 0x0004 -#define DRG_STRETCH 0x0008 -#define DRG_TRANSPARENT 0x0010 -#define DRG_CLOSED 0x0020 -#define DRG_MINIBITMAP 0x0040 -#define DRR_SOURCE 1 -#define DRR_TARGET 2 -#define DRR_ABORT 3 -#define DRT_ASM "Assembler Code" -#define DRT_BASIC "BASIC Code" -#define DRT_BINDATA "Binary Data" -#define DRT_BITMAP "Bitmap" -#define DRT_C "C Code" -#define DRT_COBOL "COBOL Code" -#define DRT_DLL "Dynamic Link Library" -#define DRT_DOSCMD "DOS Command File" -#define DRT_EXE "Executable" -#define DRT_FORTRAN "FORTRAN Code" -#define DRT_ICON "Icon" -#define DRT_LIB "Library" -#define DRT_METAFILE "Metafile" -#define DRT_OS2CMD "OS/2 Command File" -#define DRT_PASCAL "Pascal Code" -#define DRT_RESOURCE "Resource File" -#define DRT_TEXT "Plain Text" -#define DRT_UNKNOWN "Unknown" -#define VDA_ITEM 0x0001 -#define VDA_ITEMBACKGROUND 0x0002 -#define VDA_SURROUNDING 0x0003 -#define VDA_BACKGROUND 0x0004 -#define VIA_BITMAP 0x0001 -#define VIA_ICON 0x0002 -#define VIA_TEXT 0x0004 -#define VIA_RGB 0x0008 -#define VIA_COLORINDEX 0x0010 -#define VIA_OWNERDRAW 0x0020 -#define VIA_DISABLED 0x0040 -#define VIA_DRAGGABLE 0x0080 -#define VIA_DROPONABLE 0x0100 -#define VM_QUERYITEM 0x0375 -#define VM_QUERYITEMATTR 0x0376 -#define VM_QUERYMETRICS 0x0377 -#define VM_QUERYSELECTEDITEM 0x0378 -#define VM_SELECTITEM 0x0379 -#define VM_SETITEM 0x037a -#define VM_SETITEMATTR 0x037b -#define VM_SETMETRICS 0x037c -#define VMA_ITEMSIZE 0x0001 -#define VMA_ITEMSPACING 0x0002 -#define VN_SELECT 0x0078 -#define VN_ENTER 0x0079 -#define VN_DRAGLEAVE 0x007a -#define VN_DRAGOVER 0x007b -#define VN_DROP 0x007c -#define VN_DROPHELP 0x007d -#define VN_INITDRAG 0x007e -#define VN_SETFOCUS 0x007f -#define VN_KILLFOCUS 0x0080 -#define VN_HELP 0x0081 -#define VS_BITMAP 0x0001 -#define VS_ICON 0x0002 -#define VS_TEXT 0x0004 -#define VS_RGB 0x0008 -#define VS_COLORINDEX 0x0010 -#define VS_BORDER 0x0020 -#define VS_ITEMBORDER 0x0040 -#define VS_SCALEBITMAPS 0x0080 -#define VS_RIGHTTOLEFT 0x0100 -#define VS_OWNERDRAW 0x0200 -#define VSERR_INVALID_PARAMETERS (-1) -#define CA_CONTAINERTITLE 0x00000200 -#define CA_TITLESEPARATOR 0x00000400 -#define CA_TITLELEFT 0x00000800 -#define CA_TITLERIGHT 0x00001000 -#define CA_TITLECENTER 0x00002000 -#define CA_OWNERDRAW 0x00004000 -#define CA_DETAILSVIEWTITLES 0x00008000 -#define CA_ORDEREDTARGETEMPH 0x00010000 -#define CA_DRAWBITMAP 0x00020000 -#define CA_DRAWICON 0x00040000 -#define CA_TITLEREADONLY 0x00080000 -#define CA_OWNERPAINTBACKGROUND 0x00100000 -#define CA_MIXEDTARGETEMPH 0x00200000 -#define CA_TREELINE 0x00400000 -#define CCS_EXTENDSEL 0x0001 -#define CCS_MULTIPLESEL 0x0002 -#define CCS_SINGLESEL 0x0004 -#define CCS_AUTOPOSITION 0x0008 -#define CCS_VERIFYPOINTERS 0x0010 -#define CCS_READONLY 0x0020 -#define CCS_MINIRECORDCORE 0x0040 -#define CCS_MINIICONS 0x0800 -#define CCS_NOCONTROLPTR 0x1000 -#define CFA_LEFT 0x00000001 -#define CFA_RIGHT 0x00000002 -#define CFA_CENTER 0x00000004 -#define CFA_TOP 0x00000008 -#define CFA_VCENTER 0x00000010 -#define CFA_BOTTOM 0x00000020 -#define CFA_INVISIBLE 0x00000040 -#define CFA_BITMAPORICON 0x00000100 -#define CFA_SEPARATOR 0x00000200 -#define CFA_HORZSEPARATOR 0x00000400 -#define CFA_STRING 0x00000800 -#define CFA_OWNER 0x00001000 -#define CFA_DATE 0x00002000 -#define CFA_TIME 0x00004000 -#define CFA_FIREADONLY 0x00008000 -#define CFA_FITITLEREADONLY 0x00010000 -#define CFA_ULONG 0x00020000 -#define CFA_RANGE 0x00040000 -#define CFA_NEWCOMP 0x00080000 -#define CFA_OBJECT 0x00100000 -#define CFA_LIST 0x00200000 -#define CFA_CLASS 0x00400000 -#define CFA_IGNORE 0x80000000 -#define CID_LEFTCOLTITLEWND 0x7ff0 -#define CID_RIGHTCOLTITLEWND 0x7ff1 -#define CID_BLANKBOX 0x7ff2 -#define CID_HSCROLL 0x7ff3 -#define CID_RIGHTHSCROLL 0x7ff4 -#define CID_CNRTITLEWND 0x7ff5 -#define CID_LEFTDVWND 0x7ff7 -#define CID_RIGHTDVWND 0x7ff8 -#define CID_VSCROLL 0x7ff9 -#define CID_MLE 0x7ffa -#define CM_ALLOCDETAILFIELDINFO 0x0330 -#define CM_ALLOCRECORD 0x0331 -#define CM_ARRANGE 0x0332 -#define CM_ERASERECORD 0x0333 -#define CM_FILTER 0x0334 -#define CM_FREEDETAILFIELDINFO 0x0335 -#define CM_FREERECORD 0x0336 -#define CM_HORZSCROLLSPLITWINDOW 0x0337 -#define CM_INSERTDETAILFIELDINFO 0x0338 -#define CM_INSERTRECORD 0x0339 -#define CM_INVALIDATEDETAILFIELDINFO 0x033a -#define CM_INVALIDATERECORD 0x033b -#define CM_PAINTBACKGROUND 0x033c -#define CM_QUERYCNRINFO 0x033d -#define CM_QUERYDETAILFIELDINFO 0x033e -#define CM_QUERYDRAGIMAGE 0x033f -#define CM_QUERYRECORD 0x0340 -#define CM_QUERYRECORDEMPHASIS 0x0341 -#define CM_QUERYRECORDFROMRECT 0x0342 -#define CM_QUERYRECORDRECT 0x0343 -#define CM_QUERYVIEWPORTRECT 0x0344 -#define CM_REMOVEDETAILFIELDINFO 0x0345 -#define CM_REMOVERECORD 0x0346 -#define CM_SCROLLWINDOW 0x0347 -#define CM_SEARCHSTRING 0x0348 -#define CM_SETCNRINFO 0x0349 -#define CM_SETRECORDEMPHASIS 0x034a -#define CM_SORTRECORD 0x034b -#define CM_OPENEDIT 0x034c -#define CM_CLOSEEDIT 0x034d -#define CM_COLLAPSETREE 0x034e -#define CM_EXPANDTREE 0x034f -#define CM_QUERYRECORDINFO 0x0350 -#define CM_INSERTRECORDARRAY 0x0351 -#define CM_MOVETREE 0x0352 -#define CM_SETTEXTVISIBILITY 0x0353 -#define CM_SETGRIDINFO 0x0354 -#define CM_QUERYGRIDINFO 0x0355 -#define CM_SNAPTOGRID 0x0356 -#define CMA_TOP 0x0001 -#define CMA_BOTTOM 0x0002 -#define CMA_LEFT 0x0004 -#define CMA_RIGHT 0x0008 -#define CMA_PERIMETER 0x0010 -#define CMA_USER 0x0020 -#define CMA_FIRST 0x0010 -#define CMA_LAST 0x0020 -#define CMA_END 0x0040 -#define CMA_PREV 0x0080 -#define CMA_NEXT 0x0100 -#define CMA_HORIZONTAL 0x0200 -#define CMA_VERTICAL 0x0400 -#define CMA_ICON 0x0800 -#define CMA_TEXT 0x1000 -#define CMA_PARTIAL 0x2000 -#define CMA_COMPLETE 0x4000 -#define CMA_PARENT 0x0001 -#define CMA_FIRSTCHILD 0x0002 -#define CMA_LASTCHILD 0x0004 -#define CMA_CNRTITLE 0x0001 -#define CMA_DELTA 0x0002 -#define CMA_FLWINDOWATTR 0x0004 -#define CMA_LINESPACING 0x0008 -#define CMA_PFIELDINFOLAST 0x0010 -#define CMA_PSORTRECORD 0x0020 -#define CMA_PTLORIGIN 0x0040 -#define CMA_SLBITMAPORICON 0x0080 -#define CMA_XVERTSPLITBAR 0x0100 -#define CMA_PFIELDINFOOBJECT 0x0200 -#define CMA_TREEICON 0x0400 -#define CMA_TREEBITMAP 0x0800 -#define CMA_CXTREEINDENT 0x1000 -#define CMA_CXTREELINE 0x2000 -#define CMA_SLTREEBITMAPORICON 0x4000 -#define CMA_ITEMORDER 0x0001 -#define CMA_WINDOW 0x0002 -#define CMA_WORKSPACE 0x0004 -#define CMA_ZORDER 0x0008 -#define CMA_DELTATOP 0x0001 -#define CMA_DELTABOT 0x0002 -#define CMA_DELTAHOME 0x0004 -#define CMA_DELTAEND 0x0008 -#define CMA_NOREPOSITION 0x0001 -#define CMA_REPOSITION 0x0002 -#define CMA_TEXTCHANGED 0x0004 -#define CMA_ERASE 0x0008 -#define CMA_NOTEXTCHANGED 0x0010 -#define CMA_FILTER 0x1000 -#define CMA_FREE 0x0001 -#define CMA_INVALIDATE 0x0002 -#define CMA_ARRANGESTANDARD 0x0000 -#define CMA_ARRANGEGRID 0x0001 -#define CMA_ARRANGESELECTED 0x0002 -#define CMA_AVAIL 0x0001 -#define CMA_UNAVAIL 0x0002 -#define CN_DRAGAFTER 0x0065 -#define CN_DRAGLEAVE 0x0066 -#define CN_DRAGOVER 0x0067 -#define CN_DROP 0x0068 -#define CN_DROPHELP 0x0069 -#define CN_ENTER 0x006a -#define CN_INITDRAG 0x006b -#define CN_EMPHASIS 0x006c -#define CN_KILLFOCUS 0x006d -#define CN_SCROLL 0x006e -#define CN_QUERYDELTA 0x006f -#define CN_SETFOCUS 0x0070 -#define CN_REALLOCPSZ 0x0071 -#define CN_BEGINEDIT 0x0072 -#define CN_ENDEDIT 0x0073 -#define CN_COLLAPSETREE 0x0074 -#define CN_EXPANDTREE 0x0075 -#define CN_HELP 0x0076 -#define CN_CONTEXTMENU 0x0077 -#define CN_VERIFYEDIT 0x0086 -#define CN_PICKUP 0x0087 -#define CN_DROPNOTIFY 0x0088 -#define CN_GRIDRESIZED 0x0089 -#define CRA_SELECTED 0x00000001 -#define CRA_TARGET 0x00000002 -#define CRA_CURSORED 0x00000004 -#define CRA_INUSE 0x00000008 -#define CRA_FILTERED 0x00000010 -#define CRA_DROPONABLE 0x00000020 -#define CRA_RECORDREADONLY 0x00000040 -#define CRA_EXPANDED 0x00000080 -#define CRA_COLLAPSED 0x00000100 -#define CRA_PICKED 0x00000200 -#define CRA_LOCKED 0x00000400 -#define CRA_DISABLED 0x00001000 -#define CRA_SOURCE 0x00004000 -#define CRA_IGNORE 0x00008000 -#define CRA_OWNERFREE 0x00010000 -#define CRA_OWNERDRAW 0x00020000 -#define CV_TEXT 0x00000001 -#define CV_NAME 0x00000002 -#define CV_ICON 0x00000004 -#define CV_DETAIL 0x00000008 -#define CV_FLOW 0x00000010 -#define CV_MINI 0x00000020 -#define CV_TREE 0x00000040 -#define CV_GRID 0x00000080 -#define CV_EXACTLENGTH 0x10000000 -#define PMERR_NOFILTERED_ITEMS 0x1f02 -#define PMERR_COMPARISON_FAILED 0x1f03 -#define PMERR_RECORD_CURRENTLY_INSERTED 0x1f04 -#define PMERR_FI_CURRENTLY_INSERTED 0x1f05 -#define CCHMAXCLASS 3 -#define QC_First 0 -#define QC_Next 1 -#define QC_Last 2 -#define QC_FIRST QC_First -#define QC_NEXT QC_Next -#define QC_LAST QC_Last -#define CO_FAILIFEXISTS 0 -#define CO_REPLACEIFEXISTS 1 -#define CO_UPDATEIFEXISTS 2 -#define LOCATION_DESKTOP ((PSZ)0xffff0001) -#define SPL_ERROR 0 -#define SPL_OK 1 -#define SPL_INI_SPOOLER "PM_SPOOLER" -#define SPL_INI_QUEUE "PM_SPOOLER_QUEUE" -#define SPL_INI_PRINTER "PM_SPOOLER_PRINTER" -#define SPL_INI_PRINTERDESCR "PM_SPOOLER_PRINTER_DESCR" -#define SPL_INI_QUEUEDESCR "PM_SPOOLER_QUEUE_DESCR" -#define SPL_INI_QUEUEDD "PM_SPOOLER_QUEUE_DD" -#define SPL_INI_QUEUEDDDATA "PM_SPOOLER_QUEUE_DDDATA" -#define SPLC_ABORT 1 -#define SPLC_PAUSE 2 -#define SPLC_CONTINUE 3 -#define SPLDATA_PRINTERJAM 0x0001 -#define SPLDATA_FORMCHGREQD 0x0002 -#define SPLDATA_CARTCHGREQD 0x0004 -#define SPLDATA_PENCHGREQD 0x0008 -#define SPLDATA_DATAERROR 0x0010 -#define SPLDATA_UNEXPECTERROR 0x0020 -#define SPLDATA_OTHER 0x8000 -#define SPLINFO_QPERROR 0x0001 -#define SPLINFO_DDERROR 0x0002 -#define SPLINFO_SPLERROR 0x0004 -#define SPLINFO_OTHERERROR 0x0080 -#define SPLINFO_INFORMATION 0x0100 -#define SPLINFO_WARNING 0x0200 -#define SPLINFO_ERROR 0x0400 -#define SPLINFO_SEVERE 0x0800 -#define SPLINFO_USERINTREQD 0x1000 -#define SPLPORT_VERSION_REGULAR 0 -#define SPLPORT_VERSION_VIRTUAL 1 -#define SSQL_ERROR (-1) -#define QP_RAWDATA_BYPASS 0x0001 -#define QP_PRINT_SEPARATOR_PAGE 0x0002 -#define QPDAT_ADDRESS 0 -#define QPDAT_DRIVER_NAME 1 -#define QPDAT_DRIVER_DATA 2 -#define QPDAT_DATA_TYPE 3 -#define QPDAT_COMMENT 4 -#define QPDAT_PROC_PARAMS 5 -#define QPDAT_SPL_PARAMS 6 -#define QPDAT_NET_PARAMS 7 -#define QPDAT_DOC_NAME 8 -#define QPDAT_QUEUE_NAME 9 -#define QPDAT_TOKEN 10 -#define QPDAT_JOBID 11 -#define CNLEN 15 -#define DTLEN 9 -#define PDLEN 8 -#define QNLEN 12 -#define UNLEN 20 -#define DRIV_DEVICENAME_SIZE 31 -#define DRIV_NAME_SIZE 8 -#define FORMNAME_SIZE 31 -#define MAXCOMMENTSZ 48 -#define PRINTERNAME_SIZE 32 -#define QP_DATATYPE_SIZE 15 -#define PRD_STATUS_MASK 0x0003 -#define PRD_DEVSTATUS 0x0ffc -#define PRD_ACTIVE 0 -#define PRD_PAUSED 1 -#define PRD_DELETE 0 -#define PRD_PAUSE 1 -#define PRD_CONT 2 -#define PRD_RESTART 3 -#define PRD_LOGADDR_PARMNUM 3 -#define PRD_COMMENT_PARMNUM 7 -#define PRD_DRIVERS_PARMNUM 8 -#define PRD_TIMEOUT_PARMNUM 10 -#define PRJ_NOTIFYNAME_PARMNUM 3 -#define PRJ_DATATYPE_PARMNUM 4 -#define PRJ_PARMS_PARMNUM 5 -#define PRJ_POSITION_PARMNUM 6 -#define PRJ_JOBFILEINUSE_PARMNUM 7 -#define PRJ_COMMENT_PARMNUM 11 -#define PRJ_DOCUMENT_PARMNUM 12 -#define PRJ_STATUSCOMMENT_PARMNUM 13 -#define PRJ_PRIORITY_PARMNUM 14 -#define PRJ_PROCPARMS_PARMNUM 16 -#define PRJ_DRIVERDATA_PARMNUM 18 -#define PRJ_SPOOLFILENAME_PARMNUM 19 -#define PRJ_PAGESSPOOLED_PARMNUM 20 -#define PRJ_PAGESSENT_PARMNUM 21 -#define PRJ_PAGESPRINTED_PARMNUM 22 -#define PRJ_TIMEPRINTED_PARMNUM 23 -#define PRJ_EXTENDSTATUS_PARMNUM 24 -#define PRJ_STARTPAGE_PARMNUM 25 -#define PRJ_ENDPAGE_PARMNUM 26 -#define PRJ_MAXPARMNUM 26 -#define PRJ_QSTATUS 0x0003 -#define PRJ_DEVSTATUS 0x0ffc -#define PRJ_COMPLETE 0x0004 -#define PRJ_INTERV 0x0008 -#define PRJ_ERROR 0x0010 -#define PRJ_DESTOFFLINE 0x0020 -#define PRJ_DESTPAUSED 0x0040 -#define PRJ_NOTIFY 0x0080 -#define PRJ_DESTNOPAPER 0x0100 -#define PRJ_DESTFORMCHG 0x0200 -#define PRJ_DESTCRTCHG 0x0400 -#define PRJ_DESTPENCHG 0x0800 -#define PRJ_JOBFILEINUSE 0x4000 -#define PRJ_DELETED 0x8000 -#define PRJ_QS_QUEUED 0 -#define PRJ_QS_PAUSED 1 -#define PRJ_QS_SPOOLING 2 -#define PRJ_QS_PRINTING 3 -#define PRJ_MAX_PRIORITY 99 -#define PRJ_MIN_PRIORITY 1 -#define PRJ_NO_PRIORITY 0 -#define PRJ4_INPRINTER 0x0001 -#define PRJ4_STACKED 0x0002 -#define PRJ4_HELDINPRINTER 0x0004 -#define PRJ4_JOBSTARTED 0x0008 -#define PRPO_PORT_DRIVER 1 -#define PRPO_PROTOCOL_CNV 2 -#define PRPO_MODE 3 -#define PRPO_PRIORITY 4 -#define PRPORT_AUTODETECT 1 -#define PRPORT_DISABLE_BIDI 2 -#define PRPORT_ENABLE_BIDI 3 -#define PRQ_PRIORITY_PARMNUM 2 -#define PRQ_STARTTIME_PARMNUM 3 -#define PRQ_UNTILTIME_PARMNUM 4 -#define PRQ_SEPARATOR_PARMNUM 5 -#define PRQ_PROCESSOR_PARMNUM 6 -#define PRQ_DESTINATIONS_PARMNUM 7 -#define PRQ_PARMS_PARMNUM 8 -#define PRQ_COMMENT_PARMNUM 9 -#define PRQ_TYPE_PARMNUM 10 -#define PRQ_PRINTERS_PARMNUM 12 -#define PRQ_DRIVERNAME_PARMNUM 13 -#define PRQ_DRIVERDATA_PARMNUM 14 -#define PRQ_REMOTE_COMPUTER_PARMNUM 15 -#define PRQ_REMOTE_QUEUE_PARMNUM 16 -#define PRQ_MAXPARMNUM 16 -#define PRQ_MAX_PRIORITY 1 -#define PRQ_DEF_PRIORITY 5 -#define PRQ_MIN_PRIORITY 9 -#define PRQ_NO_PRIORITY 0 -#define PRQ_STATUS_MASK 3 -#define PRQ_ACTIVE 0 -#define PRQ_PAUSED 1 -#define PRQ_ERROR 2 -#define PRQ_PENDING 3 -#define PRQ3_PAUSED 0x0001 -#define PRQ3_PENDING 0x0002 -#define PRQ3_TYPE_RAW 0x0001 -#define PRQ3_TYPE_BYPASS 0x0002 -#define PRQ3_TYPE_APPDEFAULT 0x0004 -#define SPL_PR_QUEUE 0x0001 -#define SPL_PR_DIRECT_DEVICE 0x0002 -#define SPL_PR_QUEUED_DEVICE 0x0004 -#define SPL_PR_LOCAL_ONLY 0x0100 -#define CMIC_HIDE_PANEL_ID 0x0000 -#define CMIC_SHOW_PANEL_ID 0x0001 -#define CMIC_TOGGLE_PANEL_ID 0x0002 -#define CTRL_PREVIOUS_ID ((USHORT)0x0001) -#define CTRL_SEARCH_ID ((USHORT)0x0002) -#define CTRL_PRINT_ID ((USHORT)0x0003) -#define CTRL_INDEX_ID ((USHORT)0x0004) -#define CTRL_CONTENTS_ID ((USHORT)0x0005) -#define CTRL_BACK_ID ((USHORT)0x0006) -#define CTRL_FORWARD_ID ((USHORT)0x0007) -#define CTRL_TUTORIAL_ID ((USHORT)0x00ff) -#define CTRL_USER_ID_BASE ((USHORT)0x0101) -#define HM_MSG_BASE 0x0220 -#define HM_DISMISS_WINDOW 0x0221 -#define HM_DISPLAY_HELP 0x0222 -#define HM_EXT_HELP 0x0223 -#define HM_GENERAL_HELP 0x0223 /*!*/ -#define HM_SET_ACTIVE_WINDOW 0x0224 -#define HM_LOAD_HELP_TABLE 0x0225 -#define HM_CREATE_HELP_TABLE 0x0226 -#define HM_SET_HELP_WINDOW_TITLE 0x0227 -#define HM_SET_SHOW_PANEL_ID 0x0228 -#define HM_REPLACE_HELP_FOR_HELP 0x0229 -#define HM_REPLACE_USING_HELP 0x0229 /*!*/ -#define HM_HELP_INDEX 0x022a -#define HM_HELP_CONTENTS 0x022b -#define HM_KEYS_HELP 0x022c -#define HM_SET_HELP_LIBRARY_NAME 0x022d -#define HM_ERROR 0x022e -#define HM_HELPSUBITEM_NOT_FOUND 0x022f -#define HM_QUERY_KEYS_HELP 0x0230 -#define HM_TUTORIAL 0x0231 -#define HM_EXT_HELP_UNDEFINED 0x0232 -#define HM_GENERAL_HELP_UNDEFINED 0x0232 /*!*/ -#define HM_ACTIONBAR_COMMAND 0x0233 -#define HM_INFORM 0x0234 -#define HM_SET_OBJCOM_WINDOW 0x0238 -#define HM_UPDATE_OBJCOM_WINDOW_CHAIN 0x0239 -#define HM_QUERY_DDF_DATA 0x023a -#define HM_INVALIDATE_DDF_DATA 0x023b -#define HM_QUERY 0x023c -#define HM_SET_COVERPAGE_SIZE 0x023d -#define HM_NOTIFY 0x0242 -#define HM_SET_USERDATA 0x0243 -#define HM_CONTROL 0x0244 -#define HM_RESOURCEID 0 -#define HM_PANELNAME 1 -#define HMERR_NO_FRAME_WND_IN_CHAIN 0x1001 -#define HMERR_INVALID_ASSOC_APP_WND 0x1002 -#define HMERR_INVALID_ASSOC_HELP_INST 0x1003 -#define HMERR_INVALID_DESTROY_HELP_INST 0x1004 -#define HMERR_NO_HELP_INST_IN_CHAIN 0x1005 -#define HMERR_INVALID_HELP_INSTANCE_HDL 0x1006 -#define HMERR_INVALID_QUERY_APP_WND 0x1007 -#define HMERR_HELP_INST_CALLED_INVALID 0x1008 -#define HMERR_HELPTABLE_UNDEFINE 0x1009 -#define HMERR_HELP_INSTANCE_UNDEFINE 0x100a -#define HMERR_HELPITEM_NOT_FOUND 0x100b -#define HMERR_INVALID_HELPSUBITEM_SIZE 0x100c -#define HMERR_HELPSUBITEM_NOT_FOUND 0x100d -#define HMERR_INDEX_NOT_FOUND 0x2001 -#define HMERR_CONTENT_NOT_FOUND 0x2002 -#define HMERR_OPEN_LIB_FILE 0x2003 -#define HMERR_READ_LIB_FILE 0x2004 -#define HMERR_CLOSE_LIB_FILE 0x2005 -#define HMERR_INVALID_LIB_FILE 0x2006 -#define HMERR_NO_MEMORY 0x2007 -#define HMERR_ALLOCATE_SEGMENT 0x2008 -#define HMERR_FREE_MEMORY 0x2009 -#define HMERR_PANEL_NOT_FOUND 0x2010 -#define HMERR_DATABASE_NOT_OPEN 0x2011 -#define HMERR_LOAD_DLL 0x2013 -#define HMPANELTYPE_NUMBER 0 -#define HMPANELTYPE_NAME 1 -#define HMQVP_NUMBER 0x0001 -#define HMQVP_NAME 0x0002 -#define HMQVP_GROUP 0x0003 -#define HMQW_COVERPAGE 0x0001 -#define HMQW_INDEX 0x0002 -#define HMQW_TOC 0x0003 -#define HMQW_SEARCH 0x0004 -#define HMQW_VIEWPAGES 0x0005 -#define HMQW_LIBRARY 0x0006 -#define HMQW_VIEWPORT 0x0007 -#define HMQW_OBJCOM_WINDOW 0x0008 -#define HMQW_INSTANCE 0x0009 -#define HMQW_ACTIVEVIEWPORT 0x000a -#define CONTROL_SELECTED 0x000b -#define HMQW_GROUP_VIEWPORT 0x00f1 -#define HMQW_RES_VIEWPORT 0x00f2 -#define USERDATA 0x00f3 -#define HWND_PARENT (HWND)NULL -#define OPEN_COVERPAGE 0x0001 -#define OPEN_PAGE 0x0002 -#define SWAP_PAGE 0x0003 -#define OPEN_TOC 0x0004 -#define OPEN_INDEX 0x0005 -#define OPEN_HISTORY 0x0006 -#define OPEN_SEARCH_HIT_LIST 0x0007 -#define OPEN_LIBRARY 0x0008 -#define ART_RUNIN 0x0010 -#define ART_LEFT 0x0001 -#define ART_RIGHT 0x0002 -#define ART_CENTER 0x0004 -#define CLR_UNCHANGED (-6) -#define HMBT_NONE 1 -#define HMBT_ALL 2 -#define HMBT_FIT 3 -#define HMERR_DDF_MEMORY 0x3001 -#define HMERR_DDF_ALIGN_TYPE 0x3002 -#define HMERR_DDF_BACKCOLOR 0x3003 -#define HMERR_DDF_FORECOLOR 0x3004 -#define HMERR_DDF_FONTSTYLE 0x3005 -#define HMERR_DDF_REFTYPE 0x3006 -#define HMERR_DDF_LIST_UNCLOSED 0x3007 -#define HMERR_DDF_LIST_UNINITIALIZED 0x3008 -#define HMERR_DDF_LIST_BREAKTYPE 0x3009 -#define HMERR_DDF_LIST_SPACING 0x300A -#define HMERR_DDF_HINSTANCE 0x300B -#define HMERR_DDF_EXCEED_MAX_LENGTH 0x300C -#define HMERR_DDF_EXCEED_MAX_INC 0x300D -#define HMERR_DDF_INVALID_DDF 0x300E -#define HMERR_DDF_FORMAT_TYPE 0x300F -#define HMERR_DDF_INVALID_PARM 0x3010 -#define HMERR_DDF_INVALID_FONT 0x3011 -#define HMERR_DDF_SEVERE 0x3012 -#define HMLS_SINGLELINE 1 -#define HMLS_DOUBLELINE 2 -#define REFERENCE_BY_ID 0 -#define REFERENCE_BY_RES 1 -#define FONTDEFFONT1 0x0047 -#define FONTDEFFONT2 0x0042 -#define FONTDEFFONT3 0x0042 -#define FONTDEFCHAR1 0x0081 -#define FONTDEFCHAR2 0x0081 -#define FONTDEFCHAR3 0x00b8 -#define FONTDEFDEVFONT 0x2000 -#define FONTDEFFOCA32 0x4000 -#define SPACE_UNDEF 0x8000 -#define FONT_SIGNATURE 0xfffffffe -#define FONT_METRICS 0x00000001 -#define FONT_DEFINITION 0x00000002 -#define FONT_KERNPAIRS 0x00000003 -#define FONT_ADDITIONALMETRICS 0x00000004 -#define FONT_ENDRECORD 0xffffffff -#define QUERY_PUBLIC_FONTS 0x0001 -#define QUERY_PRIVATE_FONTS 0x0002 -#define CDEF_GENERIC 0x0001 -#define CDEF_BOLD 0x0002 -#define CDEF_ITALIC 0x0004 -#define CDEF_UNDERSCORE 0x0008 -#define CDEF_STRIKEOUT 0x0010 -#define CDEF_OUTLINE 0x0020 -#define FORMAT_CGA 0x0001 -#define FORMAT_4BYTE 0x0003 -#define VQF_PUBLIC 0x0001 -#define VQF_PRIVATE 0x0002 -#define MONITOR_DEFAULT 0x0000 -#define MONITOR_BEGIN 0x0001 -#define MONITOR_END 0x0002 -#define IO_WAIT 0 -#define IO_NOWAIT 1 -#define KBDSTF_RIGHTSHIFT 0x0001 -#define KBDSTF_LEFTSHIFT 0x0002 -#define KBDSTF_CONTROL 0x0004 -#define KBDSTF_ALT 0x0008 -#define KBDSTF_SCROLLLOCK_ON 0x0010 -#define KBDSTF_NUMLOCK_ON 0x0020 -#define KBDSTF_CAPSLOCK_ON 0x0040 -#define KBDSTF_INSERT_ON 0x0080 -#define KBDSTF_LEFTCONTROL 0x0100 -#define KBDSTF_LEFTALT 0x0200 -#define KBDSTF_RIGHTCONTROL 0x0400 -#define KBDSTF_RIGHTALT 0x0800 -#define KBDSTF_SCROLLLOCK 0x1000 -#define KBDSTF_NUMLOCK 0x2000 -#define KBDSTF_CAPSLOCK 0x4000 -#define KBDSTF_SYSREQ 0x8000 -#define KBDTRF_SHIFT_KEY_IN 0x01 -#define KBDTRF_EXTENDED_CODE 0x02 -#define KBDTRF_CONVERSION_REQUEST 0x20 -#define KBDTRF_FINAL_CHAR_IN 0x40 -#define KBDTRF_INTERIM_CHAR_IN 0x80 -#define KEYBOARD_ECHO_ON 0x0001 -#define KEYBOARD_ECHO_OFF 0x0002 -#define KEYBOARD_BINARY_MODE 0x0004 -#define KEYBOARD_ASCII_MODE 0x0008 -#define KEYBOARD_MODIFY_STATE 0x0010 -#define KEYBOARD_MODIFY_INTERIM 0x0020 -#define KEYBOARD_MODIFY_TURNAROUND 0x0040 -#define KEYBOARD_2B_TURNAROUND 0x0080 -#define KEYBOARD_SHIFT_REPORT 0x0100 -#define KR_KBDCHARIN 0x00000001 -#define KR_KBDPEEK 0x00000002 -#define KR_KBDFLUSHBUFFER 0x00000004 -#define KR_KBDGETSTATUS 0x00000008 -#define KR_KBDSETSTATUS 0x00000010 -#define KR_KBDSTRINGIN 0x00000020 -#define KR_KBDOPEN 0x00000040 -#define KR_KBDCLOSE 0x00000080 -#define KR_KBDGETFOCUS 0x00000100 -#define KR_KBDFREEFOCUS 0x00000200 -#define KR_KBDGETCP 0x00000400 -#define KR_KBDSETCP 0x00000800 -#define KR_KBDXLATE 0x00001000 -#define KR_KBDSETCUSTXT 0x00002000 -#define ANSI_OFF 0 -#define ANSI_ON 1 -#define COLORS_2 0x01 -#define COLORS_4 0x02 -#define COLORS_16 0x04 -#define VGMT_OTHER 0x01 -#define VGMT_GRAPHICS 0x02 -#define VGMT_DISABLEBURST 0x04 -#define VP_NOWAIT 0x0000 -#define VP_WAIT 0x0001 -#define VP_OPAQUE 0x0000 -#define VP_TRANSPARENT 0x0002 -#define VMWR_POPUP 0 -#define VMWN_POPUP 0 -#define VSRWI_SAVEANDREDRAW 0 -#define VSRWI_REDRAW 1 -#define VSRWN_SAVE 0 -#define VSRWN_REDRAW 1 -#define UNDOI_GETOWNER 0 -#define UNDOI_RELEASEOWNER 1 -#define UNDOK_ERRORCODE 0 -#define UNDOK_TERMINATE 1 -#define LOCKIO_NOWAIT 0 -#define LOCKIO_WAIT 1 -#define LOCK_SUCCESS 0 -#define LOCK_FAIL 1 -#define VCC_SBCSCHAR 0 -#define VCC_DBCSFULLCHAR 1 -#define VCC_DBCS1STHALF 2 -#define VCC_DBCS2NDHALF 3 -#define VGFI_GETCURFONT 0 -#define VGFI_GETROMFONT 1 -#define VIO_CONFIG_CURRENT 0 -#define VIO_CONFIG_PRIMARY 1 -#define VIO_CONFIG_SECONDARY 2 -#define DISPLAY_MONOCHROME 0 -#define DISPLAY_CGA 1 -#define DISPLAY_EGA 2 -#define DISPLAY_VGA 3 -#define DISPLAY_8514A 7 -#define DISPLAY_IMAGEADAPTER 8 -#define DISPLAY_XGA 9 -#define MONITOR_MONOCHROME 0x0000 -#define MONITOR_COLOR 0x0001 -#define MONITOR_ENHANCED 0x0002 -#define MONITOR_8503 0x0003 -#define MONITOR_851X_COLOR 0x0004 -#define MONITOR_8514 0x0009 -#define MONITOR_FLATPANEL 0x000a -#define MONITOR_8507_8604 0x000b -#define MONITOR_8515 0x000c -#define MONITOR_9515 0x000f -#define MONITOR_9517 0x0011 -#define MONITOR_9518 0x0012 -#define VR_VIOGETCURPOS 0x00000001 -#define VR_VIOGETCURTYPE 0x00000002 -#define VR_VIOGETMODE 0x00000004 -#define VR_VIOGETBUF 0x00000008 -#define VR_VIOGETPHYSBUF 0x00000010 -#define VR_VIOSETCURPOS 0x00000020 -#define VR_VIOSETCURTYPE 0x00000040 -#define VR_VIOSETMODE 0x00000080 -#define VR_VIOSHOWBUF 0x00000100 -#define VR_VIOREADCHARSTR 0x00000200 -#define VR_VIOREADCELLSTR 0x00000400 -#define VR_VIOWRTNCHAR 0x00000800 -#define VR_VIOWRTNATTR 0x00001000 -#define VR_VIOWRTNCELL 0x00002000 -#define VR_VIOWRTTTY 0x00004000 -#define VR_VIOWRTCHARSTR 0x00008000 -#define VR_VIOWRTCHARSTRATT 0x00010000 -#define VR_VIOWRTCELLSTR 0x00020000 -#define VR_VIOSCROLLUP 0x00040000 -#define VR_VIOSCROLLDN 0x00080000 -#define VR_VIOSCROLLLF 0x00100000 -#define VR_VIOSCROLLRT 0x00200000 -#define VR_VIOSETANSI 0x00400000 -#define VR_VIOGETANSI 0x00800000 -#define VR_VIOPRTSC 0x01000000 -#define VR_VIOSCRLOCK 0x02000000 -#define VR_VIOSCRUNLOCK 0x04000000 -#define VR_VIOSAVREDRAWWAIT 0x08000000 -#define VR_VIOSAVREDRAWUNDO 0x10000000 -#define VR_VIOPOPUP 0x20000000 -#define VR_VIOENDPOPUP 0x40000000 -#define VR_VIOPRTSCTOGGLE 0x80000000 -#define VR_VIOMODEWAIT 0x00000001 -#define VR_VIOMODEUNDO 0x00000002 -#define VR_VIOGETFONT 0x00000004 -#define VR_VIOGETCONFIG 0x00000008 -#define VR_VIOSETCP 0x00000010 -#define VR_VIOGETCP 0x00000020 -#define VR_VIOSETFONT 0x00000040 -#define VR_VIOGETSTATE 0x00000080 -#define VR_VIOSETSTATE 0x00000100 -#define MOU_NODRAW 0x0001 -#define MOU_DRAW 0x0000 -#define MOU_MICKEYS 0x0002 -#define MOU_PELS 0x0000 -#define MR_MOUGETNUMBUTTONS 0x00000001 -#define MR_MOUGETNUMMICKEYS 0x00000002 -#define MR_MOUGETDEVSTATUS 0x00000004 -#define MR_MOUGETNUMQUEEL 0x00000008 -#define MR_MOUREADEVENTQUE 0x00000010 -#define MR_MOUGETSCALEFACT 0x00000020 -#define MR_MOUGETEVENTMASK 0x00000040 -#define MR_MOUSETSCALEFACT 0x00000080 -#define MR_MOUSETEVENTMASK 0x00000100 -#define MR_MOUOPEN 0x00000800 -#define MR_MOUCLOSE 0x00001000 -#define MR_MOUGETPTRSHAPE 0x00002000 -#define MR_MOUSETPTRSHAPE 0x00004000 -#define MR_MOUDRAWPTR 0x00008000 -#define MR_MOUREMOVEPTR 0x00010000 -#define MR_MOUGETPTRPOS 0x00020000 -#define MR_MOUSETPTRPOS 0x00040000 -#define MR_MOUINITREAL 0x00080000 -#define MR_MOUSETDEVSTATUS 0x00100000 diff --git a/harbour/contrib/hgf/os2pm/tform.prg b/harbour/contrib/hgf/os2pm/tform.prg index 57da49b49f..a30f41d982 100644 --- a/harbour/contrib/hgf/os2pm/tform.prg +++ b/harbour/contrib/hgf/os2pm/tform.prg @@ -57,69 +57,158 @@ #include "hbclass.ch" #include "os2pm.ch" // Needed to store some OS/2 PM constant values -CLASS TForm - DATA hWnd - DATA oMainMenu +// Win32 compatibility Message redefinition +#define WM_LBUTTONDOWN WM_BUTTON1DOWN + + +static aForms := {} + + +CLASS HBForm FROM HBWinControl + + DATA oMainMenu + DATA OnClick PROPERTY + DATA aControls PROPERTY CLASSDATA lRegistered METHOD New() + METHOD Close() INLINE SendMessage( ::hWnd, WM_CLOSE ) + METHOD Command( nNotifyCode, nId, hWndCtl ) + METHOD HandleEvent( nMsg, nParam1, nParam2 ) + METHOD InsertControl( oControl ) + METHOD LButtonDown( nKeyFlags, nXPos, nYPos ) METHOD ShowModal() - ACCESS cCaption() INLINE WinGetText( ::hWnd ) - ASSIGN cCaption( cNewCaption ) INLINE ; - WinSetWindowText( ::hWnd, cNewCaption ) - - ACCESS oMenu() INLINE ::oMainMenu - ASSIGN oMenu( oNewMenu ) - - ACCESS nWidth() INLINE WinGetWidth( ::hWnd ) - ASSIGN nWidth( nNewWidth ) INLINE ; - WinSetWidth( ::hWnd, nNewWidth ) + ACCESS Menu() INLINE ::oMainMenu PROPERTY + ASSIGN Menu( oNewMenu ) ENDCLASS -METHOD New() CLASS TForm +METHOD New() CLASS HBForm - local hWndClient + local hWC DEFAULT ::lRegistered TO .f. - if ! ::lRegistered + if ! ::lRegistered // Notice that this code may be moved to a method Register() // so we hide again the OS API details - - WinRegisterClass( "HB_TFORM",; - (CS_SIZEREDRAW + 0x2000001), 0 ) + WinRegisterClass("HB_HBForm", CS_SIZEREDRAW, 0, 0 ) ::lRegistered = .t. endif // Again this code may be moved to a method Create() to hide the // OS API details - ::hWnd = WinCreateStdWindow( HWND_DESKTOP,; WS_VISIBLE,; (FCF_TITLEBAR + FCF_SYSMENU +; FCF_SIZEBORDER + FCF_TASKLIST +; FCF_MINMAX + FCF_SHELLPOSITION ),; - "HB_TFORM", "Harbour TForm",; + "HB_HBForm", "Harbour HBForm",; (WS_SYNCPAINT + WS_VISIBLE ),,,; - @hWndClient ) // Not used yet + @hWC ) + ::hWndClient := hWC + + AAdd(aForms, Self) return Self -METHOD ShowModal() CLASS TForm +METHOD Command( nNotifyCode, nId, hWndCtl ) CLASS HBForm - HB_PM_ShowModal() + local oMenuItem, nAt, oControl + + do case + case nNotifyCode == CMDSRC_MENU // Menu command + if ::Menu != nil + if( oMenuItem := ::Menu:FindItem( nId ) ) != nil + if oMenuItem:OnClick != nil + __ObjSendMsg( Self, oMenuItem:OnClick, oMenuItem ) + endif + endif + endif + + case nNotifyCode == CMDSRC_PUSHBUTTON + nAt = AScan( ::aControls, { | o | o:nId == nId } ) + if nAt != 0 + oControl = ::aControls[ nAt ] + if oControl:OnClick != nil + __ObjSendMsg( Self, oControl:OnClick, oControl ) + endif + endif + + otherwise + endcase return nil -ASSIGN oMenu( oNewMenu ) CLASS TForm +METHOD InsertControl( oControl ) CLASS HBForm + + DEFAULT ::aControls TO {} + + AAdd( ::aControls, oControl ) + oControl:Show() + +return nil + + +METHOD LButtonDown( nKeyFlags, nXPos, nYPos ) CLASS HBForm + + if ::OnClick != nil + return __ObjSendMsg( Self, ::OnClick, Self, nXPos, nYPos ) + endif + +return nil + + +METHOD HandleEvent( nMsg, nParam1, nParam2 ) CLASS HBForm + + do case + case nMsg == WM_COMMAND + /* + param1 + USHORT uscmd // Command value. + param2 + USHORT ussource // Source type. + USHORT uspointer // Pointer-device indicator. + returns + ULONG ulReserved // Reserved value, should be 0. + */ + ::Command( nLoWord( nParam2 ), nLoWord( nParam1 ), nil ) + return 0 + + case nMsg == WM_LBUTTONDOWN + /* + param1 + POINTS ptspointerpos // Pointer position. + param2 + USHORT fsHitTestres // Hit-test result. + USHORT fsflags // Keyboard control codes. + returns + BOOL rc // Processed indicator. + */ + return ::LButtonDown( nHiWord(nParam2), nLoWord( nParam1 ), nHiWord( nParam1 ) ) + + case nMsg == WM_DESTROY + PostQuitMessage( 0 ) + return 0 + endcase + +return nil + +METHOD ShowModal() CLASS HBForm + + HB_FormShowModal(::hWnd) + +return nil + + +ASSIGN Menu( oNewMenu ) CLASS HBForm ::oMainMenu := oNewMenu @@ -128,3 +217,16 @@ ASSIGN oMenu( oNewMenu ) CLASS TForm WinSendMsg( ::hWnd, WM_UPDATEFRAME, FCF_MENU, 0 ) return nil + + +function HB_GUI( hWnd, nMsg, nParam1, nParam2 ) // messages entry point + + static aReturn := { nil, nil } + + local nForm := AScan( aForms, { | oForm | oForm:hWndClient == hWnd } ) + + if nForm != 0 + aReturn[ 1 ] = aForms[ nForm ]:HandleEvent( nMsg, nParam1, nParam2 ) + endif + +return aReturn diff --git a/harbour/contrib/hgf/os2pm/tmenu.prg b/harbour/contrib/hgf/os2pm/tmenu.prg index 295b9915dc..f4a1347ff9 100644 --- a/harbour/contrib/hgf/os2pm/tmenu.prg +++ b/harbour/contrib/hgf/os2pm/tmenu.prg @@ -57,34 +57,55 @@ #include "os2pm.ch" -CLASS TMenu +CLASS HBMenu FROM HBPersistent - DATA nHandle // Handle of MIS_ACTIONBAR - DATA aItems // Items inside this menu - DATA oParent // Parent/Owner of menu + DATA nHandle // Handle of MIS_ACTIONBAR + DATA Items PROPERTY // Items inside this menu METHOD New(oForm) METHOD Add(oMenuItem) + METHOD FindItem( nId ) // Searches for a sub menuitem given its id ENDCLASS -METHOD New( oForm ) CLASS TMenu +METHOD New( oForm ) CLASS HBMenu - ::aItems := {} - ::oParent := oForm - ::nHandle := WinCreateMenu( oForm:hWnd ) + ::Items := {} + + if oForm != nil + ::nHandle = WinCreateMenu( oForm:hWnd ) + endif return Self -METHOD Add( oMenuItem ) CLASS TMenu +METHOD Add( oMenuItem ) CLASS HBMenu - WinAddMenuItem( ::nHandle, oMenuItem:cCaption, MIT_END,; - nil, oMenuItem:nId, oMenuItem:lEnabled ) + WinAddMenuItem( ::nHandle, oMenuItem:Caption, MIT_END,; + nil, oMenuItem:nId, oMenuItem:Enabled ) - AAdd( ::aItems, oMenuItem ) + AAdd( ::Items, oMenuItem ) return nil +METHOD FindItem( nId ) CLASS HBMenu + + local oMenuItem, n + + for n = 1 to Len( ::Items ) + if ( oMenuItem := ::Items[ n ] ):nId == nId + return oMenuItem + else + if oMenuItem:Items != nil + if ( oMenuItem := oMenuItem:FindItem( nId ) ) != nil + return oMenuItem + endif + endif + endif + next + +return oMenuItem + + diff --git a/harbour/contrib/hgf/os2pm/tmenuitm.prg b/harbour/contrib/hgf/os2pm/tmenuitm.prg index 6e181b7270..aca158c323 100644 --- a/harbour/contrib/hgf/os2pm/tmenuitm.prg +++ b/harbour/contrib/hgf/os2pm/tmenuitm.prg @@ -58,40 +58,44 @@ #include "os2pm.ch" -CLASS TMenuItem - DATA cCaption // Specifies the text of the menu item - DATA OnClick // A character description of the method to invoke - DATA nId // Command value to send to the container form - DATA lEnabled // Specifies whether the menu item is enabled +CLASS HBMenuItem FROM HBPersistent - DATA aItems // Contains the menu items in the submenu of the menu item - DATA oParent // Identifies the parent menu item of this menu item - DATA nHandle // The handle of submenu window (if there is any) + DATA Caption PROPERTY // Specifies the text of the menu item + DATA Name PROPERTY // The name of this component + DATA OnClick PROPERTY // A character description of the method to invoke + DATA Enabled PROPERTY // Specifies whether the menu item is enabled + DATA Items PROPERTY // Contains the menu items in the submenu of the menu item - CLASSDATA nIdStart // start value for commands value to assign to menu items + DATA nId // Command value to send to the container form + DATA oParent // Identifies the parent menu item of this menu item + DATA nHandle // The handle of the submenu of this menu item - METHOD New( oOwner ) // Creates a new menu item - METHOD Add( oMenuItem ) // Adds a new drop down menu item + CLASSDATA nIdStart // start value for commands value to assign to menu items + + METHOD New( oOwner ) // Creates a new menu item + METHOD Add( oMenuItem ) // Adds a new drop down menu item + METHOD FindItem( nId ) // Searches for a sub menuitem given its id ENDCLASS -METHOD New( oOwner ) CLASS TMenuItem +METHOD New( oOwner ) CLASS HBMenuItem DEFAULT ::nIdStart TO 110 - ::cCaption = "" - ::nId = ::nIdStart++ - ::lEnabled = .t. - ::oParent = oOwner + ::Caption = "" + ::nId = ::nIdStart++ + ::Enabled = .t. + ::oParent = oOwner + ::nHandle = nil return Self -METHOD Add( oMenuItem ) CLASS TMenuItem +METHOD Add( oMenuItem ) CLASS HBMenuItem - DEFAULT ::aItems TO {} + DEFAULT ::Items TO {} if ::nHandle == nil ::nHandle := WinCreateMenu( ::oParent:nHandle ) @@ -99,14 +103,31 @@ METHOD Add( oMenuItem ) CLASS TMenuItem endif - WinAddMenuItem(::nHandle, oMenuItem:cCaption, MIT_END,; - nil, oMenuItem:nId, oMenuItem:lEnabled ) + WinAddMenuItem(::nHandle, oMenuItem:Caption, MIT_END,; + nil, oMenuItem:nId, oMenuItem:Enabled ) - AAdd( ::aItems, oMenuItem ) + AAdd( ::Items, oMenuItem ) return nil +METHOD FindItem( nId ) CLASS HBMenuItem + + local oMenuItem, n + + for n = 1 to Len( ::Items ) + if ( oMenuItem := ::Items[ n ] ):nId == nId + return oMenuItem + else + if oMenuItem:Items != nil + if ( oMenuItem := oMenuItem:FindItem( nId ) ) != nil + return oMenuItem + endif + endif + endif + next + +return oMenuItem diff --git a/harbour/contrib/hgf/os2pm/winctrl.prg b/harbour/contrib/hgf/os2pm/winctrl.prg new file mode 100644 index 0000000000..3082e7a4c2 --- /dev/null +++ b/harbour/contrib/hgf/os2pm/winctrl.prg @@ -0,0 +1,95 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * Harbour GUI framework for IBM OS/2 Presentation Manager + * Class HBWinControl + * + * Copyright 2001 Antonio Linares + * Copyright 2001 Maurilio Longo + * www - http://www.harbour-project.org + * + * Copyright 2001 Antonio Linares + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ + +#include "common.ch" +#include "hbclass.ch" + +// NOTE: What does this define do under Win32? +#define SW_SHOWNA 8 + + +CLASS HBWinControl FROM HBPersistent + + DATA hWnd // Frame Window Handle + DATA hWndClient // Client Window Handle + + DATA nId + + CLASSDATA nInitId + + ACCESS Caption() INLINE WinGetText( ::hWnd ) PROPERTY + ASSIGN Caption( cNewCaption ) INLINE ; + WinSetWindowText( ::hWnd, cNewCaption ) + + ACCESS Top() INLINE WinGetTop( ::hWnd ) PROPERTY + ASSIGN Top( nNewTop ) INLINE WinSetTop( ::hWnd, nNewTop ) + + ACCESS Left() INLINE WinGetLeft( ::hWnd ) PROPERTY + ASSIGN Left( nNewLeft ) INLINE WinSetLeft( ::hWnd, nNewLeft ) + + ACCESS Height() INLINE WinGetHeight( ::hWnd ) PROPERTY + ASSIGN Height( nNewHeight ) INLINE WinSetHeight( ::hWnd, nNewHeight ) + + ACCESS Width() INLINE WinGetWidth( ::hWnd ) PROPERTY + ASSIGN Width( nNewWidth ) INLINE WinSetWidth( ::hWnd, nNewWidth ) + + METHOD GetNewId() INLINE ::nId := If( ::nInitId == nil, ::nInitId := 1,; + ++::nInitId ) + + METHOD Show() INLINE ShowWindow( ::hWnd, .T. /*SW_SHOWNA*/ ) + +ENDCLASS