Quick Info

Windows NT
Yes
Win95
Yes
Win32s
No
Import Library
imagehlp.lib
Header File
imagehlp.h
Unicode
No
Platform Notes
Windows 95: IMAGEHLP is available as a redistributable.

ImageDirectoryEntryToData

[Now Supported on Windows NT]

The ImageDirectoryEntryToData function obtains access to image-specific data.

PVOID ImageDirectoryEntryToData(

IN LPVOID Base,

IN BOOLEAN MappedAsImage,

IN USHORT DirectoryEntry,

OUT PULONG Size

);

Parameters

Base

The base address of the image.

MappedAsImage

If this flag is TRUE, the image is mapped by the system loader. If the flag is FALSE, the file is mapped by a call to MapViewOfFile.

DirectoryEntry

The index number of the desired directory entry. The value must be one of the following:

  • IMAGE_DIRECTORY_ENTRY_EXPORT

  • IMAGE_DIRECTORY_ENTRY_IMPORT

  • IMAGE_DIRECTORY_ENTRY_RESOURCE

  • IMAGE_DIRECTORY_ENTRY_EXCEPTION

  • IMAGE_DIRECTORY_ENTRY_SECURITY

  • IMAGE_DIRECTORY_ENTRY_BASERELOC

  • IMAGE_DIRECTORY_ENTRY_DEBUG

  • IMAGE_DIRECTORY_ENTRY_COPYRIGHT

  • IMAGE_DIRECTORY_ENTRY_GLOBALPTR

  • IMAGE_DIRECTORY_ENTRY_TLS

  • IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG

  • IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT

  • IMAGE_DIRECTORY_ENTRY_IAT

Size

The size of the desired directory entry's data.

Return Values

If the function succeeds, the return value is a pointer to the directory entry's data.

If the function fails, then the return value is NULL. To retrieve extended error information, call GetLastError.

Remarks

The ImageDirectoryEntryToData function is used to obtain access to image-specific data.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database