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.
 
 
 
 
 
 

52 lines
883 B

/*++
Copyright (c) 1996 Microsoft Corporation
Module Name:
Trstlist.h : header file
File History:
JonY Apr-96 created
--*/
#include <windows.h>
#include <lm.h>
#include <ntsecapi.h> // \mstools\security\ntsecapi.h
#include <tchar.h>
class CTrustList
{
public:
TCHAR** m_ppszTrustList; // array of trust elements
DWORD m_dwTrustCount; // number of elements in m_ppszTrustList
CTrustList();
~CTrustList();
BOOL BuildTrustList(LPTSTR Target);
private:
BOOL IsDomainController(LPTSTR Server,
LPBOOL bDomainController);
BOOL EnumTrustedDomains(LSA_HANDLE PolicyHandle);
BOOL AddTrustToList(PLSA_UNICODE_STRING UnicodeString);
//
// helper functions
//
void InitLsaString(PLSA_UNICODE_STRING LsaString,
LPTSTR String);
NTSTATUS OpenPolicy(LPTSTR ServerName,
DWORD DesiredAccess,
PLSA_HANDLE PolicyHandle);
};