INFO: SizeofResource() Rounds to Alignment Size (57808)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0
This article was previously published under Q57808 SUMMARY
SizeofResource() returns the resource size rounded up to the alignment
size. Therefore, if you have your own resource types, you cannot use
SizeofResource() to get the actual resource byte count.
It has been suggested that this be changed to reflect the actual
number of bytes in the resource so that applications can use
SizeofResource() to determine the size of each resource. This
suggestion is under review and will be considered for inclusion in a
future release of the Windows Software Development Kit (SDK).
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbinfo kbResource KB57808 |
---|
|