PA_PackageInfo

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_PackageInfo (packageNumber; pluginID; procPtr; data; resfile; name)

ParameterTypeDescription
packageNumbershortNumber of the plug-in
pluginIDshort *ID of the plug-in packageNumber
procPtrvoid **Pointer to the code of plug-in packageNumber
datavoid **Private plug-in data
resfileshort *Resource file reference of the plugin packageNumber
namechar *Name (string) of the plug-in packageNumber

Description

The routine PA_PackageInfo returns various information on the package whose internal range number is pluginNumber.

Pass the number of the plug-in in packageNumber. This number is in the range of 1 to the total number of opened plug-in.

You receive the ID of this plug-in in the short pointed to by plugID, the resource file reference number of this plug-in in resfile , a reference to its private data in data , and its name in name.

In procPtr, you receive a pointer to the code of the plug-in. This can be very useful in some cases since it lets you directly call some functions of another plug-in without using the EXECUTE routines (PA_ExecuteMethod, PA_ExecuteFunction, etc.).

Consult the FourDPack or Main function in 4DPluginAPI source code to see how you can call another plug-in. Be sure to send the pluginData as the plug-in will expect it and set the current resource file to plug-in resource file.

See Also

PA_FindPackage.

Error Handling

PA_GetLastError always returns eER_NoErr


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next