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. // GroupHandle.h
  7. //
  8. // Description:
  9. // CGroupHandle implementation.
  10. //
  11. // Maintained By:
  12. // Geoffrey Pease (GPease) 22-NOV-1999
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15. #pragma once
  16. // CGroupHandle
  17. class
  18. CGroupHandle:
  19. public IUnknown
  20. {
  21. private:
  22. // IUnknown
  23. LONG m_cRef;
  24. // IPrivateGroupHandle
  25. HGROUP m_hGroup; // Cluster Group Handle
  26. private: // Methods
  27. CGroupHandle( );
  28. ~CGroupHandle();
  29. STDMETHOD( Init )( HGROUP hGroupIn );
  30. public: // Methods
  31. static HRESULT
  32. S_HrCreateInstance( CGroupHandle ** ppunkOut, HGROUP hGroupIn );
  33. // IUnknown
  34. STDMETHOD( QueryInterface )( REFIID riid, LPVOID *ppv );
  35. STDMETHOD_( ULONG, AddRef )( void );
  36. STDMETHOD_( ULONG, Release )( void );
  37. // IPrivateGroupHandle
  38. STDMETHOD( SetHandle )( HGROUP hGroupIn );
  39. STDMETHOD( GetHandle )( HGROUP * phGroupOut );
  40. }; // class CGroupHandle