Windows2003-3790/inetcore/outlookexpress/iecont/clsfact.h
2020-09-30 16:53:55 +02:00

49 lines
1.3 KiB
C++

/////////////////////////////////////////////////////////////////////////////
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright 1998 Microsoft Corporation. All Rights Reserved.
//
// Author: Scott Roberts, Microsoft Developer Support - Internet Client SDK
//
// Portions of this code were taken from the bandobj sample that comes
// with the Internet Client SDK for Internet Explorer 4.0x
//
//
// ClsFact.h - CClassFactory declaration
/////////////////////////////////////////////////////////////////////////////
#ifndef __ClsFact_h__
#define __ClsFact_h__
#include <windows.h>
#include "Globals.h"
#include "blhost.h"
class CClassFactory : public IClassFactory
{
public:
CClassFactory(CLSID);
~CClassFactory();
//IUnknown methods
STDMETHOD(QueryInterface)(REFIID iid, LPVOID* ppvObject);
STDMETHOD_(ULONG, AddRef)();
STDMETHOD_(ULONG, Release)();
//IClassFactory methods
STDMETHOD(CreateInstance)(LPUNKNOWN pUnkOuter, REFIID riid, LPVOID* ppvObject);
STDMETHOD(LockServer)(BOOL fLock);
protected:
LONG m_cRef;
private:
CLSID m_clsidObject;
};
#endif // __ClsFact_h__