зеркало из https://github.com/microsoft/Detours.git
Страница:
DetourEnumerateImports
Страницы
DetourAllocateRegionWithinJumpBounds
DetourAttach
DetourAttachEx
DetourBinaryBywayCallback
DetourBinaryClose
DetourBinaryCommitCallback
DetourBinaryDeletePayload
DetourBinaryEditImports
DetourBinaryEnumeratePayloads
DetourBinaryFileCallback
DetourBinaryFindPayload
DetourBinaryOpen
DetourBinaryPurgePayloads
DetourBinaryResetImports
DetourBinarySetPayload
DetourBinarySymbolCallback
DetourBinaryWrite
DetourCodeFromPointer
DetourCopyPayloadToProcess
DetourCopyPayloadToProcessEx
DetourCreateProcessWithDll
DetourCreateProcessWithDllEx
DetourCreateProcessWithDlls
DetourDetach
DetourEnumerateExportCallback
DetourEnumerateExports
DetourEnumerateImports
DetourEnumerateImportsEx
DetourEnumerateModules
DetourFindFunction
DetourFindPayload
DetourFindPayloadEx
DetourFindRemotePayload
DetourFinishHelperProcess
DetourGetContainingModule
DetourGetEntryPoint
DetourGetModuleSize
DetourGetSizeOfPayloads
DetourImportFileCallback
DetourImportFuncCallback
DetourImportFuncCallbackEx
DetourIsHelperProcess
DetourRestoreAfterWith
DetourSetIgnoreTooSmall
DetourSetRetainRegions
DetourSetSystemRegionLowerBound
DetourSetSystemRegionUpperBound
DetourTransactionAbort
DetourTransactionBegin
DetourTransactionCommit
DetourTransactionCommitEx
DetourUpdateThread
FAQ
Home
OverviewHelpers
OverviewInterception
OverviewPayloads
Reference
SampleCommem
SampleCping
SampleDisas
SampleDtest
SampleDumpe
SampleDumpi
SampleDynamicAlloc
SampleEinst
SampleExcep
SampleFindFunc
SampleImpmunge
SampleMember
SamplePayload
SampleRegion
SampleSetdll
SampleSimple
SampleSlept
SampleSyelog
SampleTraceapi
SampleTracebld
SampleTracelnk
SampleTracemem
SampleTracereg
SampleTraceser
SampleTracetcp
SampleTryman
SampleWithdll
Samples
Using Detours
6
DetourEnumerateImports
Brian Gianforcaro редактировал(а) эту страницу 2020-08-22 00:25:06 -07:00
DetourEnumerateImports
Enumerate imports from a module.
Definition
BOOL DetourEnumerateImports(
_In_opt_ HMODULE hModule,
_In_opt_ PVOID pContext,
_In_opt_ PF_DETOUR_IMPORT_FILE_CALLBACK pfImportFile,
_In_opt_ PF_DETOUR_IMPORT_FUNC_CALLBACK pfImportFunc
);
Parameters
- hModule
- The handle to the module whose imports are to be enumerated.
- pContext
- Program specific context that will be passed to pfImportFile and pfImportFunc.
- pfImportFile
- Callback function to be called once per file imported by module.
- pfImportFunc
- Callback function to be called once per function imported by module.
Return value
TRUE
if module imports are enumerated; otherwise FALSE
.
Error codes
The function sets one of the following error codes, as appropriate. The
error code may be retrieved after the function has returned by calling
GetLastError
.
- ERROR_BAD_EXE_FORMAT
- The MZ header of specified module is invalid.
- ERROR_EXE_MARKED_INVALID
- The NT COFF header of the specified module is invalid.
- ERROR_INVALID_EXE_SIGNATURE
- The NT COFF header of the specified module has an invalid signature.
Remarks
If you need a pointer into the Import Address Table
("IAT"), you should use the DetourEnumerateImportsEx
.