SizeofResource  50C.C0 

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 FindResource4M9XMZG or FindResourceExZUCO4N 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 GetLastError11C2VS7.

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