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.

65 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. All rights reserved
  4. Module Name:
  5. lsasecbfrd.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_SECBFRD_HXX
  15. #define LSA_SECBFRD_HXX
  16. #ifdef __cplusplus
  17. class TSecBufferDesc
  18. {
  19. SIGNATURE('sbfd');
  20. public:
  21. TSecBufferDesc(void);
  22. TSecBufferDesc(IN ULONG64 baseOffset);
  23. ~TSecBufferDesc(void);
  24. HRESULT IsValid(void) const;
  25. ULONG GetcBuffersDirect(void) const; // Size of the buffer, in bytes
  26. ULONG GetulVersionDirect(void) const; // Type of the buffer (below)
  27. ULONG64 GetpBuffersDirect(void) const; // Pointer to the buffer
  28. ULONG64 GetTokenAddrDirect(OUT ULONG* pcbBuffer OPTIONAL) const; // get the token buffer
  29. PCSTR toStrDirect(void) const;
  30. void ShowDirect(IN BOOL bVerbose) const;
  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_SECBFRD_HXX