xref: /reactos/win32ss/napi.h (revision 69931a4a)
1 /*
2  * FILE:            win32ss/napi.h
3  * COPYRIGHT:       GNU GPL, see COPYING in the top level directory
4  * PURPOSE:         System Call Table for Native API
5  * PROGRAMMER:      Timo Kreuzer
6  */
7 
8 #define SVC_(name, argcount) (ULONG_PTR)Nt##name,
9 ULONG_PTR Win32kSSDT[] = {
10 #ifdef _WIN64
11 #include "w32ksvc64.h"
12 #else
13 #include "w32ksvc32.h"
14 #endif
15 };
16 #undef SVC_
17 
18 #define SVC_(name, argcount) argcount * sizeof(void *),
19 UCHAR Win32kSSPT[] = {
20 #ifdef _WIN64
21 #include "w32ksvc64.h"
22 #else
23 #include "w32ksvc32.h"
24 #endif
25 };
26 
27 #define MIN_SYSCALL_NUMBER    0x1000
28 #define NUMBER_OF_SYSCALLS    (sizeof(Win32kSSPT) / sizeof(Win32kSSPT[0]))
29 #define MAX_SYSCALL_NUMBER    0x1000 + (NUMBER_OF_SYSCALLS - 1)
30 ULONG Win32kNumberOfSysCalls = NUMBER_OF_SYSCALLS;
31