Requires FM 1.0 Beta 8.5 (Nov 2007) or newer
int getResSize(string restype, string resname)
Returns 0 if the resource can't be found or an error occurs, otherwise returns the size of the resource in bytes.
Gets the size of a file that has been embedded as a resource in the plugin DLL.
Some useful resource type values:
%fml OnFilterStart: { int ressize = 0; // Get the size of the built-in FM logo BMP // RT_BITMAP Bitmaps are resource type 2 ressize = getResSize(2, "LOGO2.BMP"); // Display the size of the resource file Info("Size of resource: %d bytes", ressize); return true; }