PRB: 16-bit Module Name Not Included in Toolhelp32 Snapshots (137288)
The information in this article applies to:
- Microsoft Win32 Software Development Kit (SDK) 4.0
This article was previously published under Q137288 SYMPTOMS
The snapshots returned by Toolhelp32 identify 16-bit processes as the
KERNEL32 module. In other words, the szExePath field of the MODULEENTRY32
structure contains KERNEL32.DLL for 16-bit Windows-based applications. The
correct module is given for Win32-based applications.
STATUS
This behavior is by design.
MORE INFORMATION
16-bit modules are very different from 32-bit modules and code that
manipulates the internals of one kind usually must be rewritten for the
other kind. The most common exception is code that prints out the name of
the .exe file. This information can be obtained, for both 16-bit and 32-bit
applications, from the szExeFile member of the PROCESSENTRY32 structure.
NOTE: The szExeFile field was added after the first beta of Windows 95,
so some prerelease SDK header files do not include this field. It is
important that you use the latest SDK header files for development.
REFERENCES
The PVIEW95 SDK sample uses the module fields in the MODULEENTRY32 and
PROCESSENTRY32 structures.
Modification Type: | Major | Last Reviewed: | 3/5/1999 |
---|
Keywords: | KB137288 |
---|
|