Obtains access to image-specific data.
This function has been superseded by the ImageDirectoryEntryToDataEx function. Use ImageDirectoryEntryToDataEx to retrieve the section header.
PVOID WINAPI ImageDirectoryEntryToData( __in PVOID Base, __in BOOLEAN MappedAsImage, __in USHORT DirectoryEntry, __out PULONG Size );
The base address of the image.
If this parameter is TRUE, the file is mapped by the system as an image. If the flag is FALSE, the file is mapped as a data file by the MapViewOfFile function.
The index number of the desired directory entry. This parameter can be one of the following values.
Base relocation table
Bound import directory
COM descriptor table
Delay import table
The relative virtual address of global pointer
Import address table
Load configuration directory
Thread local storage directory
A pointer to a variable that receives the size of the data for the directory entry, in bytes.
If the function succeeds, the return value is a pointer to the directory entry's data.
If the function fails, the return value is NULL. To retrieve extended error information, call GetLastError.
The ImageDirectoryEntryToData function is used to obtain access to image-specific data.
All DbgHelp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.
Requires DbgHelp.dll 5.1 or later.
Declared in Dbghelp.h.
Build date: 9/25/2007
© 2007 Microsoft Corporation. All rights reserved.