picon 0.1.0

Get process icons in a cross-platform way
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod hicon;
mod manifest;

use crate::IconHandle;

pub(crate) fn get_icon(path: String) -> Option<IconHandle> {
    // Try manifest-based extraction first (works for UWP/MSIX packaged apps)
    if let Some(handle) = manifest::get_icon(&path) {
        return Some(handle);
    }
    // Fall back to ExtractIconExW (works for regular executables)
    hicon::get_icon(&path)
}