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 ****************************************************************/
13 WINE_DEFAULT_DEBUG_CHANNEL(lsasrv
);
16 /* FUNCTIONS ***************************************************************/
24 TRACE("LsapInitLsa() called\n");
26 /* Initialize the well known SIDs */
29 /* Start the RPC server */
32 TRACE("Creating notification event!\n");
33 /* Notify the service manager */
34 hEvent
= CreateEventW(NULL
,
37 L
"LSA_RPC_SERVER_ACTIVE");
40 dwError
= GetLastError();
41 TRACE("Failed to create the notication event (Error %lu)\n", dwError
);
43 if (dwError
== ERROR_ALREADY_EXISTS
)
45 hEvent
= OpenEventW(GENERIC_WRITE
,
47 L
"LSA_RPC_SERVER_ACTIVE");
50 ERR("Could not open the notification event (Error %lu)\n", GetLastError());
51 return STATUS_UNSUCCESSFUL
;
56 TRACE("Set notification event!\n");
59 /* NOTE: Do not close the event handle!!!! */
61 StartAuthenticationPort();
63 return STATUS_SUCCESS
;
70 TRACE("ServiceInit() called\n");
71 return STATUS_SUCCESS
;
75 void __RPC_FAR
* __RPC_USER
midl_user_allocate(SIZE_T len
)
77 return RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY
, len
);
81 void __RPC_USER
midl_user_free(void __RPC_FAR
* ptr
)
83 RtlFreeHeap(RtlGetProcessHeap(), 0, ptr
);