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.

74 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. All rights reserved
  4. Module Name:
  5. lsasecbfr.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_SECBFR_HXX
  15. #define LSA_SECBFR_HXX
  16. #ifdef __cplusplus
  17. class TSecBuffer
  18. {
  19. SIGNATURE('scbf');
  20. public:
  21. TSecBuffer(void);
  22. TSecBuffer(IN ULONG64 baseOffset);
  23. ~TSecBuffer(void);
  24. HRESULT IsValid(void) const;
  25. ULONG GetcbBufferDirect(void) const; // Size of the buffer, in bytes
  26. ULONG GetBufferTypeDirect(void) const; // Type of the buffer (below)
  27. ULONG64 GetpvBufferDirect(void) const; // Pointer to the buffer
  28. ULONG GetcbBuffer(void) const; // Size of the buffer, in bytes
  29. ULONG GetBufferType(void) const; // Type of the buffer (below)
  30. ULONG64 GetpvBuffer(void) const; // Pointer to the buffer
  31. PCSTR toStr(IN PCSTR pszBanner) const;
  32. PCSTR toStrDirect(IN PCSTR pszBanner) const;
  33. static ULONG GetcbSecBufferSizeInArrayDirect(void);
  34. static PCSTR GetSecBufferTypeStr(IN ULONG type);
  35. static ULONG GetcbSecBufferSizeInArray(void);
  36. void ShowDirect(IN PCSTR pszBanner, IN BOOL bVerbose) const;
  37. protected:
  38. HRESULT Initialize(IN ULONG64 baseOffset);
  39. private:
  40. HRESULT Initialize(void);
  41. ULONG64 m_baseOffset;
  42. HRESULT m_hr;
  43. };
  44. #endif // #ifdef __cplusplus
  45. #endif // #ifndef LSA_SECBFR_HXX