Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

  1. /* common includes for this dll */
  2. #ifndef _WIN32_WINNT
  3. #define _WIN32_WINNT 0x0400
  4. #endif
  5. #include <nt.h>
  6. #include <ntrtl.h> // DbgPrint prototype
  7. #include <nturtl.h> // needed for winbase.h
  8. #include <rpc.h> // DataTypes and runtime APIs
  9. #include <string.h> // strlen
  10. #include <stdio.h> // sprintf
  11. //#include <ntrpcp.h> // prototypes for MIDL user functions
  12. #include <samrpc.h> // midl generated SAM RPC definitions
  13. #include <ntlsa.h>
  14. #define SECURITY_WIN32
  15. #define SECURITY_PACKAGE
  16. #include <security.h>
  17. #include <secint.h>
  18. extern "C"{
  19. #include <samisrv.h> // SamIConnect()
  20. }
  21. #include <ntsam.h>
  22. #include <ntsamp.h>
  23. #include <samsrv.h> // prototypes available to security process
  24. #include <lsarpc.h>
  25. //#include <lsaisrv.h>
  26. #include <ntrmlsa.h>
  27. #include <ntseapi.h>
  28. #include <ntpsapi.h>
  29. #include <ntobapi.h>
  30. #include <rpcdcep.h>
  31. #include <ntexapi.h>
  32. #include <ntregapi.h>
  33. #include "msaudite.h"
  34. #include "LsaParamMacros.h"
  35. extern "C"{
  36. #include "mschapp.h"
  37. }
  38. #pragma comment(lib, "vccomsup.lib")
  39. /* common functions for this dll */
  40. //NTSTATUS __stdcall GetDomainHandle(SAMPR_HANDLE *pDomainHandle);
  41. extern CRITICAL_SECTION csADMTCriticalSection; //critical sectio to protect concurrent first-time access