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.

66 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. All rights reserved
  4. Module Name:
  5. lsasid.hxx
  6. Abstract:
  7. This file provides useful accssors and mutators.
  8. Author:
  9. Larry Zhu (LZhu) May 1, 2001 Created
  10. Environment:
  11. User Mode -Win32
  12. Revision History:
  13. --*/
  14. #ifndef LSA_SID_AND_ATTRIBUTES_HXX
  15. #define LSA_SID_AND_ATTRIBUTES_HXX
  16. #ifdef __cplusplus
  17. class TSID_AND_ATTRIBUTES
  18. {
  19. SIGNATURE('tsid');
  20. public:
  21. TSID_AND_ATTRIBUTES(void);
  22. TSID_AND_ATTRIBUTES(IN ULONG64 baseOffset);
  23. ~TSID_AND_ATTRIBUTES(void);
  24. HRESULT IsValid(void) const;
  25. ULONG64 GetSidAddr(void) const;
  26. ULONG GetAttributes(void) const;
  27. static ULONG GetcbSID_AND_ATTRIBUTESInArray(void);
  28. ULONG64 GetSidAddrDirect(void) const;
  29. ULONG GetAttributesDirect(void) const;
  30. static ULONG GetcbSID_AND_ATTRIBUTESInArrayDirect(void);
  31. protected:
  32. HRESULT Initialize(IN ULONG64 baseOffset);
  33. private:
  34. HRESULT Initialize(void);
  35. ULONG64 m_baseOffset;
  36. HRESULT m_hr;
  37. };
  38. #endif // #ifdef __cplusplus
  39. #endif // #ifndef LSA_SID_AND_ATTRIBUTES_HXX