Added little prog. that builds the WIN32K.SYS service table
[reactos.git] / reactos / subsys / win32k / main / dllmain.c
1 /* $Id: dllmain.c,v 1.11 2000/02/20 22:52:50 ea Exp $
2 *
3 * Entry Point for win32k.sys
4 */
5
6 #undef WIN32_LEAN_AND_MEAN
7 #define WIN32_NO_STATUS
8 #include <windows.h>
9 #include <ddk/ntddk.h>
10 #include <ddk/winddi.h>
11 #include <internal/service.h>
12 #include <internal/hal.h>
13
14 #include <win32k/win32k.h>
15
16 /*
17 * NOTE: the table is actually in the file ./svctab.c,
18 * generated by iface/addsys/mktab.c + w32ksvc.db
19 */
20 #include "svctab.c"
21
22 /*
23 * This definition doesn't work
24 */
25 // WINBOOL STDCALL DllMain(VOID)
26 NTSTATUS
27 STDCALL
28 DllMain (
29 IN PDRIVER_OBJECT DriverObject,
30 IN PUNICODE_STRING RegistryPath
31 )
32 {
33 NTSTATUS Status;
34
35 /*
36 * Register user mode call interface
37 * (svc mask is 0x10000000)
38 */
39 Status = HalRegisterServiceTable (
40 0xF0000000,
41 0x10000000,
42 W32kServiceTable,
43 sizeof (W32kServiceTable)
44 / sizeof(W32kServiceTable[0])
45 );
46 if (!NT_SUCCESS(Status))
47 {
48 return FALSE;
49 }
50
51 return TRUE;
52 }
53
54
55 /* EOF */