windows-dll 0.4.1

Macro for dynamically loading windows dll functions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::platform::{ULONG_PTR, WORD};
pub use crate::{
    cache::DllCache,
    platform::{LPCSTR, LPCWSTR},
};
pub use core::{self, option::Option, result::Result};

// Copied MAKEINTRESOURCEA function from winapi so that it can be const
#[inline]
pub const fn make_int_resource_a(i: WORD) -> LPCSTR {
    i as ULONG_PTR as _
}