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.

SymLoadModule

IN HANDLE hProcess,

IN HANDLE hFile,

IN LPSTR ImageName,

IN LPSTR ModuleName,

IN DWORD BaseOfDll,

IN DWORD SizeOfDll

);

Parameters

hProcess

The process handle that was originally passed to SymInitialize.

hFile

The file handle for the executable image. This argument is used mostly by debuggers, where the debugger passes the file handle obtained from a debug event. A value of NULL indicates that the hFile is not used.

ImageName

The name of the executable image. This name can contain a partial path, a full path, or no path at all. If the file cannot be located by the name provided, the symbol search path is used.

ModuleName

A shortcut name for the module. If the pointer value is NULL, IMAGEHLP creates a name using the base name of the symbol file.

BaseOfDll

The load address of the module. If the value is zero, IMAGEHLP obtains the load address from the symbol file. The load address contained in the symbol file is not necessarily the actual load address. Debuggers and other applications having an actual load address should use the real load address when calling this function.

SizeOfDll

The size of the module. If the value is zero, IMAGEHLP obtains the size from the symbol file. The size contained in the symbol file is not necessarily the actual size. Debuggers and other applications having an actual size should use the real size when calling this function.

Return Values

If the function succeeds, the return value is TRUE.

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

Remarks

The symbol handler creates an entry for the module and if the deferred symbol loading option is turned off, an attempt is made to load the symbols. If deferred symbol loading is enabled, the module is marked as deferred and the symbols are not loaded until a reference is made to a symbol in the module.

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