Mobile API Reference  MicroStrategy 2019
Msi_ocidl.h
Go to the documentation of this file.
1 // File: ocidl.h
2 // Date: 10th July 2001
3 // Author: Will Hurwood
4 // Modified by: Liqun Jin
5 // Ke Xiao Add IPersist & IPersistMemory Interface
6 //
7 // Copyright (C) 2001 MicroStrategy Incorporated
8 // All rights reserved
9 
10 // This header file stands in for the standard 'ocidl.h' header file used in VC++
11 #ifndef __OCIDL_H__
12 #define __OCIDL_H__
13 
14 #ifndef __IEnumConnections_FWD_DEFINED__
15 #define __IEnumConnections_FWD_DEFINED__
17 #endif /* __IEnumConnections_FWD_DEFINED__ */
18 
19 #ifndef __IConnectionPoint_FWD_DEFINED__
20 #define __IConnectionPoint_FWD_DEFINED__
22 #endif /* __IConnectionPoint_FWD_DEFINED__ */
23 
24 #ifndef __IEnumConnectionPoints_FWD_DEFINED__
25 #define __IEnumConnectionPoints_FWD_DEFINED__
27 #endif /* __IEnumConnectionPoints_FWD_DEFINED__ */
28 
29 #ifndef __IConnectionPointContainer_FWD_DEFINED__
30 #define __IConnectionPointContainer_FWD_DEFINED__
32 #endif /* __IConnectionPointContainer_FWD_DEFINED__ */
33 
34 #ifndef __IPersistMemory_FWD_DEFINED__
35 #define __IPersistMemory_FWD_DEFINED__
37 #endif /* __IPersistMemory_FWD_DEFINED__ */
38 
39 #ifndef __IPersistStreamInit_FWD_DEFINED__
40 #define __IPersistStreamInit_FWD_DEFINED__
42 #endif /* __IPersistStreamInit_FWD_DEFINED__ */
43 
44 // ============================================================================
45 // IConnectionPoint
47 
48 struct IConnectionPoint: public IUnknown
49 {
50 public:
52  /* [out] */ IID __RPC_FAR *pIID) = 0;
53 
55  /* [out] */ IConnectionPointContainer __RPC_FAR *__RPC_FAR *ppCPC) = 0;
56 
58  /* [in] */ IUnknown __RPC_FAR *pUnkSink,
59  /* [out] */ DWORD __RPC_FAR *pdwCookie) = 0;
60 
62  /* [in] */ DWORD dwCookie) = 0;
63 
65  /* [out] */ IEnumConnections __RPC_FAR *__RPC_FAR *ppEnum) = 0;
66 };
67 
69 
71 
72 
73 // ============================================================================
74 // IConnectionPointContainer
76 
78 {
79 public:
81  /* [out] */ IEnumConnectionPoints __RPC_FAR *__RPC_FAR *ppEnum) = 0;
82 
84  /* [in] */ REFIID riid,
85  /* [out] */ IConnectionPoint __RPC_FAR *__RPC_FAR *ppCP) = 0;
86 
87 };
88 
90 
92 
93 // ============================================================================
94 // IEnumConnections
95 typedef struct tagCONNECTDATA
96  {
99  } CONNECTDATA;
100 
102 
105 
106 struct IEnumConnections : public IUnknown
107 {
108 public:
109  virtual /* [local] */ HRESULT STDMETHODCALLTYPE Next(
110  /* [in] */ ULONG cConnections,
111  /* [length_is][size_is][out] */ LPCONNECTDATA rgcd,
112  /* [out] */ ULONG __RPC_FAR *pcFetched) = 0;
113 
114  virtual HRESULT STDMETHODCALLTYPE Skip(
115  /* [in] */ ULONG cConnections) = 0;
116 
117  virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
118 
120  /* [out] */ IEnumConnections __RPC_FAR *__RPC_FAR *ppEnum) = 0;
121 };
122 
123 // ============================================================================
124 // IEnumConnectionPoints
126 {
127 public:
128  virtual /* [local] */ HRESULT STDMETHODCALLTYPE Next(
129  /* [in] */ ULONG cConnections,
130  /* [length_is][size_is][out] */ LPCONNECTIONPOINT __RPC_FAR *ppCP,
131  /* [out] */ ULONG __RPC_FAR *pcFetched) = 0;
132 
133  virtual HRESULT STDMETHODCALLTYPE Skip(
134  /* [in] */ ULONG cConnections) = 0;
135 
136  virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
137 
139  /* [out] */ IEnumConnectionPoints __RPC_FAR *__RPC_FAR *ppEnum) = 0;
140 };
141 
142 // ============================================================================
143 // IPersistMemory
144 
145 #ifndef __IPersistMemory_INTERFACE_DEFINED__
146 #define __IPersistMemory_INTERFACE_DEFINED__
147 
149 
151 
152 struct IPersistMemory : public IPersist
153  {
154  public:
155  virtual HRESULT STDMETHODCALLTYPE IsDirty( void) = 0;
156 
157  virtual /* [local] */ HRESULT STDMETHODCALLTYPE Load(
158  /* [size_is][in] */ LPVOID pMem,
159  /* [in] */ ULONG cbSize) = 0;
160 
161  virtual /* [local] */ HRESULT STDMETHODCALLTYPE Save(
162  /* [size_is][out] */ LPVOID pMem,
163  /* [in] */ BOOL fClearDirty,
164  /* [in] */ ULONG cbSize) = 0;
165 
167  /* [out] */ ULONG __RPC_FAR *pCbSize) = 0;
168 
169  virtual HRESULT STDMETHODCALLTYPE InitNew( void) = 0;
170 
171  };
172 #endif
173 
174 // ============================================================================
175 // IPersistStreamInit
176 
177 #ifndef __IPersistStreamInit_INTERFACE_DEFINED__
178 #define __IPersistStreamInit_INTERFACE_DEFINED__
179 
181 
183 
185  {
186  public:
187  virtual HRESULT STDMETHODCALLTYPE IsDirty( void) = 0;
188 
189  virtual HRESULT STDMETHODCALLTYPE Load(
190  /* [in] */ LPSTREAM pStm) = 0;
191 
192  virtual HRESULT STDMETHODCALLTYPE Save(
193  /* [in] */ LPSTREAM pStm,
194  /* [in] */ BOOL fClearDirty) = 0;
195 
197  /* [out] */ ULARGE_INTEGER __RPC_FAR *pCbSize) = 0;
198 
199  virtual HRESULT STDMETHODCALLTYPE InitNew( void) = 0;
200 
201  };
202 #endif
203 
204 #endif
struct tagCONNECTDATA __RPC_FAR * LPCONNECTDATA
Definition: Msi_ocidl.h:103
signed char BOOL
Definition: PDCwtypes.h:101
virtual HRESULT STDMETHODCALLTYPE Advise(IUnknown __RPC_FAR *pUnkSink, DWORD __RPC_FAR *pdwCookie)=0
Definition: Msi_ocidl.h:106
EXTERN_C const IID IID_IPersistMemory
Definition: Msi_ocidl.h:150
IStream __RPC_FAR * LPSTREAM
Definition: Msi_objidl.h:121
DWORD dwCookie
Definition: Msi_ocidl.h:98
virtual HRESULT STDMETHODCALLTYPE IsDirty(void)=0
EXTERN_C const IID IID_IConnectionPointContainer
Definition: Msi_ocidl.h:75
virtual HRESULT STDMETHODCALLTYPE FindConnectionPoint(REFIID riid, IConnectionPoint __RPC_FAR *__RPC_FAR *ppCP)=0
IConnectionPointContainer __RPC_FAR * LPCONNECTIONPOINTCONTAINER
Definition: Msi_ocidl.h:91
Definition: PDCwtypes.h:225
virtual HRESULT STDMETHODCALLTYPE GetSizeMax(ULONG __RPC_FAR *pCbSize)=0
virtual HRESULT STDMETHODCALLTYPE EnumConnectionPoints(IEnumConnectionPoints __RPC_FAR *__RPC_FAR *ppEnum)=0
virtual HRESULT STDMETHODCALLTYPE InitNew(void)=0
#define STDMETHODCALLTYPE
Definition: PDCwtypes.h:76
virtual HRESULT STDMETHODCALLTYPE InitNew(void)=0
virtual HRESULT STDMETHODCALLTYPE Next(ULONG cConnections, LPCONNECTDATA rgcd, ULONG __RPC_FAR *pcFetched)=0
virtual HRESULT STDMETHODCALLTYPE Clone(IEnumConnectionPoints __RPC_FAR *__RPC_FAR *ppEnum)=0
Definition: Msi_ocidl.h:125
virtual HRESULT STDMETHODCALLTYPE Next(ULONG cConnections, LPCONNECTIONPOINT __RPC_FAR *ppCP, ULONG __RPC_FAR *pcFetched)=0
long HRESULT
Definition: FragmentedString.h:20
virtual HRESULT STDMETHODCALLTYPE GetConnectionInterface(IID __RPC_FAR *pIID)=0
virtual HRESULT STDMETHODCALLTYPE IsDirty(void)=0
Definition: Msi_ocidl.h:152
void * LPVOID
Definition: PDCwtypes.h:136
Definition: Msi_objidl.h:188
struct tagCONNECTDATA __RPC_FAR * PCONNECTDATA
Definition: Msi_ocidl.h:101
EXTERN_C const IID IID_IConnectionPoint
Definition: Msi_ocidl.h:46
virtual HRESULT STDMETHODCALLTYPE Unadvise(DWORD dwCookie)=0
Definition: Msi_ocidl.h:184
IConnectionPoint __RPC_FAR * PCONNECTIONPOINT
Definition: Msi_ocidl.h:68
Definition: Msi_ocidl.h:48
virtual HRESULT STDMETHODCALLTYPE Reset(void)=0
virtual HRESULT STDMETHODCALLTYPE Skip(ULONG cConnections)=0
IConnectionPoint __RPC_FAR * LPCONNECTIONPOINT
Definition: Msi_ocidl.h:70
EXTERN_C const IID IID_IEnumConnections
Definition: Msi_ocidl.h:104
IPersistStreamInit __RPC_FAR * LPPERSISTSTREAMINIT
Definition: Msi_ocidl.h:180
virtual HRESULT STDMETHODCALLTYPE GetSizeMax(ULARGE_INTEGER __RPC_FAR *pCbSize)=0
IPersistMemory __RPC_FAR * LPPERSISTMEMORY
Definition: Msi_ocidl.h:148
virtual HRESULT STDMETHODCALLTYPE GetConnectionPointContainer(IConnectionPointContainer __RPC_FAR *__RPC_FAR *ppCPC)=0
REFIID riid
Definition: Msi_atlbase.h:90
Definition: Msi_ocidl.h:95
Definition: Msi_oaidl.h:41
#define __RPC_FAR
Definition: PDCrpc.h:38
IConnectionPointContainer __RPC_FAR * PCONNECTIONPOINTCONTAINER
Definition: Msi_ocidl.h:89
#define EXTERN_C
Definition: PDCwtypes.h:62
EXTERN_C const IID IID_IPersistStreamInit
Definition: Msi_ocidl.h:182
virtual HRESULT STDMETHODCALLTYPE Load(LPSTREAM pStm)=0
struct tagCONNECTDATA CONNECTDATA
virtual HRESULT STDMETHODCALLTYPE Save(LPVOID pMem, BOOL fClearDirty, ULONG cbSize)=0
virtual HRESULT STDMETHODCALLTYPE EnumConnections(IEnumConnections __RPC_FAR *__RPC_FAR *ppEnum)=0
virtual HRESULT STDMETHODCALLTYPE Skip(ULONG cConnections)=0
DWORD ULONG
Definition: PDCwtypes.h:127
unsigned long DWORD
Definition: PDCwtypes.h:121
virtual HRESULT STDMETHODCALLTYPE Clone(IEnumConnections __RPC_FAR *__RPC_FAR *ppEnum)=0
virtual HRESULT STDMETHODCALLTYPE Save(LPSTREAM pStm, BOOL fClearDirty)=0
virtual HRESULT STDMETHODCALLTYPE Reset(void)=0
IUnknown __RPC_FAR * pUnk
Definition: Msi_ocidl.h:97
Definition: Msi_ocidl.h:77
#define REFIID
Definition: PDCwtypes.h:321
Definition: Base/Base/GUID.h:32
virtual HRESULT STDMETHODCALLTYPE Load(LPVOID pMem, ULONG cbSize)=0