IClassAdmin::GetPackagesEnum

[This is preliminary documentation and subject to change.]

Returns an enumerator for the packages defined in the class store.

HRESULT GetPackagesEnum(
  REFCLSID guidClsid,          //Specifies the applications that implement
                               // the CLSID.
  LPOLESTR pszVendor,          //Specifies the vendor for the package.
  CSPLATFORM Platform,         //The platform for the package.
  DWORD dwContext,             //The execution context for the package.
  LCID Locale,                 //The locale for the package.
  IEnumPackage** pPackageList  //Pointer to the location in which to return an IEnumPackage interface.
);
 

Parameters

guidClsid
[in] Provides the class identifier to use to filter the packages being returned. If CLSID_NULL, no filtering by the CLSID is applied.
pszVendor
[in, unique] If non-NULL, filters the packages by vendor.
Platform
[in] Specifies the platform to filter by.
dwContext
[in] Specifies the execution context to filter by.
Locale
[in] Specifies the locale to filter by, if any.
ppIEnumPackage
[out] Specifies a pointer to the location in which to return an IEnumPackage interface. The enumerator will only return packages that comply with the filter setting, as indicated by the other parameters.

Return Values

S_OK
The method returned successfully.
E_INVALIDARG
The parameter is incorrect.
E_FAIL
The method did not return successfully.
E_ACCESSDENIED
No permissions.
E_OUTOFMEMORY
Insufficient memory to create and return an enumerator object.

QuickInfo

  Windows NT: Use version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in objidl.h.

See Also

IClassAdmin::NewClass, IClassAdmin::DeleteClass, IClassAdmin::NewInterface, IClassAdmin::DeleteInterface, IClassAdmin::DeletePackage, IClassAdmin::GetClassesEnum, IClassAdmin::GetClassDetails, IClassAdmin::GetIidDetails, IClassAdmin::GetPackageDetails