DynamicLoadMulti

Given a static function declaration, generate a loader with the same name in the current scope that loads the function dynamically from the given DLL.

version(Windows)
mixin template DynamicLoadMulti (
string DLL
FUNCS...
) {}

Members

Mixins

__anonymous
mixin DynamicLoad!(FUNCS[0], DLL)
Undocumented in source.
__anonymous
mixin DynamicLoadMulti!(DLL, FUNCS[1..$])
Undocumented in source.

Mixed In Members

From mixin DynamicLoad!(FUNCS[0], DLL)

_loader
std.traits.ReturnType!F _loader(ARGS args)
Undocumented in source. Be warned that the author may not have intended to support it.

From mixin DynamicLoadMulti!(DLL, FUNCS[1..$])

__anonymous
mixin DynamicLoad!(FUNCS[0], DLL)
Undocumented in source.
__anonymous
mixin DynamicLoadMulti!(DLL, FUNCS[1..$])
Undocumented in source.

Examples

mixin DynamicLoad!(GetVersion, "kernel32.dll");
GetVersion(); // called via GetProcAddress

// Multiple imports
mixin DynamicLoadMulti!("user32.dll", GetDC, ReleaseDC);

Meta