IClassAdmin::NewClass

[This is preliminary documentation and subject to change.]

Stores a new class definition in class store. This information corresponds to information stored under the HKEY_CLASSES_ROOT (HKCR\CLSID) Registry key.

HRESULT NewClass(
  CLASSDETAIL* pClassDetail  //A pointer to the package details for the new class.
);
 

Parameters

pClassDetail
[in] Provides details such as file extension, MIME type, and ProgId for the new class.

Return Values

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

QuickInfo

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

See Also

IClassAdmin::DeleteClass, IClassAdmin::NewInterface, IClassAdmin::DeleteInterface, IClassAdmin::NewPackage, IClassAdmin::DeletePackage, IClassAdmin::GetClassesEnum, IClassAdmin::GetPackagesEnum, IClassAdmin::GetClassDetails, IClassAdmin::GetIidDetails, IClassAdmin::GetPackageDetails