32 lines
821 B
C++
32 lines
821 B
C++
#ifndef _TEST_INPROCSERVERDEMO_HPP_
|
|
#define _TEST_INPROCSERVERDEMO_HPP_
|
|
#ifndef _COMMON_CONSOLE_HPP_
|
|
#include <common/console.hpp>
|
|
#endif
|
|
#ifndef _TEST_DEMO_HPP_
|
|
#include <test/demo.hpp>
|
|
#endif
|
|
|
|
//class InProcServerDemo : public InProcServer, public IDemo
|
|
class InProcServerDemo : public IDemo
|
|
{
|
|
public:
|
|
class InProcServerDemoNoInterface{};
|
|
InProcServerDemo(IUnknown *pUnkOuter,REFIID riid,Console &winConsole);
|
|
~InProcServerDemo();
|
|
HRESULT __stdcall QueryInterface(REFIID riid,void **ppv);
|
|
ULONG __stdcall AddRef(void);
|
|
ULONG __stdcall Release(void);
|
|
HRESULT __stdcall getValue(int *pvalue);
|
|
HRESULT __stdcall setValue(int value);
|
|
protected:
|
|
virtual REFIID getREFIID(void);
|
|
virtual void *getInstance(void);
|
|
Console &getConsole(void);
|
|
private:
|
|
int mValue;
|
|
int mRefCount;
|
|
Console &mWinConsole;
|
|
};
|
|
|
|
#endif |