Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

Module32First function (tlhelp32.h)

Feedback

In this article

Retrieves information about the first module associated with a process.

Syntax

BOOL Module32First(  [in]      HANDLE          hSnapshot,  [in, out] LPMODULEENTRY32 lpme);

Parameters

[in] hSnapshot

A handle to the snapshot returned from a previous call to theCreateToolhelp32Snapshot function.

[in, out] lpme

A pointer to aMODULEENTRY32 structure.

Return value

ReturnsTRUE if the first entry of the module list has been copied to the buffer orFALSE otherwise. TheERROR_NO_MORE_FILES error value is returned by theGetLastError function if no modules exist or the snapshot does not contain module information.

Remarks

The calling application must set thedwSize member ofMODULEENTRY32 to the size, in bytes, of the structure.

To retrieve information about other modules associated with the specified process, use theModule32Next function.

Examples

For an example, seeTraversing the Module List.

Requirements

RequirementValue
Minimum supported clientWindows XP [desktop apps only]
Minimum supported serverWindows Server 2003 [desktop apps only]
Target PlatformWindows
Headertlhelp32.h
LibraryKernel32.lib
DLLKernel32.dll

See also

CreateToolhelp32Snapshot

MODULEENTRY32

Module Walking

Module32Next

Tool Help Functions


Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?