/* common includes for this dll */ #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0400 #endif #include #include // DbgPrint prototype #include // needed for winbase.h #include // DataTypes and runtime APIs #include // strlen #include // sprintf //#include // prototypes for MIDL user functions #include // midl generated SAM RPC definitions #include #define SECURITY_WIN32 #define SECURITY_PACKAGE #include #include extern "C"{ #include // SamIConnect() } #include #include #include // prototypes available to security process #include //#include #include #include #include #include #include #include #include #include "msaudite.h" #include "LsaParamMacros.h" extern "C"{ #include "mschapp.h" } #pragma comment(lib, "vccomsup.lib") /* common functions for this dll */ //NTSTATUS __stdcall GetDomainHandle(SAMPR_HANDLE *pDomainHandle); extern CRITICAL_SECTION csADMTCriticalSection; //critical sectio to protect concurrent first-time access