【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.25.26 GetModuleHandle
Contents
Description
Gets a handle to the module specified by the enumeration user can program upto 20 values from MODULE_USER to MODULE_USER+19 for there own dlls loaded by origin
Syntax
HINSTANCE GetModuleHandle( int nModuleID = MODULE_ORIGIN )
Parameters
- nModuleID
- [input] int specifying one of the MODULES whose handle is requested possible values are MODULE_ORIGIN, MODULE_OK, MODULE_OD, MODULE_OU, MODULE_OIDE
Return
If the function succeeds, the return value is a handle to the specified module.
If the function fails, the return value is NULL.
Examples
Remark
The returned handle is not global or inheritable. It cannot be duplicated or used by another process.
If lpModuleName does not include a path and there is more than one loaded module with the same base name and extension, you cannot predict which module handle will be returned.
See Also
LoadBitmap, LoadIcon, LoadImage
Header to Include
origin.h