Function windows::core::delay_load

pub unsafe fn delay_load<T>(library: PCSTR, function: PCSTR) -> Option<T>
Expand description

Attempts to load a function from a given library.

This is a small wrapper around LoadLibrary and GetProcAddress.

Safety

  • Both the library and function names must be valid null-terminated strings.