Han-Record is Valid Plugin

From Vectorlab
Jump to: navigation, search


Checks if a record is valid plug-in format, excluding broken plugins not in workspace. By Orso B. Schmid


{ Orso *********************************************** }
{ is plug-in record. This excludes broken plug-ins which are not in workspace }
FUNCTION H_RecIsValidPlugin(recN: STRING): BOOLEAN;
	VAR
		recH : HANDLE;
		temp_s : STRING;
	BEGIN
		H_RecIsValidPlugin := FALSE;
		recH := GetObject(recN);
		IF recH <> NIL THEN
			H_RecIsValidPlugin := (GetLocalizedPluginName(recN, temp_s) = TRUE) & (IsPluginFormat(recH) = TRUE);
	END;