2 * Copyright (C) 2004 Mike McCormack
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 cpp_quote("#define PST_KEY_CURRENT_USER 0")
22 cpp_quote("#define PST_KEY_LOCAL_MACHINE 1")
24 cpp_quote("#define PST_E_OK 0x00000000L")
25 cpp_quote("#define PST_E_TYPE_EXISTS 0x800C0004L")
27 cpp_quote("#define PST_AUTHENTICODE 1")
28 cpp_quote("#define PST_BINARY_CHECK 2")
29 cpp_quote("#define PST_SECURITY_DESCRIPTOR 4")
31 typedef DWORD PST_ACCESSMODE;
32 typedef DWORD PST_ACCESSCLAUSETYPE;
33 typedef DWORD PST_KEY;
34 typedef DWORD PST_PROVIDERCAPABILITIES;
35 typedef GUID PST_PROVIDERID, *PPST_PROVIDERID;
37 /*****************************************************************************
41 uuid(5a6f1ebd-2db1-11d0-8c39-00c04fd9126b),
43 helpstring("PStore 1.0 Type Library")
47 importlib("stdole2.tlb");
49 typedef struct _PST_PROVIDERINFO
53 PST_PROVIDERCAPABILITIES Capabilities;
54 LPWSTR szProviderName;
55 } PST_PROVIDERINFO, *PPST_PROVIDERINFO;
57 typedef struct _PST_PROMPTINFO
63 } PST_PROMPTINFO, *PPST_PROMPTINFO;
65 typedef struct _PST_ACCESSCLAUSE {
67 PST_ACCESSCLAUSETYPE ClauseType;
70 } PST_ACCESSCLAUSE, *PPST_ACCESSCLAUSE;
72 typedef struct _PST_ACCESSRULE {
74 PST_ACCESSMODE AccessModeFlags;
76 PST_ACCESSCLAUSE* rgClauses;
77 } PST_ACCESSRULE, *PPST_ACCESSRULE;
79 typedef struct _PST_ACCESSRULESET {
82 PST_ACCESSRULE* rgRules;
83 } PST_ACCESSRULESET, *PPST_ACCESSRULESET;
85 typedef struct _PST_TYPEINFO {
88 } PST_TYPEINFO, *PPST_TYPEINFO;
92 uuid(5a6f1ec1-2db1-11d0-8c39-00c04fd9126b),
93 pointer_default(unique)
95 interface IEnumPStoreItems : IUnknown
98 [in] IEnumPStoreItems** ppenum );
103 [in] DWORD* pceltFetched );
113 uuid(789c1cbf-31ee-11d0-8c39-00c04fd9126b),
114 pointer_default(unique)
116 interface IEnumPStoreTypes : IUnknown
119 [in] IEnumPStoreTypes** ppenum );
124 [in] DWORD* pceltFetched );
132 /*****************************************************************************
137 uuid(5a6f1ec0-2db1-11d0-8c39-00c04fd9126b),
138 pointer_default(unique)
140 interface IPStore : IUnknown
143 [in] PPST_PROVIDERINFO* ppProperties );
145 HRESULT GetProvParam(
147 [out] DWORD* pcbData,
148 [out] BYTE** ppbData,
149 [in] DWORD dwFlags );
151 HRESULT SetProvParam(
155 [in] DWORD* dwFlags );
159 [in] const GUID* pType,
160 [in] PPST_TYPEINFO pInfo,
161 [in] DWORD dwFlags );
165 [in] const GUID* pType,
166 [in] PPST_TYPEINFO** ppInfo,
167 [in] DWORD dwFlags );
171 [in] const GUID* pType,
172 [in] DWORD dwFlags );
174 HRESULT CreateSubtype(
176 [in] const GUID* pType,
177 [in] const GUID* pSubtype,
178 [in] PPST_TYPEINFO pInfo,
179 [in] PPST_ACCESSRULESET pRules,
180 [in] DWORD dwFlags );
182 HRESULT GetSubtypeInfo(
184 [in] const GUID* pType,
185 [in] const GUID* pSubtype,
186 [in] PPST_TYPEINFO** ppInfo,
187 [in] DWORD dwFlags );
189 HRESULT DeleteSubtype(
191 [in] const GUID* pType,
192 [in] const GUID* pSubtype,
193 [in] DWORD dwFlags );
195 HRESULT ReadAccessRuleset(
197 [in] const GUID* pType,
198 [in] const GUID* pSubtype,
199 [in] PPST_TYPEINFO pInfo,
200 [in] PPST_ACCESSRULESET** ppRules,
201 [in] DWORD dwFlags );
203 HRESULT WriteAccessRuleset(
205 [in] const GUID* pType,
206 [in] const GUID* pSubtype,
207 [in] PPST_TYPEINFO pInfo,
208 [in] PPST_ACCESSRULESET pRules,
209 [in] DWORD dwFlags );
214 [in] IEnumPStoreTypes** ppenum );
216 HRESULT EnumSubtypes(
218 [in] const GUID* pType,
220 [in] IEnumPStoreTypes** ppenum );
224 [in] const GUID* pItemType,
225 [in] const GUID* pItemSubType,
226 [in] LPCWSTR szItemName,
227 [in] PPST_PROMPTINFO pPromptInfo,
228 [in] DWORD dwFlags );
232 [in] const GUID* pItemType,
233 [in] const GUID* pItemSubtype,
234 [in] LPCWSTR szItemName,
237 [in] PPST_PROMPTINFO pPromptInfo,
238 [in] DWORD dwFlags );
242 [in] const GUID* pItemType,
243 [in] const GUID* pItemSubtype,
244 [in] LPCWSTR szItemName,
246 [in,size_is(cbData)] BYTE *ppbData,
247 [in] PPST_PROMPTINFO pPromptInfo,
248 [in] DWORD dwDefaultConfirmationStyle,
253 [in] const GUID* pItemType,
254 [in] const GUID* pItemSubtype,
255 [in] LPCWSTR szItemName,
256 [in] PST_ACCESSMODE ModeFlags,
257 [in] PPST_PROMPTINFO pProomptInfo,
258 [in] DWORD dwFlags );
262 [in] const GUID* pItemType,
263 [in] const GUID* pItemSubtype,
264 [in] LPCWSTR* szItemName,
265 [in] DWORD dwFlags );
269 [in] const GUID* pItemType,
270 [in] const GUID* pItemSubtype,
272 [in] IEnumPStoreItems** ppenum );