if (result) {
if (!strcmp(lpProcName, "GetProcAddress"))
return (FARPROC)Hooks_GetProcAddress;
else if (!strcmp(lpProcName, "GetSystemInfo"))
return (FARPROC)Hooks_GetSystemInfo;
else if (!strcmp(lpProcName, "GetVersionExA"))
return (FARPROC)Hooks_GetVersionExA;
else if (!strcmp(lpProcName, "GetSystemDirectoryW"))
return (FARPROC)Hooks_GetSystemDirectoryW;
else if (!strcmp(lpProcName, "GetWindowsDirectoryW"))
return (FARPROC)Hooks_GetWindowsDirectoryW;
else if (!strcmp(lpProcName, "GetCurrentProcessId"))
return (FARPROC)Hooks_GetCurrentProcessId;
else if (!strcmp(lpProcName, "GetCurrentThreadId"))
return (FARPROC)Hooks_GetCurrentThreadId;
}
return result;