GetModuleHandle

2.x

  HMODULE GetModuleHandle(lpszModuleName)    
  LPCSTR lpszModuleName; /* address of name of module */

The GetModuleHandle function retrieves the handle of the specified module.

Parameters

lpszModuleName

Points to a null-terminated string that specifies the name of the module.

Return Value

The return value is the handle of the module if the function is successful. Otherwise, it is NULL.

See Also

GetModuleFileName