Requires FM 1.0 Beta 8.5 (Nov 2007) or newer
char* getResAddress(string restype, string resname)
Returns 0 / false if the resource can't be found or an error occurs, otherwise returns a pointer to the first byte of the resource.
Gets a pointer to data that has been embedded as a resource in the plugin DLL. You can get the size of the data buffer using getResSize.
Some useful resource type values:
%fml OnFilterStart: { int ressize = 0; void* respointer = NULL; // Get the size of the manifest resource // Type 24 is RT_MANIFEST // 2 is the index of the manifest file ressize = getResSize(24, 2); // Get a pointer to the manifest data respointer = getResAddress(24, 2); // Display the size of the resource file Info("Size of resource: %d bytes", ressize); // Display the manifest string itself Info(respointer); return true; }