Freigeben über


IPMPackageFile:IDispatch (Windows CE 5.0)

Send Feedback

This interface provides the ability to access and change a specified package file object. The package file object may be accessed as a collection by the IPMPackage::EnumFiles method.

The following code sample shows one technique for accessing a package file object from an Automation client.

For Each tPackageFile in tPackage.EnumFiles
  ' Access the package file object here.
Next tPackageFile

The following code sample shows a second technique for accessing a package file object from an Automation client.

Dim nIndex as Integer
For nIndex = 1 to tPackage.EnumFiles.Count
  Set tPackageFile = tPackage.EnumFiles.Item(nIndex)
  ' Access the package file object here.
Next

The following table shows this interface's methods.

Method Description
IPMPackageFile::Name Obtains the name of the package file object.
IPMPackageFile::Locale Obtains the locale and language identifier for the package file object.
IPMPackageFile::Flags Obtains the flags for the package file object.
IPMPackageFile::KeyName Obtains the registry subkey under which this package file is listed as a value field.
IPMPackageFile::MajorVersion Obtains the major version of the operating system (OS) object associated with the package file object.
IPMPackageFile::MinorVersion Obtains the minor version of the OS object associated with the package file object.
IPMPackageFile::TypeId Obtains the type GUID of the OS object associated with the package file object.
IPMPackageFile::Architecture Obtains the microprocessor architecture of the CPU object associated with the package file object.
IPMPackageFile::Type Obtains the microprocessor type of the CPU object associated with the package file.
IPMPackageFile::PageSize Obtains the page size of the CPU object associated with the package file object.
IPMPackageFile::Level Obtains the microprocessor level of the CPU object associated with the package file object.
IPMPackageFile::CpuNum Obtains the numerical value by which Platform Manager identifies the CPU.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Packagefile.h, Cemgr.idl.

See Also

Platform Manager API | IPMPackage::EnumFiles

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.