Skip to content

Instantly share code, notes, and snippets.

@kilork
kilork / Cargo.toml
Last active January 16, 2022 17:06
idispatch com
[package]
name = "rust-simple-idispatch"
version = "0.1.0"
authors = ["Alexander Korolev <[email protected]>"]
edition = "2018"
[dependencies]
# com = { version = "0.3", features = [ "production" ] }
com = { git = "https://github.com/microsoft/com-rs", features = [ "production" ] }
winapi = { version = "0.3", features = [ "minwindef", "oaidl", "oleauto", "winnt", "wtypes", "wtypesbase" ] }
@ryanhanwu
ryanhanwu / Brewfile
Last active October 10, 2024 00:19
New Mac Setup Script 2021
# Taps
tap 'homebrew/cask-fonts'
tap 'homebrew/cask-versions'
tap 'heroku/brew'
# Install CLI Tools
## Shell Utilities
brew 'coreutils'
brew 'findutils'
brew 'autojump'
@derrickturk
derrickturk / com.rs
Created May 27, 2017 16:51
rust COM IDispatch client
use std::mem;
use std::ptr;
use std::iter;
use std::marker::PhantomData;
use std::ffi::OsStr;
use std::os::windows::ffi::OsStrExt;
use std::os::raw;
use winapi::objbase;
use winapi::winerror;