Exception if any corresponding symbol is not found or has null address.
version(Windows): struct Kernel32 { extern(Windows) nothrow: alias DWORD = uint; DWORD function() GetVersion, GetTickCount; } const kernel32 = DynamicLib("Kernel32.dll", true).bind!Kernel32(); import std.stdio; writefln("GetVersion: %X", kernel32.GetVersion()); writefln("GetTickCount: %s", kernel32.GetTickCount());
Returns an instance of struct T with all fields pointing to corresponding symbols in dynamic library lib.