The SizeofResource function returns the size, in bytes, of the specified resource.
DWORD SizeofResource(
HMODULE hModule, |
// resource-module handle |
HRSRC hResInfo |
// resource handle |
); |
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.
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.