AfxFindResourceHandle
Visual Studio 2010
Updated: June 2010
Use AfxFindResourceHandle to walk the resource chain and locate a specific resource by resource ID and resource type.
HINSTANCE AFXAPI AfxFindResourceHandle( LPCTSTR lpszName, LPCTSTR lpszType );
AfxFindResourceHandle finds the specific resource and returns a handle to the module that contains the resource. The resource might be in any extension DLL you have loaded. AfxFindResourceHandle tells you which one has the resource.
The modules are searched in this order:
-
The main module (if it is an extension DLL).
-
Non-system modules.
-
Language-specific modules.
-
The main module (if it is a system DLL).
-
System modules.