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.

38 lines
699 B

  1. /*++
  2. Copyright (c) Microsoft Corporation
  3. Module Name:
  4. dload.c
  5. Abstract:
  6. A tiny bit of delayload failure support.
  7. Author:
  8. Jay Krell (JayKrell) March 2002
  9. Revision History:
  10. --*/
  11. #include "basedll.h"
  12. //
  13. // compare with \nt\mergedcomponents\dload\downlevel_dload.c
  14. //
  15. // These error codes cannot be used downlevel, where FormatMessage
  16. // does not know about them.
  17. //
  18. extern const ULONG g_ulDelayLoad_Win32Error = ERROR_DELAY_LOAD_FAILED;
  19. extern const LONG g_lDelayLoad_NtStatus = STATUS_DELAY_LOAD_FAILED;
  20. VOID
  21. WINAPI
  22. DelayLoad_SetLastNtStatusAndWin32Error(
  23. )
  24. {
  25. RtlSetLastWin32ErrorAndNtStatusFromNtStatus(g_lDelayLoad_NtStatus);
  26. }