IClassAdmin::NewPackage

[This is preliminary documentation and subject to change.]

Stores a new application package in the class store. This information combines information stored under the HKEY_CLSSES_ROOT (HKCR\CLSID) Registry key, as well as the HKCR\AppID Registry key.

HRESULT NewPackage(
  PACKAGEDETAIL* pPackageDetail  //A pointer to the package details.
);
 

Parameters

pPackageDetail
[in] Specifies package details, such as execution context, client architecture, locale, and version.

Return Values

S_OK
The method returned successfully.
E_INVALIDARG
The parameter is incorrect.
E_ALREADY_EXISTS
The class definition already exists in the Directory.

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::GetPackagesEnum, IClassAdmin::GetClassDetails, IClassAdmin::GetIidDetails, IClassAdmin::GetPackageDetails