windows-nt/Source/XPSP1/NT/base/ntsetup/win95upg/w95upgnt/migmain/security.h

37 lines
736 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#pragma warning (disable:4121)
#include "ntsecapi.h"
#ifndef STATUS_SUCCESS
#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)
#define STATUS_MORE_ENTRIES ((NTSTATUS)0x00000105L)
#define STATUS_NO_MORE_ENTRIES ((NTSTATUS)0x8000001AL)
#endif
#define POLICY_PRIMARY_DOMAIN_INFORMATION PolicyPrimaryDomainInformation
VOID
InitLsaString (
OUT PLSA_UNICODE_STRING LsaString,
IN PWSTR String
);
NTSTATUS
OpenPolicy (
IN PWSTR ServerName,
IN DWORD DesiredAccess,
OUT PLSA_HANDLE PolicyHandle
);
BOOL
GetPrimaryDomainName (
OUT PTSTR DomainName
);
BOOL
GetPrimaryDomainSid (
OUT PBYTE DomainSid,
IN UINT BufferSize
);