Returns the size, in bytes, of the specified resource.
Syntax
DWORD SizeofResource(
HMODULE hModule,
HRSRC hResInfo
);
Parameters
- hModule
-
[in] Handle to the module whose executable file contains the resource.
- hResInfo
-
[in] Handle to the resource. This handle must be created by using the FindResource or FindResourceEx function.
Return Value
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.
Example
For an example, see Updating Resources.
Function Information
| Minimum DLL Version | kernel32.dll |
|---|
| Header | Declared in Winbase.h, include Windows.h |
|---|
| Import library | Kernel32.lib |
|---|
| Minimum operating systems |
Windows 95, Windows NT 3.1 |
|---|
| Unicode | Implemented as
Unicode version. |
|---|
See Also