1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- unit wintypes;
- interface
- type
- Bool = WordBool;
-
- UINT = Word;
- LONG = LongInt;
-
- WPARAM = UINT;
- LPARAM = LONG;
- LRESULT = LONG;
-
- { The Win16 C headers define the P-prefixed types - PSTR, etc. as near pointers.
- Borland Pascal 7 defines them as far pointers (in other words, the same as the
- LP-prefixed type - LPSTR) We define them as the default pointer type for the
- current memory model. This means we'll be BP7 compatible in the large memory
- model (which is the only memory model supported by BP7).
- Also, using memory models other than 'large' under win16 is somewhat nasty and
- is better to be avoided. }
- PSTR = ^Char;
- NPSTR = ^Char; near;
- LPSTR = ^Char; far;
- LPCSTR = ^Char; far;
-
- { PBYTE is already defined in system }
- LPBYTE = ^Byte; far;
-
- PINT = ^SmallInt;
- LPINT = ^SmallInt; far;
-
- { PWORD is already defined in system }
- LPWORD = ^Word; far;
-
- PLONG = ^LONG;
- LPLONG = ^LONG; far;
-
- { PDWORD is already defined in system }
- LPDWORD = ^DWORD; far;
-
- LPVOID = FarPointer;
-
- FARPROC = FarPointer;
- TFarProc = FARPROC;
- PHANDLE = ^THandle;
- SPHANDLE = ^THandle; near;
- LPHANDLE = ^THandle; far;
-
- HGLOBAL = THandle;
- HLOCAL = THandle;
-
- TGlobalHandle = THandle;
- TLocalHandle = THandle;
-
- ATOM = UINT;
- TAtom = ATOM;
-
- HINST = THandle; { instead of HINSTANCE, to avoid conflict with var hInstance }
- HMODULE = HINST;
-
- const
- { GetWinFlags result mask values }
- WF_PMODE = $0001;
- WF_CPU286 = $0002;
- WF_CPU386 = $0004;
- WF_CPU486 = $0008;
- WF_STANDARD = $0010;
- WF_WIN286 = $0010;
- WF_ENHANCED = $0020;
- WF_WIN386 = $0020;
- WF_CPU086 = $0040;
- WF_CPU186 = $0080;
- WF_LARGEFRAME = $0100;
- WF_SMALLFRAME = $0200;
- WF_80x87 = $0400;
- WF_PAGING = $0800;
- WF_WLO = $8000;
- { ExitWindows values }
- EW_RESTARTWINDOWS = $42;
- { SetErrorMode() constants }
- SEM_FAILCRITICALERRORS = $0001;
- SEM_NOGPFAULTERRORBOX = $0002;
- SEM_NOOPENFILEERRORBOX = $8000;
- type
- LPCATCHBUF = ^CATCHBUF; far;
- CATCHBUF = array [0..8] of SmallInt;
- PCatchBuf = ^TCatchBuf;
- TCatchBuf = CATCHBUF;
- implementation
- end.
|