Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
609 B

//***************************************************************************
// delay load code ripped from shell\lib\dllload.c
//***************************************************************************
#include "precomp.h"
HINSTANCE g_hinstShell32 = NULL;
void _GetProcFromDLL(HMODULE* phmod, LPCSTR pszDLL, FARPROC* ppfn, LPCSTR pszProc)
{
// If it's already loaded, return.
if (*ppfn) {
return;
}
if (*phmod == NULL) {
*phmod = LoadLibraryA(pszDLL);
if (*phmod == NULL) {
return;
}
}
*ppfn = GetProcAddress(*phmod, pszProc);
}