windows-nt/Source/XPSP1/NT/base/cluster/mgmt/cluscfg/common/chandleprovider.h
2020-09-26 16:20:57 +08:00

50 lines
1.1 KiB
C++

//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 1999-2000 Microsoft Corporation
//
// Module Name:
// CHandleProvider.h
//
// Description:
// HandleProvider definition.
//
// Implementation:
// CHandleProvider.cpp
//
// Maintained By:
//
//////////////////////////////////////////////////////////////////////////////
#pragma once
class CHandleProvider :
public IClusterHandleProvider
{
private:
// IUnknown
LONG m_cRef;
// IClusterHandleProvider
HCLUSTER m_hCluster;
BSTR m_bstrClusterName;
public:
CHandleProvider();
~CHandleProvider();
static HRESULT
S_HrCreateInstance( IUnknown ** ppunkOut );
// IUnknown
STDMETHOD( QueryInterface )( REFIID riid, LPVOID *ppv );
STDMETHOD_( ULONG, AddRef )( void );
STDMETHOD_( ULONG, Release )( void );
// IClusterHandleProvider
STDMETHOD( OpenCluster )( BSTR bstrClusterName );
STDMETHOD( GetClusterHandle )( HCLUSTER * pphClusterHandleOut );
STDMETHOD( Init )( void );
};