mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-21 00:14:15 +08:00
20 lines
497 B
C
20 lines
497 B
C
|
#pragma once
|
||
|
|
||
|
#include "pch.h"
|
||
|
|
||
|
class ClassFactory : public IClassFactory
|
||
|
{
|
||
|
public:
|
||
|
// IUnknown
|
||
|
IFACEMETHODIMP QueryInterface(REFIID riid, void** ppv) override;
|
||
|
IFACEMETHODIMP_(ULONG) AddRef() override;
|
||
|
IFACEMETHODIMP_(ULONG) Release() override;
|
||
|
|
||
|
// IClassFactory
|
||
|
IFACEMETHODIMP CreateInstance(IUnknown* pUnkOuter, REFIID riid, void** ppvObject) override;
|
||
|
IFACEMETHODIMP LockServer(BOOL fLock) override;
|
||
|
private:
|
||
|
std::atomic<ULONG> m_ref_count;
|
||
|
IID m_clsid;
|
||
|
};
|