SizeofResource
The SizeofResource
function returns the size, in bytes, of the specified resource.
DWORD SizeofResource(
HMODULE hModule, |
// resource-module
handle |
HRSRC hResInfo |
// resource handle |
); |
|
Parameters
hModule
Identifies
the module whose executable file contains the resource.
hResInfo
Identifies
the resource. This handle must be created by using the FindResource
Return Values
If the
function succeeds, the return value is the number of bytes in the resource.
If the
function fails, the return value is zero. To get extended error information,
call GetLastError
Remarks
The value
returned may be larger than the actual resource because of alignment. An
application should not rely upon this value for the exact size of a resource.
See Also