FindResource function kernel32

HRSRC FindResource(
  1. HMODULE? hModule,
  2. PCWSTR lpName,
  3. PCWSTR lpType
)

Determines the location of a resource with the specified type and name in the specified module.

To learn more, see learn.microsoft.com/windows/win32/api/libloaderapi/nf-libloaderapi-findresourcew.

Implementation

@pragma('vm:prefer-inline')
HRSRC FindResource(HMODULE? hModule, PCWSTR lpName, PCWSTR lpType) =>
    HRSRC(_FindResource(hModule ?? nullptr, lpName, lpType));