IPropertyStoreCache *ppvObj_propertystore = NULL;
PROPVARIANT pvBackgroundColor;
UI_HSBCOLOR BackgroundColor = UI_HSB(0xFF, 0xFF, 0x54);
HRESULT hr;
hr = CoCreateInstance(&CLSID_InMemoryPropertyStore, NULL, CLSCTX_INPROC_SERVER, &IID_IPropertyStoreCache, (void**)&ppvObj_propertystore);
hr = ppvObj_propertystore->lpVtbl->Release(ppvObj_propertystore);
hr = ppvObj_propertystore->lpVtbl->QueryInterface(ppvObj_propertystore, &IID_IPropertyStoreCache, &ppvObj_propertystore);
PropVariantInit (&pvBackgroundColor);
hr = InitPropVariantFromUInt32(BackgroundColor, &pvBackgroundColor);
PropVariantInit(&pvBackgroundColorIn);
hr = InitPropVariantFromUInt32(BackgroundColor, &pvBackgroundColorIn);
hr = ppvObj_propertystore->lpVtbl->GetValue(ppvObj_propertystore, &UI_PKEY_GlobalBackgroundColor, &pvBackgroundColorIn);
PropVariantToUInt32(&pvBackgroundColorIn, &uErgebnis);
hr = ppvObj_propertystore->lpVtbl->SetValue(ppvObj_propertystore,
&UI_PKEY_GlobalBackgroundColor, &pvBackgroundColor);
hr = ppvObj_propertystore->lpVtbl->Commit(ppvObj_propertystore);