platformData

Syntax

int platformData

Description

Contains a value that is passed from the host application to the plugin. Usually it is the window handle of the host application. In most cases this value is the same for a certain application running under a certain operating system (but not e.g. in Plugin Commander Pro). So you can use it to detect under which application and operating system your plugin is currently running. This is often more reliable than using hostSig.

Example

%ffp

ForEveryTile:{

	switch (platformData){
		case 0x12ef68:
			strcpy (str0, "PhotoImpact 7 under Windows 2000");
			break;
		case 0x12ef3c:
			strcpy (str0, "PhotoImpact 8 under Windows 2000");
			break;
		case 0x97ac74:
			strcpy (str0, "Paint Shop Pro 7 under Windows 2000");
			break;
		case 0x12e554:
			strcpy (str0, "Paint Shop Pro 8 under Windows 2000");
			break;
		case 0x4b104e8:
			strcpy (str0, "Photoshop 7 under Windows 2000");
			break;
		default:
			strcpy (str0, "Something Unknown");
			break;
	}

	Info ("This plugin runs in %s", str0 );

	return true;	
}

Also see

hostSig