Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This interface provides the ability to access and change a specified package object. A package object is a file or collection of files associated with a CPU. For more information about packages, see Package Objects.
Package objects are stored in the registry under Platform Manager and within each platform. The package object is accessed by the IPMPlatformManager::EnumPackages and IPMPlatform::EnumPackages methods.
The following code sample shows one technique, using the IPMPlatformManager interface, for accessing a package object from an Automation client.
Dim tPackage as Object
For Each tPackage in tPlatman.EnumPackages
' Access the package object here.
Next tPackage
The following code sample shows a second technique, using the IPMPlatformManager interface, for accessing a package object from an Automation client.
Dim nIndex as Integer
For nIndex = 1 to tPlatman.EnumPackages.Count
Set tPackage = tPlatman.EnumPackages.Item(nIndex)
' Access the package object here.
Next
The following table shows this interface's methods.
Method | Description |
---|---|
IPMPackage::Id | Retrieves the GUID associated with the package object. |
IPMPackage::Name | Obtains the name of the package object. |
IPMPackage::EnumFiles | Enumerates the files associated with the package object. |
IPMPackage::GetFile | Obtains a package file. |
IPMPackage::AddFile | Adds a file to a package. |
IPMPackage::DeleteFile | Deletes a file object. |
IPMPackage::AddCPUFiles | Adds a list of known CPUs to a package. |
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Package.h, Cemgr.idl.
See Also
Platform Manager API | Package Objects | IPMPlatformManager | IPMPlatform::EnumPackages | IPMPlatformManager::EnumPackages
Send Feedback on this topic to the authors