GETRESOURCELENGTH

Top  Previous  Next

Syntax

INT = GETRESOURCELENGTH(identifier ,type)

Description

Returns the length of the resource that is stored in the executable

Parameters

identifier - Resource name or numeric identifier.

type - Type name or numeric identifier.

Return value

The length of the resource in bytes

Remarks

See Also: LOADRESOURCE

The length of standard windows resource types can be found by specifying one of the following for the type parameter:

@RESCURSOR

@RESBITMAP

@RESICON

@RESMENU

@RESDIALOG

@RESSTRING

@RESACCEL

@RESDATA

@RESMESSAGETABLE

@RESGROUPCURSOR

@RESGROUPICON

@RESVERSION

Example usage

PRINT GETRESOURCELENGTH("mydata",@RESDATA)