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.

68 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. All rights reserved
  4. Module Name:
  5. lsaapi.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 _LSAAPI_HXX_
  15. #define _LSAAPI_HXX_
  16. #ifdef __cplusplus
  17. #include "lsalookup.hxx"
  18. class TLSA_API : public TLSAP_LOOKUP_PACKAGE_ARGS
  19. {
  20. SIGNATURE('lapi');
  21. public:
  22. TLSA_API(void);
  23. TLSA_API(IN ULONG64 baseOffset);
  24. ~TLSA_API(void);
  25. HRESULT IsValid(void) const;
  26. ULONG64 GetLogonUser(void) const;
  27. ULONG64 GetCallPackage(void) const;
  28. ULONG64 GetLsaApiBase(void) const;
  29. PCSTR GetSourceContextSourceName(void) const;
  30. protected:
  31. HRESULT Initialize(IN ULONG64 baseOffset);
  32. private:
  33. //
  34. // Copying and assignment are not defined.
  35. //
  36. NO_COPY(TLSA_API)
  37. HRESULT Initialize(void);
  38. HRESULT m_hr;
  39. ULONG64 m_baseOffset;
  40. };
  41. #endif // #ifdef __cplusplus
  42. #endif // #ifndef _LSAAPI_HXX_