blob: 60f814c33f9bd6fdfc6840dcf0fae7179cc9cc4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
//
// Copyright (C) Microsoft Corporation 2005
// IHV UI Extension sample
//
#pragma once
// The class factory
class CIHVClassFactory : public IClassFactory
{
public:
// Constructor
CIHVClassFactory();
~CIHVClassFactory();
// IUnknown
STDMETHODIMP_(ULONG) AddRef();
STDMETHODIMP_(ULONG) Release();
STDMETHODIMP QueryInterface(REFIID riid, void **ppvObject);
// IClassFactory
STDMETHODIMP CreateInstance(IUnknown *pUnkOuter, REFIID riid, void **ppvObject);
STDMETHODIMP LockServer(BOOL fLock);
private:
long m_refCount;
};
|