GetModuleInformation

王朝百科·作者佚名  2010-05-16  
宽屏版  字体: |||超大  

GetModuleInformation

The GetModuleInformation function retrieves information about the specified module in the MODULEINFO structure.

BOOL GetModuleInformation(

HANDLE hProcess,

HMODULE hModule,

LPMODULEINFO lpmodinfo,

DWORD cb

);

Parameters

hProcess

Handle to the process that contains the module. If this parameter is NULL, GetModuleInformation returns information for the calling process.

The handle must have the PROCESS_QUERY_INFORMATION and PROCESS_VM_READ access rights. For more information, see Process Security and Access Rights.

hModule

Handle to the module.

lpmodinfo

[out] Pointer to the MODULEINFO structure that receives information about the module.

cb

Size of the MODULEINFO structure, in bytes.

Return Values

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Requirements

Client Requires Windows XP, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Header Declared in Psapi.h.

Library Link to Psapi.lib.

DLL Requires Psapi.dll.

 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝百科 版权所有