minidl

Crates.io Docs unsafe: yes rust: stable License
GitHub Build Status: Travis Build Status: AppVeyor Open issues dependency status

Extremely lean cross platform library for loading symbols.

Quick Start

```rust use minidl::; use std::os::raw::;

struct Example { OutputDebugStringA: unsafe extern "system" fn (: *const cchar), Invalid_Optional: Option

impl Example { pub fn new() -> Result { let lib = Library::load("kernel32.dll")?; unsafe{Ok(Self{ OutputDebugStringA: lib.sym("OutputDebugStringA\0")?, InvalidOptional: lib.symopt("Invalid_Optional\0"), })} } } ```

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.