- Introduce a common header file.
[reactos.git] / reactos / dll / win32 / lsasrv / lsasrv.c
1 #define WIN32_NO_STATUS
2 #include <windows.h>
3 #define NTOS_MODE_USER
4 #include <ndk/ntndk.h>
5
6 #include "lsasrv.h"
7
8 #include "wine/debug.h"
9
10 WINE_DEFAULT_DEBUG_CHANNEL(lsasrv);
11
12
13 NTSTATUS WINAPI
14 LsapInitLsa(VOID)
15 {
16 HANDLE hEvent;
17
18 TRACE("LsapInitLsa()\n");
19
20 LsarStartRpcServer();
21
22 hEvent = OpenEventW(EVENT_MODIFY_STATE,
23 FALSE,
24 L"Global\\SECURITY_SERVICES_STARTED");
25 if (hEvent != NULL)
26 {
27 SetEvent(hEvent);
28 CloseHandle(hEvent);
29 }
30 return STATUS_SUCCESS;
31 }
32
33
34 void __RPC_FAR * __RPC_USER midl_user_allocate(size_t len)
35 {
36 return RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, len);
37 }
38
39
40 void __RPC_USER midl_user_free(void __RPC_FAR * ptr)
41 {
42 RtlFreeHeap(RtlGetProcessHeap(), 0, ptr);
43 }
44
45 /* EOF */