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
file: /Techref/os/win/api/win32/func/src/f54_1.htm, 2KB, , updated: 2001/6/24 14:09, local time: 2024/12/26 03:47,
18.116.85.96:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/techref/os/win/api/win32/func/src/f54_1.htm"> LoadResource</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.