Leaked source code of windows server 2003
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.
 
 
 
 
 
 

25 lines
640 B

#include <windows.h>
#include <delayimp.h>
////////////////////////////////////////////////////////////////////////////////
static VOID* WINAPI hook_NULL()
{
SetLastError( ERROR_PROC_NOT_FOUND );
return NULL;
}
////////////////////////////////////////////////////////////////////////////////
FARPROC WINAPI PCHSHELL_DelayLoadFailureHook( UINT unReason, PDelayLoadInfo pDelayInfo )
{
// HLINK.dll
// SHELL32.dll
// WININET.dll
return (FARPROC)hook_NULL; // Also covers hook_ZERO and hook_FALSE.
}
// we assume DELAYLOAD_VERSION >= 0x0200
PfnDliHook __pfnDliFailureHook2 = PCHSHELL_DelayLoadFailureHook;