System.FindResource

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FindResource(ModuleHandle: HMODULE; ResourceName, ResourceType: PChar): TResourceHandle; stdcall;

C++

extern "C" NativeUInt __stdcall FindResource(NativeUInt ModuleHandle, WideChar * ResourceName, WideChar * ResourceType);

Properties

Type Visibility Source Unit Parent
function external public
WindowsAPIs.INC
System.hpp
System System

Description

Locates a resource in a module.

FindResource locates a resource by its type and name in a specific module. The return value is a handle to the resource's information block. To get a handle to the resource, call LoadResource with this handle.

See Also