A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-sizeofresource below:

SizeofResource function (libloaderapi.h) - Win32 apps

SizeofResource function (libloaderapi.h)

In this article

Retrieves the size, in bytes, of the specified resource.

Syntax
DWORD SizeofResource(
  [in, optional] HMODULE hModule,
  [in]           HRSRC   hResInfo
);
Parameters

[in, optional] hModule

Type: HMODULE

A handle to the module whose executable file contains the resource. Default is the module used to create the current process.

[in] hResInfo

Type: HRSRC

A handle to the resource. This handle must be created by using the FindResource or FindResourceEx function.

Return value

Type: DWORD

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.

Requirements Requirement Value Minimum supported client Windows 2000 Professional [desktop apps only] Minimum supported server Windows 2000 Server [desktop apps only] Target Platform Windows Header libloaderapi.h (include Windows.h) Library Kernel32.lib DLL Kernel32.dll See also

Conceptual

FindResource

FindResourceEx

Reference

Resources

Additional resources

In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4