|
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
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|