Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>loadresource()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LoadResource()
Load a resource into global memory
------------------------------------------------------------------------------

Syntax
LoadResource( <hInst>, <hResource> )   -->   hGlbRsrc

Arguments
<hInst> is the handle of the instance of the application (as
returned by the _GetInstance() function), or a handle of a DLL
(as returned by the LoadLibrary() function).  The default is the
current application.

<hResource> is the handle of a resource previously returned by
FindResource().

Returns
If successful, the handle to the global memory containing the
resource is returned as a non-zero number.  Otherwise, zero
(0) is returned.

Description
This function can be used to fetch a resource from a resource
file (although you are unlikely ever to need to do this).

When the application has finished with the resource, it should
call the FreeResource() function.

Example
hResource = FindResource( hInst, "Accel", RT_ACCELERATOR )
hGlbRsrc = LoadResource( hInst, hResource )
// . . .
FreeResource( hGlbRsrc )


See Also: FindResource() FreeResource()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson