218 PFromRva<HMODULE*>(pidd->
rvaHmod),
219 PFromRva<PImgThunkData>(pidd->
rvaIAT),
220 PFromRva<PCImgThunkData>(pidd->
rvaINT),
241 VcppException(ERROR_SEVERITY_ERROR, ERROR_INVALID_PARAMETER),
249 HMODULE hmod = *idd.
phmod;
256 const unsigned iINT = iIAT;
263 dli.
dlp.
szProcName = LPCSTR(PFromRva<PIMAGE_IMPORT_BY_NAME>(
RVA(UINT_PTR(pitd->u1.AddressOfData)))->Name);
272 FARPROC pfnRet =
NULL;
277 if (pfnRet !=
NULL) {
289 hmod = ::LoadLibraryEx(dli.
szDll,
NULL, 0);
323 HMODULE hmodT = HMODULE(InterlockedExchangePointer((PVOID *) idd.
phmod, PVOID(hmod)));
341 if (pinh->Signature == IMAGE_NT_SIGNATURE &&
348 pfnRet = FARPROC(UINT_PTR(idd.
pBoundIAT[iIAT].u1.Function));
350 goto SetEntryHookBypass;
385 *ppfnIATEntry = pfnRet;
Definition: delayimp.h:70
RVA rvaUnloadIAT
Definition: delayimp.h:29
FARPROC pfnCur
Definition: delayimp.h:77
static DWORD WINAPI TimeStampOfImage(PIMAGE_NT_HEADERS pinh)
Definition: delayhlp.cpp:145
Definition: delayimp.h:55
RVA rvaHmod
Definition: delayimp.h:25
LPCSTR szName
Definition: delayhlp.cpp:118
Definition: delayimp.h:37
Definition: delayimp.h:53
Definition: delayimp.h:46
BOOL fImportByName
Definition: delayimp.h:63
RVA rvaDLLName
Definition: delayimp.h:24
PCImgThunkData pINT
Definition: delayhlp.cpp:121
#define NULL
Definition: crtdbg.h:30
RVA rvaIAT
Definition: delayimp.h:26
static PIMAGE_NT_HEADERS WINAPI PinhFromImageBase(HMODULE hmod)
Definition: delayhlp.cpp:133
DWORD dwTimeStamp
Definition: delayimp.h:30
LPCSTR szProcName
Definition: delayimp.h:65
DelayLoadProc dlp
Definition: delayimp.h:75
DWORD dwLastError
Definition: delayimp.h:78
HMODULE hmodCur
Definition: delayimp.h:76
struct DelayLoadInfo DelayLoadInfo
DWORD grAttrs
Definition: delayimp.h:23
HMODULE * phmod
Definition: delayhlp.cpp:119
DWORD RVA
Definition: delayimp.h:20
unsigned long DWORD
Definition: concrt.h:57
LPCSTR szDll
Definition: delayimp.h:74
ExternC PfnDliHook __pfnDliFailureHook2
Definition: delayimp.h:130
DWORD dwOrdinal
Definition: delayimp.h:66
Definition: delayhlp.cpp:116
PCImgThunkData pBoundIAT
Definition: delayhlp.cpp:122
PImgThunkData pIAT
Definition: delayhlp.cpp:120
DWORD grAttrs
Definition: delayhlp.cpp:117
const IMAGE_THUNK_DATA * PCImgThunkData
Definition: delayimp.h:19
static bool WINAPI FLoadedAtPreferredAddress(PIMAGE_NT_HEADERS pinh, HMODULE hmod)
Definition: delayhlp.cpp:151
#define VcppException(sev, err)
Definition: delayimp.h:108
DWORD dwTimeStamp
Definition: delayhlp.cpp:124
unsigned IndexFromPImgThunkData(PCImgThunkData pitdCur, PCImgThunkData pitdBase)
Definition: delayhlp.cpp:79
ExternC PfnDliHook __pfnDliNotifyHook2
Definition: delayimp.h:126
Definition: delayimp.h:57
Definition: delayimp.h:49
RVA rvaBoundIAT
Definition: delayimp.h:28
Definition: delayimp.h:51
RVA rvaINT
Definition: delayimp.h:27