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.

88 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. All rights reserved
  4. Module Name:
  5. lsaspmapi.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 LSASPMAPI_HXX
  15. #define LSASPMAPI_HXX
  16. #ifdef __cplusplus
  17. #include "lsaspmapi.hxx"
  18. #include "lsasecbfr.hxx"
  19. class TSPM_API
  20. {
  21. SIGNATURE('spma');
  22. public:
  23. TSPM_API(void);
  24. TSPM_API(IN ULONG64 baseOffset);
  25. ~TSPM_API(void);
  26. HRESULT IsValid(void) const;
  27. ULONG64 GetGetBinding(void) const;
  28. ULONG64 GetInitContext(void) const;
  29. ULONG64 GetAcceptContext(void) const;
  30. ULONG64 GetAcquireCreds(void) const;
  31. ULONG64 GetFreeCredHandle(void) const;
  32. ULONG64 GetDeleteContext(void) const;
  33. ULONG64 GetQueryCredAttributes(void) const;
  34. ULONG64 GetQueryContextAttributes(void) const;
  35. ULONG64 GetEfsGenerateKey(void) const;
  36. ULONG64 GetEfsGenerateDirEfs(void) const;
  37. ULONG64 GetEfsDecryptFek(void) const;
  38. ULONG64 GetCallback(void) const;
  39. ULONG64 GetAddCredential(void) const;
  40. TSecBuffer GetSecBufferInitSbData(IN ULONG index) const;
  41. TSecBuffer GetSecBufferInitContextData(void) const;
  42. TSecBuffer GetSecBufferAcceptContextData(void) const;
  43. TSecBuffer GetSecBufferAcceptsbData(IN ULONG index) const;
  44. TSecBuffer GetSecBufferCallbackInput(void) const;
  45. TSecBuffer GetSecBufferCallbackOutput(void) const;
  46. ULONG64 GetQueryCredAttrBuffers(IN ULONG index) const;
  47. ULONG64 GetQueryContextAttrBuffers(IN ULONG index) const;
  48. protected:
  49. HRESULT Initialize(IN ULONG64 baseOffset);
  50. private:
  51. //
  52. // Copying and assignment are not defined.
  53. //
  54. NO_COPY(TSPM_API);
  55. HRESULT Initialize(void);
  56. ULONG64 m_baseOffset;
  57. HRESULT m_hr;
  58. };
  59. #endif // #ifdef __cplusplus
  60. #endif // #ifndef LSASPMAPI_HXX