IClassAdmin::NewInterface

[This is preliminary documentation and subject to change.]

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

HRESULT NewInterface(
  REFIID iid,          //The IID to be added to the class store.
  LPOLESTR pszDesc,    //The description of the new interface.
  REFCLSID psclsid,    //The class identifier of the proxy/stub that
                       // can be used to marshal the interface.
  REFCLSID typelibid,  //The type library identifier that describes the interface.
);
 

Parameters

iid
[in] Provides the IID to be added to the class store as a new interface.
pszDesc
[in] Provides the description for the new interface.
psclsid
[in] Provides the class identifier of the proxy/stub.
typelibid
[in] Specifies the identifier of a type library that describes the interface.

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::NewClass, IClassAdmin::DeleteClass, IClassAdmin::DeleteInterface, IClassAdmin::NewPackage, IClassAdmin::DeletePackage, IClassAdmin::GetClassesEnum, IClassAdmin::GetPackagesEnum, IClassAdmin::GetClassDetails, IClassAdmin::GetIidDetails, IClassAdmin::GetPackageDetails