>>814
一応出来た気がするけど、extern(Windows)を付けたときに動きが変わって慌てた
リンケージで間違うと実行時にワケワカメになるからよく確かめてほしい

extern(Windows)
auto getAddressT(R, P... )( R function(P) fn, HINSTANCE hModule, string func)
{ return cast(typeof(fn)) GetProcAddress(hModule, func); }

auto getAddress(string name)(HINSTANCE hModule)
{ return getAddressT(mixin(name), hModule, name); }

...
auto func = getAddress!"HogeFunc"(hModule);