mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-26 02:28:17 +08:00
25 lines
468 B
C
25 lines
468 B
C
|
#pragma once
|
||
|
|
||
|
#include <Unknwn.h>
|
||
|
|
||
|
class ClassFactory : public IClassFactory
|
||
|
{
|
||
|
public:
|
||
|
// IUnknown
|
||
|
IFACEMETHODIMP QueryInterface(REFIID riid, void** ppv);
|
||
|
IFACEMETHODIMP_(ULONG) AddRef();
|
||
|
IFACEMETHODIMP_(ULONG) Release();
|
||
|
|
||
|
// IClassFactory
|
||
|
IFACEMETHODIMP CreateInstance(IUnknown* pUnkOuter, REFIID riid, void** ppv);
|
||
|
IFACEMETHODIMP LockServer(BOOL fLock);
|
||
|
|
||
|
ClassFactory();
|
||
|
|
||
|
protected:
|
||
|
~ClassFactory();
|
||
|
|
||
|
private:
|
||
|
long m_cRef;
|
||
|
};
|