Initial
This commit is contained in:
32
test/ipdemo.hpp
Normal file
32
test/ipdemo.hpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user