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§

source

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?;
    // ...
}
source

fn Commit(&self) -> HrResult<()>

source

fn GetAt(&self, index: u32) -> HrResult<PROPERTYKEY>

source

fn GetCount(&self) -> HrResult<u32>

source

fn GetValue(&self, key: &PROPERTYKEY) -> HrResult<PROPVARIANT>

Object Safety§

This trait is not object safe.

Implementors§