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.
50 lines
916 B
50 lines
916 B
/*++
|
|
|
|
Copyright (C) 2000-2001 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
Factory.h
|
|
|
|
Abstract:
|
|
|
|
Standard class factory implementation
|
|
|
|
History:
|
|
|
|
a-dcrews 01-Mar-00 Created
|
|
|
|
--*/
|
|
|
|
//////////////////////////////////////////////////////////////
|
|
//
|
|
// CClassFactory
|
|
//
|
|
//////////////////////////////////////////////////////////////
|
|
|
|
class CClassFactory : public IClassFactory
|
|
{
|
|
protected:
|
|
long m_lRef;
|
|
|
|
public:
|
|
CClassFactory() : m_lRef(0) {}
|
|
|
|
// Standard COM methods
|
|
// ====================
|
|
|
|
STDMETHODIMP QueryInterface(REFIID riid, void** ppv);
|
|
STDMETHODIMP_(ULONG) AddRef();
|
|
STDMETHODIMP_(ULONG) Release();
|
|
|
|
// IClassFactory COM interfaces
|
|
// ============================
|
|
|
|
STDMETHODIMP CreateInstance(
|
|
/* [in] */ IUnknown* pUnknownOuter,
|
|
/* [in] */ REFIID iid,
|
|
/* [out] */ LPVOID *ppv);
|
|
|
|
STDMETHODIMP LockServer(
|
|
/* [in] */ BOOL bLock);
|
|
};
|