That should do it.
long GdipCreateBitmapFromResource (IN HINSTANCE hInstance, IN WCHAR* sResourceName, OUT LONG_PTR &lpImg) {
long nRet = -1; // Error
lpImg = NULL;
HMODULE hModule = gdiplib();
if (hModule) {
long_proc (HINSTANCE, WCHAR*, LONG_PTR*);
static zProc hProc;
if (hProc == 0) { hProc = (zProc) GetProcAddress(hModule, "GdipCreateBitmapFromResource"); }
if (hProc) { nRet = hProc(hInstance, sResourceName, &lpImg); }
}
return nRet;
}