blob: b7649a67c8b2c9759618e84165a34e6a2968ad5c (
plain) (
blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
//+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1992.
//
// File: crpc.hxx
//
// Contents: test basice rpc method calls
//
// Classes: CRpcTest
//
// History: 06-Aug-92 Ricksa Created
//
//--------------------------------------------------------------------------
#ifndef __RPCTEST__
#define __RPCTEST__
#include <otrack.hxx>
#include <rpctst.h> // interface definition
//+-------------------------------------------------------------------------
//
// Class: CRpcTest
//
// Purpose: Class to demostrate remote binding functionality
//
// Interface: QueryInterface
// AddRef
// Release
//
// History: 06-Aug-92 Ricksa Created
//
//--------------------------------------------------------------------------
class CRpcTest : INHERIT_TRACKING,
public IRpcTest
{
public:
CRpcTest(void);
STDMETHOD(QueryInterface)(REFIID riid, void **ppunk);
DECLARE_STD_REFCOUNTING;
// IRpcTest methods
STDMETHOD(Void) (void);
STDMETHOD(VoidRC) (void);
STDMETHOD(VoidPtrIn)(ULONG cb, BYTE *pv);
STDMETHOD(VoidPtrOut)(ULONG cb, ULONG *pcb, BYTE *pv);
STDMETHOD(DwordIn) (DWORD dw);
STDMETHOD(DwordOut) (DWORD *pdw);
STDMETHOD(DwordInOut) (DWORD *pdw);
STDMETHOD(LiIn)(LARGE_INTEGER li);
STDMETHOD(LiOut)(LARGE_INTEGER *pli);
STDMETHOD(ULiIn)(ULARGE_INTEGER uli);
STDMETHOD(ULiOut)(ULARGE_INTEGER *puli);
STDMETHOD(StringIn) (LPOLESTR pwsz);
STDMETHOD(StringOut) (LPOLESTR *ppwsz);
STDMETHOD(StringInOut) (LPOLESTR pwsz);
STDMETHOD(GuidIn)(GUID guid);
STDMETHOD(GuidOut)(GUID *pguid);
STDMETHOD(IUnknownIn) (IUnknown *punk);
STDMETHOD(IUnknownOut) (IUnknown **ppunk);
STDMETHOD(IUnknownInKeep) (IUnknown *punk);
STDMETHOD(IUnknownInRelease) (void);
STDMETHOD(IUnknownOutKeep) (IUnknown **ppunk);
STDMETHOD(InterfaceIn)(REFIID riid, IUnknown *punk);
STDMETHOD(InterfaceOut)(REFIID riid, IUnknown **ppunk);
private:
~CRpcTest(void);
IUnknown *_punkIn;
};
#endif // __RPCTEST__
|