windows-nt/Source/XPSP1/NT/admin/wmi/wbem/winmgmt/repdrvr/clsfctry.h

57 lines
1.3 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
///////////////////////////////////////////////////////////////////////////////
// clsfctry.h
//
//
//
//
// History:
//
// cvadai 4/1/99 created.
//
//
// Copyright (c)1997-2001 Microsoft Corporation, All Rights Reserved
///////////////////////////////////////////////////////////////////////////////
#pragma once // More efficient method for the gaurd macros!
class CControllerFactory : public IClassFactory
{
protected:
ULONG m_cRef;
public:
CControllerFactory(void);
~CControllerFactory(void);
//IUnknown members
STDMETHODIMP QueryInterface(REFIID, void**);
STDMETHODIMP_(ULONG) AddRef(void);
STDMETHODIMP_(ULONG) Release(void);
//IClassFactory members
STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, void**);
STDMETHODIMP LockServer(BOOL);
};
class CQueryFactory : public IClassFactory
{
protected:
ULONG m_cRef;
public:
CQueryFactory(void);
~CQueryFactory(void);
//IUnknown members
STDMETHODIMP QueryInterface(REFIID, void**);
STDMETHODIMP_(ULONG) AddRef(void);
STDMETHODIMP_(ULONG) Release(void);
//IClassFactory members
STDMETHODIMP CreateInstance(LPUNKNOWN, REFIID, void**);
STDMETHODIMP LockServer(BOOL);
};