Leaked source code of windows server 2003
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.
 
 
 
 
 
 

53 lines
1.2 KiB

//+-------------------------------------------------------------------
//
// File: account.hxx
//
// Contents: class encapsulating NT security user account.
//
// Classes: CAccount
//
// History: Nov-93 Created DaveMont
//
//--------------------------------------------------------------------
#ifndef __ACCOUNT__
#define __ACCOUNT__
#include "t2.hxx"
//+-------------------------------------------------------------------
//
// Class: CAccount
//
// Purpose: encapsulation of NT Account, this class actually interfaces
// with the NT security authority to get SIDs for usernames and
// vis-versa.
//
//--------------------------------------------------------------------
class CAccount
{
public:
CAccount(WCHAR *Name, WCHAR *System);
CAccount(SID *pSid, WCHAR *System);
~CAccount();
ULONG GetAccountSid(SID **psid);
ULONG GetAccountName(WCHAR **name);
ULONG GetAccountDomain(WCHAR **domain);
private:
BOOL _fsid ;
SID *_psid ;
WCHAR *_system ;
WCHAR *_name ;
WCHAR *_domain ;
};
#endif // __ACCOUNT__