source: trunk/src/win32k/include/OS2Krnl.h@ 5095

Last change on this file since 5095 was 5086, checked in by bird, 25 years ago

Moved ldrCalls.h into the OS2Krnl.h tree as OS2KLDR.h.
Also moved the Ldr definitions from OS2Krnl.h and into OS2KLDR.h.

File size: 2.0 KB
Line 
1/* $Id: OS2Krnl.h,v 1.10 2001-02-10 11:11:43 bird Exp $
2 *
3 * OS/2 kernel structures, typedefs and macros.
4 *
5 * Top-level include file.
6 *
7 * Project Odin Software License can be found in LICENSE.TXT
8 *
9 */
10
11#ifndef _OS2Krnl_h_
12#define _OS2Krnl_h_
13
14
15
16/*
17 * "OS2KDefs.h"
18 */
19#if !defined(OS2_INCLUDED)
20 /* when used with h2inc.exe */
21 #define UCHAR unsigned char
22 #define CHAR char
23 #define USHORT unsigned short
24 #define ULONG unsigned long
25 #define PCHAR char *
26#endif
27
28
29/*
30 * Handles
31 */
32typedef USHORT HMTE, *PHMTE; /* Module Table Entry (MTE) handle */
33typedef USHORT HPTDA, *PHPTDA; /* Per-Task Data Area (PTDA) handle */
34#ifdef RING0
35 typedef USHORT SFN, *PSFN; /* System File Number (SFN) - ie. file handle. */
36#else
37 #define SFN HFILE
38 #define PSFN PHFILE
39#endif
40
41
42
43
44/*
45 * Calling convention for 32-bit OS/2 Kernel functions.
46 */
47#define KRNLCALL __stdcall
48
49/*
50 * Calling convention for Security Helpers.
51 */
52#define SECCALL _System
53
54/*
55 *
56 * Other Kernel Parts
57 *
58 */
59#ifdef INCL_OS2KRNL_ALL
60 #define INCL_OS2KRNL_IO
61 #define INCL_OS2KRNL_VM
62 #define INCL_OS2KRNL_SM
63 #define INCL_OS2KRNL_SEM
64 #define INCL_OS2KRNL_TK
65 #define INCL_OS2KRNL_PTDA
66 #define INCL_OS2KRNL_TCB
67 #define INCL_OS2KRNL_SEC
68 #define INCL_OS2KRNL_LDR
69#endif
70
71#if defined(INCL_OS2KRNL_PTDA) && !defined(INCL_OS2KRNL_SEM)
72 #define INCL_OS2KRNL_SEM
73#endif
74
75#ifdef INCL_OS2KRNL_IO
76 #include <OS2KIO.h>
77#endif
78
79#ifdef INCL_OS2KRNL_VM
80 #include <OS2KVM.h>
81#endif
82
83#ifdef INCL_OS2KRNL_PG
84 #include <OS2KPG.h>
85#endif
86
87#ifdef INCL_OS2KRNL_SM
88 #include <OS2KSM.h>
89#endif
90
91#ifdef INCL_OS2KRNL_SEM
92 #include <OS2KSEM.h>
93#endif
94
95#ifdef INCL_OS2KRNL_PTDA
96 #include <OS2KPTDA.h>
97#endif
98
99#ifdef INCL_OS2KRNL_TK
100 #include <OS2KTK.h>
101#endif
102
103#ifdef INCL_OS2KRNL_TCB
104 #include <OS2KTCB.h>
105#endif
106
107#ifdef INCL_OS2KRNL_LDR
108 #include <OS2KLDR.h>
109#endif
110
111#ifdef INCL_OS2KRNL_SEC
112 #include <OS2KSEC.h>
113#endif
114
115#endif
Note: See TracBrowser for help on using the repository browser.