分类:
2006-03-30 16:24:13
#define WIN32_NO_STATUS
#include
#define NTOS_MODE_USER
#include
#include
//#include
#include
#define NDEBUG
#include
int STDCALL
WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nShowCmd)
{
NTSTATUS Status = STATUS_SUCCESS;
DPRINT("Local Security Authority Subsystem\n");
DPRINT(" Initializing...\n");
/* Initialize the LSA server DLL. */
Status = LsapInitLsa();
if (!NT_SUCCESS(Status))
{
DPRINT1("LsapInitLsa() failed (Status 0x%08lX)\n", Status);
goto ByeBye;
}
#if 0
/* Initialize the SAM server DLL. */
Status = SamIInitialize();
if (!NT_SUCCESS(Status))
{
DPRINT1("SamIInitialize() failed (Status 0x%08lX)\n", Status);
goto ByeBye;
}
#endif
/* FIXME: More initialization */
DPRINT(" Done...\n");
ByeBye:
NtTerminateThread(NtCurrentThread(), Status);
return 0;
}