veeenu / hudhook

A videogame overlay framework written in Rust, supporting DirectX and OpenGL
MIT License
209 stars 30 forks source link

Bump `windows` to 0.51 #127

Closed veeenu closed 1 year ago

veeenu commented 1 year ago

This PR bumps windows-rs to the latest 0.51 version.

There are some new patterns to deal with optional out params that windows isn't handling in a very elegant way, e.g. options of options of mutable pointers where the difference between None and Some(null_mut()) is not particularly evident, so some helper functions to deal with these cases should be added and applied:

Example of usage:

let desc = try_out_param(|&mut out| device_and_swap_chain.GetDesc(out))?;

Blocked by #126