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
38 lines
699 B
/*++
|
|
|
|
Copyright (c) Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
dload.c
|
|
|
|
Abstract:
|
|
|
|
A tiny bit of delayload failure support.
|
|
|
|
Author:
|
|
|
|
Jay Krell (JayKrell) March 2002
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#include "basedll.h"
|
|
|
|
//
|
|
// compare with \nt\mergedcomponents\dload\downlevel_dload.c
|
|
//
|
|
// These error codes cannot be used downlevel, where FormatMessage
|
|
// does not know about them.
|
|
//
|
|
extern const ULONG g_ulDelayLoad_Win32Error = ERROR_DELAY_LOAD_FAILED;
|
|
extern const LONG g_lDelayLoad_NtStatus = STATUS_DELAY_LOAD_FAILED;
|
|
|
|
VOID
|
|
WINAPI
|
|
DelayLoad_SetLastNtStatusAndWin32Error(
|
|
)
|
|
{
|
|
RtlSetLastWin32ErrorAndNtStatusFromNtStatus(g_lDelayLoad_NtStatus);
|
|
}
|