pub fn SHGetStockIconInfo(
    siid: SIID,
    flags: SHGSI
) -> HrResult<DestroyIconSiiGuard>
Available on crate feature shell only.
Expand description

SHGetStockIconInfo function.

§Examples

Loading the small (16x16 pixels) camera icon from the system:

use winsafe::{self as w, prelude::*, co};

let sii = w::SHGetStockIconInfo(
    co::SIID::DEVICECAMERA,
    co::SHGSI::ICON | co::SHGSI::SMALLICON,
)?;

println!("HICON handle: {}", sii.hIcon);