зеркало из https://github.com/microsoft/Detours.git
Updated DetourEnumerateImports (markdown)
Родитель
1d0c082358
Коммит
5bcc89f761
|
@ -25,10 +25,10 @@ Parameters
|
|||
: Program specific context that will be passed to *pfImportFile* and
|
||||
*pfImportFunc*.
|
||||
|
||||
*pfImportFile*
|
||||
[*pfImportFile*](DetourImportFileCallback)
|
||||
: Callback function to be called once per file imported by module.
|
||||
|
||||
*pfImportFunc*
|
||||
[*pfImportFunc*](DetourImportFuncCallback)
|
||||
: Callback function to be called once per function imported by module.
|
||||
|
||||
Return value
|
||||
|
@ -41,22 +41,22 @@ 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`.
|
||||
[`GetLastError`](https://docs.microsoft.com/en-us/windows/win32/api/errhandlingapi/nf-errhandlingapi-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.
|
||||
: The [NT COFF header](https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#coff-file-header-object-and-image) of the specified module is invalid.
|
||||
|
||||
**ERROR\_INVALID\_EXE\_SIGNATURE**
|
||||
: The NT COFF header of the specified module has an invalid signature.
|
||||
: The [NT COFF header](https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#coff-file-header-object-and-image) 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](DetourEnumerateImportsEx).
|
||||
If you need a pointer into the [Import Address Table](https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#import-address-table)
|
||||
("IAT"), you should use the [DetourEnumerateImportsEx](DetourEnumerateImportsEx).
|
||||
|
||||
Related Samples
|
||||
---------------
|
||||
|
|
Загрузка…
Ссылка в новой задаче