Trait winsafe::prelude::oleaut_IPropertyStore
source · pub trait oleaut_IPropertyStore: ole_IUnknown {
// Provided methods
fn iter(&self) -> HrResult<impl Iterator<Item = HrResult<PROPERTYKEY>> + '_> { ... }
fn Commit(&self) -> HrResult<()> { ... }
fn GetAt(&self, index: u32) -> HrResult<PROPERTYKEY> { ... }
fn GetCount(&self) -> HrResult<u32> { ... }
fn GetValue(&self, key: &PROPERTYKEY) -> HrResult<PROPVARIANT> { ... }
}
Available on crate features
kernel
and oleaut
only.Expand description
This trait is enabled with the oleaut
feature, and provides methods for
IPropertyStore
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn iter(&self) -> HrResult<impl Iterator<Item = HrResult<PROPERTYKEY>> + '_>
fn iter(&self) -> HrResult<impl Iterator<Item = HrResult<PROPERTYKEY>> + '_>
Returns an iterator over the PROPERTYKEY
elements by calling
IPropertyStore::GetCount
and
IPropertyStore::GetAt
consecutively.
§Examples
use winsafe::{self as w, prelude::*};
let pstore: w::IPropertyStore; // initialized somewhere
for ppk in pstore.iter()? {
let ppk = ppk?;
// ...
}
sourcefn Commit(&self) -> HrResult<()>
fn Commit(&self) -> HrResult<()>
IPropertyStore::Commit
method.
sourcefn GetAt(&self, index: u32) -> HrResult<PROPERTYKEY>
fn GetAt(&self, index: u32) -> HrResult<PROPERTYKEY>
IPropertyStore::GetAt
method.
sourcefn GetCount(&self) -> HrResult<u32>
fn GetCount(&self) -> HrResult<u32>
IPropertyStore::GetCount
method.
sourcefn GetValue(&self, key: &PROPERTYKEY) -> HrResult<PROPVARIANT>
fn GetValue(&self, key: &PROPERTYKEY) -> HrResult<PROPVARIANT>
IPropertyStore::GetValue
method.
Object Safety§
This trait is not object safe.