IID_IMoaAppInfo
Pointer type: PIMoaAppInfo
Inheritance: IMoaUnknown MoaError GetInfo(MoaLong desiredInfo, PMoaChar pInfoBuffer, MoaLong infoBufferLen )
desiredInfo
pInfoBuffer
infoBufferLen
Constant | Description |
---|---|
kMoaAppInfo_SerialNumber | Application serial number as a string. Format of a serial number is unspecified, except that it is guaranteed to be less than 256 bytes long. An empty string may be returned. |
kMoaAppInfo_RunMode | RunMode of the host environment as a string. Defined modes are: "Author" authoring application "Projector" projector-only application "Plugin" browser plug-in or ActiveX control "Exporter" special exporter application that supports xtras These values are not localized. |
kMoaAppInfo_UserName | the user name entered at registration. |
kMoaAppInfo_OrganizationName | the company/organization name entered at registration. |
kMoaAppInfo_AppFileSpec | a MoaSystemFileSpec to the application/projector executable. This is a MoaSystemFileSpec, not a character string, thus on the Macintosh you will receive an FSSpec. |
kMoaAppInfo_ProductName | The name of the product, minus version information. This is not localized. Currently defined are "Director", "SoundEdit", "FreeHand" |
kMoaAppInfo_ProductVersion | Version of the product, generally a character string representing a number, though it may include letters as well, e.g., "5.0","5.0a", "5.5" |
kMoaAppInfo_UILanguage | The language of the authoring application, (if known), otherwise the language of the currently running OS. |
kMoaAppInfo_OSLanguage | The language of the currently running OS |
kMoaAppInfo_ConfigFolder | a MoaSystemFileSpec to the application's user-writable configuration folder (Director MX 2004) |
Note that not all apps will support all these; you must be prepared for an app to return kMoaErr_NoSuchKey for any or all of these. Additional values may be added in the future.
The parameters pInfoBuffer and infoBufferLen provide the application with a buffer to write the corresponding information to.