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

  1. #include <windows.h>
  2. #include <delayimp.h>
  3. ////////////////////////////////////////////////////////////////////////////////
  4. static VOID* WINAPI hook_NULL()
  5. {
  6. SetLastError( ERROR_PROC_NOT_FOUND );
  7. return NULL;
  8. }
  9. ////////////////////////////////////////////////////////////////////////////////
  10. FARPROC WINAPI PCHSHELL_DelayLoadFailureHook( UINT unReason, PDelayLoadInfo pDelayInfo )
  11. {
  12. // HLINK.dll
  13. // SHELL32.dll
  14. // WININET.dll
  15. return (FARPROC)hook_NULL; // Also covers hook_ZERO and hook_FALSE.
  16. }
  17. // we assume DELAYLOAD_VERSION >= 0x0200
  18. PfnDliHook __pfnDliFailureHook2 = PCHSHELL_DelayLoadFailureHook;