Lines Matching refs:pstore
12 #include <pstore.h>
287 void ClearPStoreType(IPStore* pstore, const GUID* type, const GUID* subtype) {
289 HRESULT result = pstore->EnumItems(0, type, subtype, 0, item.Receive());
293 pstore->DeleteItem(0, type, subtype, item_name, NULL, 0);
297 pstore->DeleteSubtype(0, type, subtype, 0);
298 pstore->DeleteType(0, type, 0);
301 void WritePStore(IPStore* pstore, const GUID* type, const GUID* subtype) {
320 HRESULT res = pstore->WriteItem(0, type, subtype, items[i].name,
356 base::win::ScopedComPtr<IPStore> pstore;
360 // PStore is read-only in Windows Vista.
366 res = PStoreCreateInstance(pstore.Receive(), 0, 0, 0);
368 ClearPStoreType(pstore, &type, &subtype);
372 pstore->CreateType(0, &type, &type_info, 0);
373 pstore->CreateSubtype(0, &type, &subtype, &type_info, NULL, 0);
374 WritePStore(pstore, &type, &subtype);
410 ClearPStoreType(pstore, &type, &subtype);
412 pstore.Release();