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

//////////////////////////////////////////////////////////////////////////////
//
// 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 );
};