Source code of Windows XP (NT5)
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.

49 lines
1.1 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999-2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // CHandleProvider.h
  7. //
  8. // Description:
  9. // HandleProvider definition.
  10. //
  11. // Implementation:
  12. // CHandleProvider.cpp
  13. //
  14. // Maintained By:
  15. //
  16. //////////////////////////////////////////////////////////////////////////////
  17. #pragma once
  18. class CHandleProvider :
  19. public IClusterHandleProvider
  20. {
  21. private:
  22. // IUnknown
  23. LONG m_cRef;
  24. // IClusterHandleProvider
  25. HCLUSTER m_hCluster;
  26. BSTR m_bstrClusterName;
  27. public:
  28. CHandleProvider();
  29. ~CHandleProvider();
  30. static HRESULT
  31. S_HrCreateInstance( IUnknown ** ppunkOut );
  32. // IUnknown
  33. STDMETHOD( QueryInterface )( REFIID riid, LPVOID *ppv );
  34. STDMETHOD_( ULONG, AddRef )( void );
  35. STDMETHOD_( ULONG, Release )( void );
  36. // IClusterHandleProvider
  37. STDMETHOD( OpenCluster )( BSTR bstrClusterName );
  38. STDMETHOD( GetClusterHandle )( HCLUSTER * pphClusterHandleOut );
  39. STDMETHOD( Init )( void );
  40. };