54 lines
1.4 KiB
C
54 lines
1.4 KiB
C
|
//////////////////////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// Copyright (c) 2000 Microsoft Corporation
|
||
|
//
|
||
|
// Module Name:
|
||
|
// PreCreateServices.h
|
||
|
//
|
||
|
// Description:
|
||
|
// PreCreateServices implementation.
|
||
|
//
|
||
|
// Maintained By:
|
||
|
// Geoffrey Pease (GPease) 15-JUN-2000
|
||
|
//
|
||
|
//////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
class
|
||
|
CPreCreateServices
|
||
|
: public IClusCfgResourcePreCreate
|
||
|
, public IPrivatePostCfgResource
|
||
|
{
|
||
|
private: // data
|
||
|
// IUnknown
|
||
|
LONG m_cRef; // Reference counter
|
||
|
|
||
|
// IPrivatePostCfgResource
|
||
|
CResourceEntry * m_presentry; // List entry that the service is to modify.
|
||
|
|
||
|
private: // methods
|
||
|
CPreCreateServices( void );
|
||
|
~CPreCreateServices( void );
|
||
|
|
||
|
HRESULT
|
||
|
HrInit(void );
|
||
|
|
||
|
public: // methods
|
||
|
static HRESULT
|
||
|
S_HrCreateInstance( IUnknown ** ppunkOut );
|
||
|
|
||
|
// IUnknown
|
||
|
STDMETHOD( QueryInterface )( REFIID riid, LPVOID *ppv );
|
||
|
STDMETHOD_( ULONG, AddRef )( void );
|
||
|
STDMETHOD_( ULONG, Release )( void );
|
||
|
|
||
|
// IClusCfgResourcePreCreate
|
||
|
STDMETHOD( SetDependency )( LPCLSID pclsidDepResTypeIn, DWORD dfIn );
|
||
|
STDMETHOD( SetType )( LPCLSID pclsidIn );
|
||
|
STDMETHOD( SetClassType )( LPCLSID pclsidIn );
|
||
|
|
||
|
// IPrivatePostCfgResource
|
||
|
STDMETHOD( SetEntry )( CResourceEntry * presentryIn );
|
||
|
|
||
|
}; // class CPreCreateServices
|