Overview
Group
Quick Info

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 or FindResourceEx function.

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

FindResource
, FindResourceEx, LoadResource, LockResource

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database