|
|
|
|
|
|
|
|
|
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.
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|