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.

50 lines
1.3 KiB

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