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

  1. //+-------------------------------------------------------------------
  2. //
  3. // File: account.hxx
  4. //
  5. // Contents: class encapsulating NT security user account.
  6. //
  7. // Classes: CAccount
  8. //
  9. // History: Nov-93 Created DaveMont
  10. //
  11. //--------------------------------------------------------------------
  12. #ifndef __ACCOUNT__
  13. #define __ACCOUNT__
  14. #include "t2.hxx"
  15. //+-------------------------------------------------------------------
  16. //
  17. // Class: CAccount
  18. //
  19. // Purpose: encapsulation of NT Account, this class actually interfaces
  20. // with the NT security authority to get SIDs for usernames and
  21. // vis-versa.
  22. //
  23. //--------------------------------------------------------------------
  24. class CAccount
  25. {
  26. public:
  27. CAccount(WCHAR *Name, WCHAR *System);
  28. CAccount(SID *pSid, WCHAR *System);
  29. ~CAccount();
  30. ULONG GetAccountSid(SID **psid);
  31. ULONG GetAccountName(WCHAR **name);
  32. ULONG GetAccountDomain(WCHAR **domain);
  33. private:
  34. BOOL _fsid ;
  35. SID *_psid ;
  36. WCHAR *_system ;
  37. WCHAR *_name ;
  38. WCHAR *_domain ;
  39. };
  40. #endif // __ACCOUNT__