The LoadResource function loads the specified resource into global memory.
HGLOBAL LoadResource(
HMODULE hModule, |
// resource-module handle |
HRSRC hResInfo |
// resource handle |
); |
If the function succeeds, the return value is a handle to the global memory block containing the data associated with the resource.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
Both Windows 95 and Windows NT automatically free resources. You do not need to call the FreeResource function to free a resource loaded by using the LoadResource function.
FindResource, FindResourceEx, FreeResource, LoadLibrary, LoadModule, LockResource
See: