formZ SDK | 5.0 API Reference | System | Runtime Library (FZRT) | Basic

fzrt_rlib_get_resource

Description

Loads a resource from a runtime file. This will load a resource from the runtime module. To load native ICON resources use FZRT_RLIB_CICON as the type.

Plugin Prototype

fzrt_ptr fzrt_rlib_get_resource(

short

rlib_indx,

fzrt_ostype

type,

short

resID )

Parameters

rlib_indx [Input]

reference to the loaded module

type [Input]

Resource type, must be 4-char constant or number

resID [Input]

ID of the resource to load

Returns

Memory pointer to resource. The resource pointer will be in the native format, so that Macintosh will return a macintosh Handle, and Windows will return a HGLOBAL. or fzrt_icon_ptr for ICON, FZRT_RLIB_CICON resources NULL if resource can't be found.

Availability

5.0.0.0

Function Set

fz_fzrt_base_fset


Defined in

fzrt_api.h