2 * PROJECT: Local Security Authority Server DLL
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: dll/win32/lsasrv/lsasrv.c
6 * COPYRIGHT: Copyright 2006-2009 Eric Kohl
9 /* INCLUDES ****************************************************************/
11 #define WIN32_NO_STATUS
13 #define NTOS_MODE_USER
14 #include <ndk/ntndk.h>
18 #include "wine/debug.h"
20 WINE_DEFAULT_DEBUG_CHANNEL(lsasrv
);
23 /* FUNCTIONS ***************************************************************/
31 TRACE("LsapInitLsa() called\n");
33 /* Start the RPC server */
36 TRACE("Creating notification event!\n");
37 /* Notify the service manager */
38 hEvent
= CreateEventW(NULL
,
41 L
"LSA_RPC_SERVER_ACTIVE");
44 dwError
= GetLastError();
45 TRACE("Failed to create the notication event (Error %lu)\n", dwError
);
47 if (dwError
== ERROR_ALREADY_EXISTS
)
49 hEvent
= OpenEventW(GENERIC_WRITE
,
51 L
"LSA_RPC_SERVER_ACTIVE");
54 ERR("Could not open the notification event!");
59 TRACE("Set notification event!\n");
62 /* NOTE: Do not close the event handle!!!! */
64 StartAuthenticationPort();
66 return STATUS_SUCCESS
;
70 void __RPC_FAR
* __RPC_USER
midl_user_allocate(SIZE_T len
)
72 return RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY
, len
);
76 void __RPC_USER
midl_user_free(void __RPC_FAR
* ptr
)
78 RtlFreeHeap(RtlGetProcessHeap(), 0, ptr
);