Skip to content

Instantly share code, notes, and snippets.

View PaulDance's full-sized avatar

Paul Mabileau PaulDance

View GitHub Profile
@PaulDance
PaulDance / .Sample_IContextMenu_ShellExtension.rs
Last active August 14, 2025 22:19
Sample Rust implementation of an IContextMenu-based Windows Shell extension DLL.
// This shows an example of how to implement the `IContextMenu` interface
// in Rust for Windows Shell context menu integration.
// The build results in a DLL that should be placed somewhere on the file
// system and then referenced in the registry. `activation.reg` shows the
// registry keys and values to set; can be used with `reg.exe import`.
// The Rust files should be moved into place as such:
// * `Cargo.toml`
// * `build.rs`