Chinaunix首页 | 论坛 | 博客
  • 博客访问: 567440
  • 博文数量: 99
  • 博客积分: 3976
  • 博客等级: 中校
  • 技术积分: 1041
  • 用 户 组: 普通用户
  • 注册时间: 2005-08-15 15:48
文章分类
文章存档

2009年(1)

2008年(5)

2007年(31)

2006年(58)

2005年(4)

分类:

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;
}

 
阅读(2055) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~