summaryrefslogtreecommitdiffstats
path: root/public/sdk/inc/ptypes32.h
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /public/sdk/inc/ptypes32.h
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'public/sdk/inc/ptypes32.h')
-rw-r--r--public/sdk/inc/ptypes32.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/public/sdk/inc/ptypes32.h b/public/sdk/inc/ptypes32.h
new file mode 100644
index 000000000..8b2118b09
--- /dev/null
+++ b/public/sdk/inc/ptypes32.h
@@ -0,0 +1,62 @@
+/*****************************************************************************\
+* PTYPES32.H - PORTABILITY MAPPING HEADER FILE
+*
+* This file provides types for 16/32 bit portable code.
+\*****************************************************************************/
+
+#include <setjmp.h>
+
+/* TYPES: */
+
+#define HUGE_T
+typedef DWORD WORD2DWORD ;
+typedef DWORD CHARPARM ;
+typedef DWORD SHORTPARM ;
+typedef DWORD VERSION ;
+typedef LPSTR PDLLMEM ;
+typedef unsigned long CHAR2ULONG ;
+typedef unsigned long USHORT2ULONG ;
+typedef unsigned long SHORT2ULONG ;
+typedef unsigned long INT2DWORD ;
+typedef unsigned short BYTE2WORD ;
+typedef POINTS MPOINT ;
+typedef WORD INT2WORD ;
+typedef jmp_buf MCATCHBUF ;
+typedef MCATCHBUF *LPMCATCHBUF ;
+
+#define HFILE2INT(h, flags) (INT)_open_osfhandle((long)(h), (int)(flags))
+#define INT2HFILE(i) (HFILE)_get_osfhandle((int)(i))
+#define DUPHFILE(h) MDupHandle(h)
+#define MGLOBALPTR(p) (LPSTR)(p)
+
+/* PRAGMAS */
+
+#define _LOADDS
+#define _EXPORT
+
+#define ERROR_GETADDR_FAILED 0x8001
+
+#define INITWINDOWS()
+
+#define WF_PMODE 0x0001 /* from winkrnl.h */
+#define WF_CPU286 0x0002
+#define WF_CPU386 0x0004
+#define WF_CPU486 0x0008
+#define WF_STANDARD 0x0010
+#define WF_WIN286 0x0010
+#define WF_ENHANCED 0x0020
+#define WF_WIN386 0x0020
+#define WF_CPU086 0x0040
+#define WF_CPU186 0x0080
+#define WF_LARGEFRAME 0x0100
+#define WF_SMALLFRAME 0x0200
+#define WF_80x87 0x0400
+
+
+/* DEFINITIONS */
+
+
+#define TF_FORCEDRIVE (BYTE)0x80
+#define DLLMEM_MOVEABLE 0
+#define DLLMEM_ZEROINIT GMEM_ZEROINIT
+