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>sizeofresource()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SizeofResource()
Return the size of a resource
------------------------------------------------------------------------------

Syntax
SizeofResource( <hInst>, <hResource> )   -->   nLen

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 length of the resource is returned as a non-
zero number.  Otherwise, zero (0) is returned.

Description
This function can be used to get the size of a resource in a
resource file (although you are unlikely ever to need to do
this).  The size may have been rounded up, so the exact value
should not be relied on.

Example
hResource = FindResource( hInst, "Accel", RT_ACCELERATOR )
? SizeofResource( hInst, hResource )


See Also: FindResource() FreeResource() LoadResource()

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