source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/pstore.h@ 1172

Last change on this file since 1172 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 30.2 KB
Line 
1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6#ifndef __PSTORE_H__
7#define __PSTORE_H__
8
9typedef DWORD PST_PROVIDERCAPABILITIES;
10
11#define PST_PC_PFX 0x00000001
12#define PST_PC_HARDWARE 0x00000002
13#define PST_PC_SMARTCARD 0x00000004
14#define PST_PC_PCMCIA 0x00000008
15#define PST_PC_MULTIPLE_REPOSITORIES 0x00000010
16#define PST_PC_ROAMABLE 0x00000020
17
18typedef DWORD PST_REPOSITORYCAPABILITIES;
19
20#define PST_RC_REMOVABLE 0x80000000
21
22typedef DWORD PST_KEY;
23
24#define PST_KEY_CURRENT_USER 0x00000000
25#define PST_KEY_LOCAL_MACHINE 0x00000001
26
27#define PST_CF_DEFAULT 0x00000000
28#define PST_CF_NONE 0x00000001
29#define PST_PF_ALWAYS_SHOW 0x00000001
30#define PST_PF_NEVER_SHOW 0x00000002
31#define PST_NO_OVERWRITE 0x00000002
32#define PST_UNRESTRICTED_ITEMDATA 0x00000004
33#define PST_PROMPT_QUERY 0x00000008
34#define PST_NO_UI_MIGRATION 0x00000010
35
36typedef DWORD PST_ACCESSMODE;
37
38#define PST_READ 0x0001
39#define PST_WRITE 0x0002
40
41typedef DWORD PST_ACCESSCLAUSETYPE;
42
43#define PST_AUTHENTICODE 1
44#define PST_BINARY_CHECK 2
45#define PST_SECURITY_DESCRIPTOR 4
46#define PST_SELF_RELATIVE_CLAUSE __MSABI_LONG(0x80000000)
47
48#define PST_AC_SINGLE_CALLER 0
49#define PST_AC_TOP_LEVEL_CALLER 1
50#define PST_AC_IMMEDIATE_CALLER 2
51
52#define PST_PP_FLUSH_PW_CACHE 0x1
53
54#define MS_BASE_PSTPROVIDER_NAME L"System Protected Storage"
55
56#define MS_BASE_PSTPROVIDER_ID { 0x8a078c30,0x3755,0x11d0,{ 0xa0,0xbd,0x0,0xaa,0x0,0x61,0x42,0x6a } }
57#define MS_BASE_PSTPROVIDER_SZID L"8A078C30-3755-11d0-A0BD-00AA0061426A"
58
59#define MS_PFX_PSTPROVIDER_NAME L"PFX Storage Provider"
60#define MS_PFX_PSTPROVIDER_ID { 0x3ca94f30,0x7ac1,0x11d0,{0x8c,0x42,0x00,0xc0,0x4f,0xc2,0x99,0xeb} }
61#define MS_PFX_PSTPROVIDER_SZID L"3ca94f30-7ac1-11d0-8c42-00c04fc299eb"
62
63#define PST_CONFIGDATA_TYPE_STRING L"Configuration Data"
64#define PST_CONFIGDATA_TYPE_GUID { 0x8ec99652,0x8909,0x11d0,{0x8c,0x4d,0x00,0xc0,0x4f,0xc2,0x97,0xeb} }
65
66#define PST_PROTECTEDSTORAGE_SUBTYPE_STRING L"Protected Storage"
67#define PST_PROTECTEDSTORAGE_SUBTYPE_GUID { 0xd3121b8e,0x8a7d,0x11d0,{0x8c,0x4f,0x00,0xc0,0x4f,0xc2,0x97,0xeb} }
68
69#define PST_PSTORE_PROVIDERS_SUBTYPE_STRING L"Protected Storage Provider List"
70#define PST_PSTORE_PROVIDERS_SUBTYPE_GUID { 0x8ed17a64,0x91d0,0x11d0,{0x8c,0x43,0x00,0xc0,0x4f,0xc2,0xc6,0x21} }
71
72#ifndef PST_E_OK
73#define PST_E_OK _HRESULT_TYPEDEF_(0x00000000)
74#define PST_E_FAIL _HRESULT_TYPEDEF_(0x800C0001)
75#define PST_E_PROV_DLL_NOT_FOUND _HRESULT_TYPEDEF_(0x800C0002)
76#define PST_E_INVALID_HANDLE _HRESULT_TYPEDEF_(0x800C0003)
77#define PST_E_TYPE_EXISTS _HRESULT_TYPEDEF_(0x800C0004)
78#define PST_E_TYPE_NO_EXISTS _HRESULT_TYPEDEF_(0x800C0005)
79#define PST_E_INVALID_RULESET _HRESULT_TYPEDEF_(0x800C0006)
80#define PST_E_NO_PERMISSIONS _HRESULT_TYPEDEF_(0x800C0007)
81#define PST_E_STORAGE_ERROR _HRESULT_TYPEDEF_(0x800C0008)
82#define PST_E_CALLER_NOT_VERIFIED _HRESULT_TYPEDEF_(0x800C0009)
83#define PST_E_WRONG_PASSWORD _HRESULT_TYPEDEF_(0x800C000A)
84#define PST_E_DISK_IMAGE_MISMATCH _HRESULT_TYPEDEF_(0x800C000B)
85#define PST_E_UNKNOWN_EXCEPTION _HRESULT_TYPEDEF_(0x800C000D)
86#define PST_E_BAD_FLAGS _HRESULT_TYPEDEF_(0x800C000E)
87#define PST_E_ITEM_EXISTS _HRESULT_TYPEDEF_(0x800C000F)
88#define PST_E_ITEM_NO_EXISTS _HRESULT_TYPEDEF_(0x800C0010)
89#define PST_E_SERVICE_UNAVAILABLE _HRESULT_TYPEDEF_(0x800C0011)
90#define PST_E_NOTEMPTY _HRESULT_TYPEDEF_(0x800C0012)
91#define PST_E_INVALID_STRING _HRESULT_TYPEDEF_(0x800C0013)
92#define PST_E_STATE_INVALID _HRESULT_TYPEDEF_(0x800C0014)
93#define PST_E_NOT_OPEN _HRESULT_TYPEDEF_(0x800C0015)
94#define PST_E_ALREADY_OPEN _HRESULT_TYPEDEF_(0x800C0016)
95#define PST_E_NYI _HRESULT_TYPEDEF_(0x800C0F00)
96
97#define MIN_PST_ERROR 0x800C0001
98#define MAX_PST_ERROR 0x800C0F00
99#endif
100
101#include "rpc.h"
102#include "rpcndr.h"
103
104#ifdef __cplusplus
105extern "C" {
106#endif
107
108#include "wtypes.h"
109
110#ifndef __MIDL_user_allocate_free_DEFINED__
111#define __MIDL_user_allocate_free_DEFINED__
112 void *__RPC_API MIDL_user_allocate(size_t);
113 void __RPC_API MIDL_user_free(void *);
114#endif
115
116 typedef DWORD PST_PROVIDERCAPABILITIES;
117 typedef DWORD PST_REPOSITORYCAPABILITIES;
118 typedef DWORD PST_KEY;
119 typedef DWORD PST_ACCESSMODE;
120 typedef DWORD PST_ACCESSCLAUSETYPE;
121 typedef GUID UUID;
122 typedef ULARGE_INTEGER PST_PROVIDER_HANDLE;
123 typedef GUID PST_PROVIDERID;
124 typedef PST_PROVIDERID *PPST_PROVIDERID;
125
126 typedef struct _PST_PROVIDERINFO {
127 DWORD cbSize;
128 PST_PROVIDERID ID;
129 PST_PROVIDERCAPABILITIES Capabilities;
130 LPWSTR szProviderName;
131 } PST_PROVIDERINFO;
132
133 typedef struct _PST_PROVIDERINFO *PPST_PROVIDERINFO;
134
135 typedef struct _PST_TYPEINFO {
136 DWORD cbSize;
137 LPWSTR szDisplayName;
138 } PST_TYPEINFO;
139
140 typedef struct _PST_TYPEINFO *PPST_TYPEINFO;
141
142 typedef struct _PST_PROMPTINFO {
143 DWORD cbSize;
144 DWORD dwPromptFlags;
145 HWND hwndApp;
146 LPCWSTR szPrompt;
147 } PST_PROMPTINFO;
148
149 typedef struct _PST_PROMPTINFO *PPST_PROMPTINFO;
150
151 typedef struct _PST_ACCESSCLAUSE {
152 DWORD cbSize;
153 PST_ACCESSCLAUSETYPE ClauseType;
154 DWORD cbClauseData;
155 VOID *pbClauseData;
156 } PST_ACCESSCLAUSE;
157
158 typedef struct _PST_ACCESSCLAUSE *PPST_ACCESSCLAUSE;
159
160 typedef struct _PST_ACCESSRULE {
161 DWORD cbSize;
162 PST_ACCESSMODE AccessModeFlags;
163 DWORD cClauses;
164 PST_ACCESSCLAUSE *rgClauses;
165 } PST_ACCESSRULE;
166
167 typedef struct _PST_ACCESSRULE *PPST_ACCESSRULE;
168
169 typedef struct _PST_ACCESSRULESET {
170 DWORD cbSize;
171 DWORD cRules;
172 PST_ACCESSRULE *rgRules;
173 } PST_ACCESSRULESET;
174
175 typedef struct _PST_ACCESSRULESET *PPST_ACCESSRULESET;
176
177 typedef struct _PST_AUTHENTICODEDATA {
178 DWORD cbSize;
179 DWORD dwModifiers;
180 LPCWSTR szRootCA;
181 LPCWSTR szIssuer;
182 LPCWSTR szPublisher;
183 LPCWSTR szProgramName;
184 } PST_AUTHENTICODEDATA;
185
186 typedef struct _PST_AUTHENTICODEDATA *PPST_AUTHENTICODEDATA;
187 typedef struct _PST_AUTHENTICODEDATA *LPPST_AUTHENTICODEDATA;
188
189 typedef struct _PST_BINARYCHECKDATA {
190 DWORD cbSize;
191 DWORD dwModifiers;
192 LPCWSTR szFilePath;
193 } PST_BINARYCHECKDATA;
194
195 typedef struct _PST_BINARYCHECKDATA *PPST_BINARYCHECKDATA;
196 typedef struct _PST_BINARYCHECKDATA *LPPST_BINARYCHECKDATA;
197 extern RPC_IF_HANDLE __MIDL__intf_0000_v0_0_c_ifspec;
198 extern RPC_IF_HANDLE __MIDL__intf_0000_v0_0_s_ifspec;
199
200#ifdef __cplusplus
201}
202#endif
203
204#ifndef COM_NO_WINDOWS_H
205#include "windows.h"
206#include "ole2.h"
207#endif
208
209#ifdef __cplusplus
210extern "C" {
211#endif
212
213#ifndef __IEnumPStoreItems_FWD_DEFINED__
214#define __IEnumPStoreItems_FWD_DEFINED__
215 typedef struct IEnumPStoreItems IEnumPStoreItems;
216#endif
217
218#ifndef __IEnumPStoreTypes_FWD_DEFINED__
219#define __IEnumPStoreTypes_FWD_DEFINED__
220 typedef struct IEnumPStoreTypes IEnumPStoreTypes;
221#endif
222
223#ifndef __IPStore_FWD_DEFINED__
224#define __IPStore_FWD_DEFINED__
225 typedef struct IPStore IPStore;
226#endif
227
228#ifndef __IEnumPStoreProviders_FWD_DEFINED__
229#define __IEnumPStoreProviders_FWD_DEFINED__
230 typedef struct IEnumPStoreProviders IEnumPStoreProviders;
231#endif
232
233#include "oaidl.h"
234
235#ifndef __MIDL_user_allocate_free_DEFINED__
236#define __MIDL_user_allocate_free_DEFINED__
237 void *__RPC_API MIDL_user_allocate(size_t);
238 void __RPC_API MIDL_user_free(void *);
239#endif
240
241#ifndef __IEnumPStoreItems_INTERFACE_DEFINED__
242#define __IEnumPStoreItems_INTERFACE_DEFINED__
243 EXTERN_C const IID IID_IEnumPStoreItems;
244#if defined(__cplusplus) && !defined(CINTERFACE)
245 struct IEnumPStoreItems : public IUnknown {
246public:
247 virtual HRESULT WINAPI Next(DWORD celt,LPWSTR *rgelt,DWORD *pceltFetched) = 0;
248 virtual HRESULT WINAPI Skip(DWORD celt) = 0;
249 virtual HRESULT WINAPI Reset(void) = 0;
250 virtual HRESULT WINAPI Clone(IEnumPStoreItems **ppenum) = 0;
251 };
252#else
253 typedef struct IEnumPStoreItemsVtbl {
254 BEGIN_INTERFACE
255 HRESULT (WINAPI *QueryInterface)(IEnumPStoreItems *This,REFIID riid,void **ppvObject);
256 ULONG (WINAPI *AddRef)(IEnumPStoreItems *This);
257 ULONG (WINAPI *Release)(IEnumPStoreItems *This);
258 HRESULT (WINAPI *Next)(IEnumPStoreItems *This,DWORD celt,LPWSTR *rgelt,DWORD *pceltFetched);
259 HRESULT (WINAPI *Skip)(IEnumPStoreItems *This,DWORD celt);
260 HRESULT (WINAPI *Reset)(IEnumPStoreItems *This);
261 HRESULT (WINAPI *Clone)(IEnumPStoreItems *This,IEnumPStoreItems **ppenum);
262 END_INTERFACE
263 } IEnumPStoreItemsVtbl;
264 struct IEnumPStoreItems {
265 CONST_VTBL struct IEnumPStoreItemsVtbl *lpVtbl;
266 };
267#ifdef COBJMACROS
268#define IEnumPStoreItems_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
269#define IEnumPStoreItems_AddRef(This) (This)->lpVtbl->AddRef(This)
270#define IEnumPStoreItems_Release(This) (This)->lpVtbl->Release(This)
271#define IEnumPStoreItems_Next(This,celt,rgelt,pceltFetched) (This)->lpVtbl->Next(This,celt,rgelt,pceltFetched)
272#define IEnumPStoreItems_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
273#define IEnumPStoreItems_Reset(This) (This)->lpVtbl->Reset(This)
274#define IEnumPStoreItems_Clone(This,ppenum) (This)->lpVtbl->Clone(This,ppenum)
275#endif
276#endif
277 HRESULT WINAPI IEnumPStoreItems_Next_Proxy(IEnumPStoreItems *This,DWORD celt,LPWSTR *rgelt,DWORD *pceltFetched);
278 void __RPC_STUB IEnumPStoreItems_Next_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
279 HRESULT WINAPI IEnumPStoreItems_Skip_Proxy(IEnumPStoreItems *This,DWORD celt);
280 void __RPC_STUB IEnumPStoreItems_Skip_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
281 HRESULT WINAPI IEnumPStoreItems_Reset_Proxy(IEnumPStoreItems *This);
282 void __RPC_STUB IEnumPStoreItems_Reset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
283 HRESULT WINAPI IEnumPStoreItems_Clone_Proxy(IEnumPStoreItems *This,IEnumPStoreItems **ppenum);
284 void __RPC_STUB IEnumPStoreItems_Clone_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
285#endif
286
287#ifndef __IEnumPStoreTypes_INTERFACE_DEFINED__
288#define __IEnumPStoreTypes_INTERFACE_DEFINED__
289 EXTERN_C const IID IID_IEnumPStoreTypes;
290#if defined(__cplusplus) && !defined(CINTERFACE)
291 struct IEnumPStoreTypes : public IUnknown {
292 public:
293 virtual HRESULT WINAPI Next(DWORD celt,GUID *rgelt,DWORD *pceltFetched) = 0;
294 virtual HRESULT WINAPI Skip(DWORD celt) = 0;
295 virtual HRESULT WINAPI Reset(void) = 0;
296 virtual HRESULT WINAPI Clone(IEnumPStoreTypes **ppenum) = 0;
297 };
298#else
299 typedef struct IEnumPStoreTypesVtbl {
300 BEGIN_INTERFACE
301 HRESULT (WINAPI *QueryInterface)(IEnumPStoreTypes *This,REFIID riid,void **ppvObject);
302 ULONG (WINAPI *AddRef)(IEnumPStoreTypes *This);
303 ULONG (WINAPI *Release)(IEnumPStoreTypes *This);
304 HRESULT (WINAPI *Next)(IEnumPStoreTypes *This,DWORD celt,GUID *rgelt,DWORD *pceltFetched);
305 HRESULT (WINAPI *Skip)(IEnumPStoreTypes *This,DWORD celt);
306 HRESULT (WINAPI *Reset)(IEnumPStoreTypes *This);
307 HRESULT (WINAPI *Clone)(IEnumPStoreTypes *This,IEnumPStoreTypes **ppenum);
308 END_INTERFACE
309 } IEnumPStoreTypesVtbl;
310 struct IEnumPStoreTypes {
311 CONST_VTBL struct IEnumPStoreTypesVtbl *lpVtbl;
312 };
313#ifdef COBJMACROS
314#define IEnumPStoreTypes_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
315#define IEnumPStoreTypes_AddRef(This) (This)->lpVtbl->AddRef(This)
316#define IEnumPStoreTypes_Release(This) (This)->lpVtbl->Release(This)
317#define IEnumPStoreTypes_Next(This,celt,rgelt,pceltFetched) (This)->lpVtbl->Next(This,celt,rgelt,pceltFetched)
318#define IEnumPStoreTypes_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
319#define IEnumPStoreTypes_Reset(This) (This)->lpVtbl->Reset(This)
320#define IEnumPStoreTypes_Clone(This,ppenum) (This)->lpVtbl->Clone(This,ppenum)
321#endif
322#endif
323 HRESULT WINAPI IEnumPStoreTypes_Next_Proxy(IEnumPStoreTypes *This,DWORD celt,GUID *rgelt,DWORD *pceltFetched);
324 void __RPC_STUB IEnumPStoreTypes_Next_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
325 HRESULT WINAPI IEnumPStoreTypes_Skip_Proxy(IEnumPStoreTypes *This,DWORD celt);
326 void __RPC_STUB IEnumPStoreTypes_Skip_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
327 HRESULT WINAPI IEnumPStoreTypes_Reset_Proxy(IEnumPStoreTypes *This);
328 void __RPC_STUB IEnumPStoreTypes_Reset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
329 HRESULT WINAPI IEnumPStoreTypes_Clone_Proxy(IEnumPStoreTypes *This,IEnumPStoreTypes **ppenum);
330 void __RPC_STUB IEnumPStoreTypes_Clone_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
331#endif
332
333#ifndef __IPStore_INTERFACE_DEFINED__
334#define __IPStore_INTERFACE_DEFINED__
335 EXTERN_C const IID IID_IPStore;
336#if defined(__cplusplus) && !defined(CINTERFACE)
337 struct IPStore : public IUnknown {
338 public:
339 virtual HRESULT WINAPI GetInfo(PPST_PROVIDERINFO *ppProperties) = 0;
340 virtual HRESULT WINAPI GetProvParam(DWORD dwParam,DWORD *pcbData,BYTE **ppbData,DWORD dwFlags) = 0;
341 virtual HRESULT WINAPI SetProvParam(DWORD dwParam,DWORD cbData,BYTE *pbData,DWORD dwFlags) = 0;
342 virtual HRESULT WINAPI CreateType(PST_KEY Key,const GUID *pType,PPST_TYPEINFO pInfo,DWORD dwFlags) = 0;
343 virtual HRESULT WINAPI GetTypeInfo(PST_KEY Key,const GUID *pType,PPST_TYPEINFO *ppInfo,DWORD dwFlags) = 0;
344 virtual HRESULT WINAPI DeleteType(PST_KEY Key,const GUID *pType,DWORD dwFlags) = 0;
345 virtual HRESULT WINAPI CreateSubtype(PST_KEY Key,const GUID *pType,const GUID *pSubtype,PPST_TYPEINFO pInfo,PPST_ACCESSRULESET pRules,DWORD dwFlags) = 0;
346 virtual HRESULT WINAPI GetSubtypeInfo(PST_KEY Key,const GUID *pType,const GUID *pSubtype,PPST_TYPEINFO *ppInfo,DWORD dwFlags) = 0;
347 virtual HRESULT WINAPI DeleteSubtype(PST_KEY Key,const GUID *pType,const GUID *pSubtype,DWORD dwFlags) = 0;
348 virtual HRESULT WINAPI ReadAccessRuleset(PST_KEY Key,const GUID *pType,const GUID *pSubtype,PPST_ACCESSRULESET *ppRules,DWORD dwFlags) = 0;
349 virtual HRESULT WINAPI WriteAccessRuleset(PST_KEY Key,const GUID *pType,const GUID *pSubtype,PPST_ACCESSRULESET pRules,DWORD dwFlags) = 0;
350 virtual HRESULT WINAPI EnumTypes(PST_KEY Key,DWORD dwFlags,IEnumPStoreTypes **ppenum) = 0;
351 virtual HRESULT WINAPI EnumSubtypes(PST_KEY Key,const GUID *pType,DWORD dwFlags,IEnumPStoreTypes **ppenum) = 0;
352 virtual HRESULT WINAPI DeleteItem(PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,LPCWSTR szItemName,PPST_PROMPTINFO pPromptInfo,DWORD dwFlags) = 0;
353 virtual HRESULT WINAPI ReadItem(PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,LPCWSTR szItemName,DWORD *pcbData,BYTE **ppbData,PPST_PROMPTINFO pPromptInfo,DWORD dwFlags) = 0;
354 virtual HRESULT WINAPI WriteItem(PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,LPCWSTR szItemName,DWORD cbData,BYTE *pbData,PPST_PROMPTINFO pPromptInfo,DWORD dwDefaultConfirmationStyle,DWORD dwFlags) = 0;
355 virtual HRESULT WINAPI OpenItem(PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,LPCWSTR szItemName,PST_ACCESSMODE ModeFlags,PPST_PROMPTINFO pPromptInfo,DWORD dwFlags) = 0;
356 virtual HRESULT WINAPI CloseItem(PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,LPCWSTR szItemName,DWORD dwFlags) = 0;
357 virtual HRESULT WINAPI EnumItems(PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,DWORD dwFlags,IEnumPStoreItems **ppenum) = 0;
358 };
359#else
360 typedef struct IPStoreVtbl {
361 BEGIN_INTERFACE
362 HRESULT (WINAPI *QueryInterface)(IPStore *This,REFIID riid,void **ppvObject);
363 ULONG (WINAPI *AddRef)(IPStore *This);
364 ULONG (WINAPI *Release)(IPStore *This);
365 HRESULT (WINAPI *GetInfo)(IPStore *This,PPST_PROVIDERINFO *ppProperties);
366 HRESULT (WINAPI *GetProvParam)(IPStore *This,DWORD dwParam,DWORD *pcbData,BYTE **ppbData,DWORD dwFlags);
367 HRESULT (WINAPI *SetProvParam)(IPStore *This,DWORD dwParam,DWORD cbData,BYTE *pbData,DWORD dwFlags);
368 HRESULT (WINAPI *CreateType)(IPStore *This,PST_KEY Key,const GUID *pType,PPST_TYPEINFO pInfo,DWORD dwFlags);
369 HRESULT (WINAPI *GetTypeInfo)(IPStore *This,PST_KEY Key,const GUID *pType,PPST_TYPEINFO *ppInfo,DWORD dwFlags);
370 HRESULT (WINAPI *DeleteType)(IPStore *This,PST_KEY Key,const GUID *pType,DWORD dwFlags);
371 HRESULT (WINAPI *CreateSubtype)(IPStore *This,PST_KEY Key,const GUID *pType,const GUID *pSubtype,PPST_TYPEINFO pInfo,PPST_ACCESSRULESET pRules,DWORD dwFlags);
372 HRESULT (WINAPI *GetSubtypeInfo)(IPStore *This,PST_KEY Key,const GUID *pType,const GUID *pSubtype,PPST_TYPEINFO *ppInfo,DWORD dwFlags);
373 HRESULT (WINAPI *DeleteSubtype)(IPStore *This,PST_KEY Key,const GUID *pType,const GUID *pSubtype,DWORD dwFlags);
374 HRESULT (WINAPI *ReadAccessRuleset)(IPStore *This,PST_KEY Key,const GUID *pType,const GUID *pSubtype,PPST_ACCESSRULESET *ppRules,DWORD dwFlags);
375 HRESULT (WINAPI *WriteAccessRuleset)(IPStore *This,PST_KEY Key,const GUID *pType,const GUID *pSubtype,PPST_ACCESSRULESET pRules,DWORD dwFlags);
376 HRESULT (WINAPI *EnumTypes)(IPStore *This,PST_KEY Key,DWORD dwFlags,IEnumPStoreTypes **ppenum);
377 HRESULT (WINAPI *EnumSubtypes)(IPStore *This,PST_KEY Key,const GUID *pType,DWORD dwFlags,IEnumPStoreTypes **ppenum);
378 HRESULT (WINAPI *DeleteItem)(IPStore *This,PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,LPCWSTR szItemName,PPST_PROMPTINFO pPromptInfo,DWORD dwFlags);
379 HRESULT (WINAPI *ReadItem)(IPStore *This,PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,LPCWSTR szItemName,DWORD *pcbData,BYTE **ppbData,PPST_PROMPTINFO pPromptInfo,DWORD dwFlags);
380 HRESULT (WINAPI *WriteItem)(IPStore *This,PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,LPCWSTR szItemName,DWORD cbData,BYTE *pbData,PPST_PROMPTINFO pPromptInfo,DWORD dwDefaultConfirmationStyle,DWORD dwFlags);
381 HRESULT (WINAPI *OpenItem)(IPStore *This,PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,LPCWSTR szItemName,PST_ACCESSMODE ModeFlags,PPST_PROMPTINFO pPromptInfo,DWORD dwFlags);
382 HRESULT (WINAPI *CloseItem)(IPStore *This,PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,LPCWSTR szItemName,DWORD dwFlags);
383 HRESULT (WINAPI *EnumItems)(IPStore *This,PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,DWORD dwFlags,IEnumPStoreItems **ppenum);
384 END_INTERFACE
385 } IPStoreVtbl;
386 struct IPStore {
387 CONST_VTBL struct IPStoreVtbl *lpVtbl;
388 };
389#ifdef COBJMACROS
390#define IPStore_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
391#define IPStore_AddRef(This) (This)->lpVtbl->AddRef(This)
392#define IPStore_Release(This) (This)->lpVtbl->Release(This)
393#define IPStore_GetInfo(This,ppProperties) (This)->lpVtbl->GetInfo(This,ppProperties)
394#define IPStore_GetProvParam(This,dwParam,pcbData,ppbData,dwFlags) (This)->lpVtbl->GetProvParam(This,dwParam,pcbData,ppbData,dwFlags)
395#define IPStore_SetProvParam(This,dwParam,cbData,pbData,dwFlags) (This)->lpVtbl->SetProvParam(This,dwParam,cbData,pbData,dwFlags)
396#define IPStore_CreateType(This,Key,pType,pInfo,dwFlags) (This)->lpVtbl->CreateType(This,Key,pType,pInfo,dwFlags)
397#define IPStore_GetTypeInfo(This,Key,pType,ppInfo,dwFlags) (This)->lpVtbl->GetTypeInfo(This,Key,pType,ppInfo,dwFlags)
398#define IPStore_DeleteType(This,Key,pType,dwFlags) (This)->lpVtbl->DeleteType(This,Key,pType,dwFlags)
399#define IPStore_CreateSubtype(This,Key,pType,pSubtype,pInfo,pRules,dwFlags) (This)->lpVtbl->CreateSubtype(This,Key,pType,pSubtype,pInfo,pRules,dwFlags)
400#define IPStore_GetSubtypeInfo(This,Key,pType,pSubtype,ppInfo,dwFlags) (This)->lpVtbl->GetSubtypeInfo(This,Key,pType,pSubtype,ppInfo,dwFlags)
401#define IPStore_DeleteSubtype(This,Key,pType,pSubtype,dwFlags) (This)->lpVtbl->DeleteSubtype(This,Key,pType,pSubtype,dwFlags)
402#define IPStore_ReadAccessRuleset(This,Key,pType,pSubtype,ppRules,dwFlags) (This)->lpVtbl->ReadAccessRuleset(This,Key,pType,pSubtype,ppRules,dwFlags)
403#define IPStore_WriteAccessRuleset(This,Key,pType,pSubtype,pRules,dwFlags) (This)->lpVtbl->WriteAccessRuleset(This,Key,pType,pSubtype,pRules,dwFlags)
404#define IPStore_EnumTypes(This,Key,dwFlags,ppenum) (This)->lpVtbl->EnumTypes(This,Key,dwFlags,ppenum)
405#define IPStore_EnumSubtypes(This,Key,pType,dwFlags,ppenum) (This)->lpVtbl->EnumSubtypes(This,Key,pType,dwFlags,ppenum)
406#define IPStore_DeleteItem(This,Key,pItemType,pItemSubtype,szItemName,pPromptInfo,dwFlags) (This)->lpVtbl->DeleteItem(This,Key,pItemType,pItemSubtype,szItemName,pPromptInfo,dwFlags)
407#define IPStore_ReadItem(This,Key,pItemType,pItemSubtype,szItemName,pcbData,ppbData,pPromptInfo,dwFlags) (This)->lpVtbl->ReadItem(This,Key,pItemType,pItemSubtype,szItemName,pcbData,ppbData,pPromptInfo,dwFlags)
408#define IPStore_WriteItem(This,Key,pItemType,pItemSubtype,szItemName,cbData,pbData,pPromptInfo,dwDefaultConfirmationStyle,dwFlags) (This)->lpVtbl->WriteItem(This,Key,pItemType,pItemSubtype,szItemName,cbData,pbData,pPromptInfo,dwDefaultConfirmationStyle,dwFlags)
409#define IPStore_OpenItem(This,Key,pItemType,pItemSubtype,szItemName,ModeFlags,pPromptInfo,dwFlags) (This)->lpVtbl->OpenItem(This,Key,pItemType,pItemSubtype,szItemName,ModeFlags,pPromptInfo,dwFlags)
410#define IPStore_CloseItem(This,Key,pItemType,pItemSubtype,szItemName,dwFlags) (This)->lpVtbl->CloseItem(This,Key,pItemType,pItemSubtype,szItemName,dwFlags)
411#define IPStore_EnumItems(This,Key,pItemType,pItemSubtype,dwFlags,ppenum) (This)->lpVtbl->EnumItems(This,Key,pItemType,pItemSubtype,dwFlags,ppenum)
412#endif
413#endif
414 HRESULT WINAPI IPStore_GetInfo_Proxy(IPStore *This,PPST_PROVIDERINFO *ppProperties);
415 void __RPC_STUB IPStore_GetInfo_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
416 HRESULT WINAPI IPStore_GetProvParam_Proxy(IPStore *This,DWORD dwParam,DWORD *pcbData,BYTE **ppbData,DWORD dwFlags);
417 void __RPC_STUB IPStore_GetProvParam_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
418 HRESULT WINAPI IPStore_SetProvParam_Proxy(IPStore *This,DWORD dwParam,DWORD cbData,BYTE *pbData,DWORD dwFlags);
419 void __RPC_STUB IPStore_SetProvParam_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
420 HRESULT WINAPI IPStore_CreateType_Proxy(IPStore *This,PST_KEY Key,const GUID *pType,PPST_TYPEINFO pInfo,DWORD dwFlags);
421 void __RPC_STUB IPStore_CreateType_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
422 HRESULT WINAPI IPStore_GetTypeInfo_Proxy(IPStore *This,PST_KEY Key,const GUID *pType,PPST_TYPEINFO *ppInfo,DWORD dwFlags);
423 void __RPC_STUB IPStore_GetTypeInfo_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
424 HRESULT WINAPI IPStore_DeleteType_Proxy(IPStore *This,PST_KEY Key,const GUID *pType,DWORD dwFlags);
425 void __RPC_STUB IPStore_DeleteType_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
426 HRESULT WINAPI IPStore_CreateSubtype_Proxy(IPStore *This,PST_KEY Key,const GUID *pType,const GUID *pSubtype,PPST_TYPEINFO pInfo,PPST_ACCESSRULESET pRules,DWORD dwFlags);
427 void __RPC_STUB IPStore_CreateSubtype_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
428 HRESULT WINAPI IPStore_GetSubtypeInfo_Proxy(IPStore *This,PST_KEY Key,const GUID *pType,const GUID *pSubtype,PPST_TYPEINFO *ppInfo,DWORD dwFlags);
429 void __RPC_STUB IPStore_GetSubtypeInfo_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
430 HRESULT WINAPI IPStore_DeleteSubtype_Proxy(IPStore *This,PST_KEY Key,const GUID *pType,const GUID *pSubtype,DWORD dwFlags);
431 void __RPC_STUB IPStore_DeleteSubtype_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
432 HRESULT WINAPI IPStore_ReadAccessRuleset_Proxy(IPStore *This,PST_KEY Key,const GUID *pType,const GUID *pSubtype,PPST_ACCESSRULESET *ppRules,DWORD dwFlags);
433 void __RPC_STUB IPStore_ReadAccessRuleset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
434 HRESULT WINAPI IPStore_WriteAccessRuleset_Proxy(IPStore *This,PST_KEY Key,const GUID *pType,const GUID *pSubtype,PPST_ACCESSRULESET pRules,DWORD dwFlags);
435 void __RPC_STUB IPStore_WriteAccessRuleset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
436 HRESULT WINAPI IPStore_EnumTypes_Proxy(IPStore *This,PST_KEY Key,DWORD dwFlags,IEnumPStoreTypes **ppenum);
437 void __RPC_STUB IPStore_EnumTypes_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
438 HRESULT WINAPI IPStore_EnumSubtypes_Proxy(IPStore *This,PST_KEY Key,const GUID *pType,DWORD dwFlags,IEnumPStoreTypes **ppenum);
439 void __RPC_STUB IPStore_EnumSubtypes_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
440 HRESULT WINAPI IPStore_DeleteItem_Proxy(IPStore *This,PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,LPCWSTR szItemName,PPST_PROMPTINFO pPromptInfo,DWORD dwFlags);
441 void __RPC_STUB IPStore_DeleteItem_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
442 HRESULT WINAPI IPStore_ReadItem_Proxy(IPStore *This,PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,LPCWSTR szItemName,DWORD *pcbData,BYTE **ppbData,PPST_PROMPTINFO pPromptInfo,DWORD dwFlags);
443 void __RPC_STUB IPStore_ReadItem_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
444 HRESULT WINAPI IPStore_WriteItem_Proxy(IPStore *This,PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,LPCWSTR szItemName,DWORD cbData,BYTE *pbData,PPST_PROMPTINFO pPromptInfo,DWORD dwDefaultConfirmationStyle,DWORD dwFlags);
445 void __RPC_STUB IPStore_WriteItem_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
446 HRESULT WINAPI IPStore_OpenItem_Proxy(IPStore *This,PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,LPCWSTR szItemName,PST_ACCESSMODE ModeFlags,PPST_PROMPTINFO pPromptInfo,DWORD dwFlags);
447 void __RPC_STUB IPStore_OpenItem_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
448 HRESULT WINAPI IPStore_CloseItem_Proxy(IPStore *This,PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,LPCWSTR szItemName,DWORD dwFlags);
449 void __RPC_STUB IPStore_CloseItem_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
450 HRESULT WINAPI IPStore_EnumItems_Proxy(IPStore *This,PST_KEY Key,const GUID *pItemType,const GUID *pItemSubtype,DWORD dwFlags,IEnumPStoreItems **ppenum);
451 void __RPC_STUB IPStore_EnumItems_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
452#endif
453
454#ifndef __IEnumPStoreProviders_INTERFACE_DEFINED__
455#define __IEnumPStoreProviders_INTERFACE_DEFINED__
456 EXTERN_C const IID IID_IEnumPStoreProviders;
457#if defined(__cplusplus) && !defined(CINTERFACE)
458 struct IEnumPStoreProviders : public IUnknown {
459 public:
460 virtual HRESULT WINAPI Next(DWORD celt,PST_PROVIDERINFO **rgelt,DWORD *pceltFetched) = 0;
461 virtual HRESULT WINAPI Skip(DWORD celt) = 0;
462 virtual HRESULT WINAPI Reset(void) = 0;
463 virtual HRESULT WINAPI Clone(IEnumPStoreProviders **ppenum) = 0;
464 };
465#else
466 typedef struct IEnumPStoreProvidersVtbl {
467 BEGIN_INTERFACE
468 HRESULT (WINAPI *QueryInterface)(IEnumPStoreProviders *This,REFIID riid,void **ppvObject);
469 ULONG (WINAPI *AddRef)(IEnumPStoreProviders *This);
470 ULONG (WINAPI *Release)(IEnumPStoreProviders *This);
471 HRESULT (WINAPI *Next)(IEnumPStoreProviders *This,DWORD celt,PST_PROVIDERINFO **rgelt,DWORD *pceltFetched);
472 HRESULT (WINAPI *Skip)(IEnumPStoreProviders *This,DWORD celt);
473 HRESULT (WINAPI *Reset)(IEnumPStoreProviders *This);
474 HRESULT (WINAPI *Clone)(IEnumPStoreProviders *This,IEnumPStoreProviders **ppenum);
475 END_INTERFACE
476 } IEnumPStoreProvidersVtbl;
477 struct IEnumPStoreProviders {
478 CONST_VTBL struct IEnumPStoreProvidersVtbl *lpVtbl;
479 };
480#ifdef COBJMACROS
481#define IEnumPStoreProviders_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
482#define IEnumPStoreProviders_AddRef(This) (This)->lpVtbl->AddRef(This)
483#define IEnumPStoreProviders_Release(This) (This)->lpVtbl->Release(This)
484#define IEnumPStoreProviders_Next(This,celt,rgelt,pceltFetched) (This)->lpVtbl->Next(This,celt,rgelt,pceltFetched)
485#define IEnumPStoreProviders_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
486#define IEnumPStoreProviders_Reset(This) (This)->lpVtbl->Reset(This)
487#define IEnumPStoreProviders_Clone(This,ppenum) (This)->lpVtbl->Clone(This,ppenum)
488#endif
489#endif
490 HRESULT WINAPI IEnumPStoreProviders_Next_Proxy(IEnumPStoreProviders *This,DWORD celt,PST_PROVIDERINFO **rgelt,DWORD *pceltFetched);
491 void __RPC_STUB IEnumPStoreProviders_Next_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
492 HRESULT WINAPI IEnumPStoreProviders_Skip_Proxy(IEnumPStoreProviders *This,DWORD celt);
493 void __RPC_STUB IEnumPStoreProviders_Skip_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
494 HRESULT WINAPI IEnumPStoreProviders_Reset_Proxy(IEnumPStoreProviders *This);
495 void __RPC_STUB IEnumPStoreProviders_Reset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
496 HRESULT WINAPI IEnumPStoreProviders_Clone_Proxy(IEnumPStoreProviders *This,IEnumPStoreProviders **ppenum);
497 void __RPC_STUB IEnumPStoreProviders_Clone_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
498#endif
499
500#ifndef __PSTORECLib_LIBRARY_DEFINED__
501#define __PSTORECLib_LIBRARY_DEFINED__
502 EXTERN_C const IID LIBID_PSTORECLib;
503#ifdef __cplusplus
504 EXTERN_C const CLSID CLSID_CPStore;
505 class CPStore;
506#endif
507#ifdef __cplusplus
508 EXTERN_C const CLSID CLSID_CEnumTypes;
509 class CEnumTypes;
510#endif
511#ifdef __cplusplus
512 EXTERN_C const CLSID CLSID_CEnumItems;
513 class CEnumItems;
514#endif
515#endif
516
517 HRESULT WINAPI PStoreCreateInstance(IPStore **ppProvider,PST_PROVIDERID *pProviderID,void *pReserved,DWORD dwFlags);
518 HRESULT WINAPI PStoreEnumProviders(DWORD dwFlags,IEnumPStoreProviders **ppenum);
519
520 extern RPC_IF_HANDLE __MIDL__intf_0080_v0_0_c_ifspec;
521 extern RPC_IF_HANDLE __MIDL__intf_0080_v0_0_s_ifspec;
522
523#ifdef __cplusplus
524}
525#endif
526#endif
Note: See TracBrowser for help on using the repository browser.