IITDatabase::CreateObject method (infotech.h)

Creates an unnamed object you can reference in the future through the *pdwObjInstance parameter.

Syntax

HRESULT CreateObject(
  [in]  REFCLSID rclsid,
  [out] DWORD    *pdwObjInstance
);

Parameters

[in] rclsid

Class ID for object.

[out] pdwObjInstance

Identifier for object.

Return value

This method can return one of these values.

Return code Description
S_OK
The object was successfully created.
E_INVALIDARG
The argument was not valid.
E_NOTINIT
The database has not been opened.
E_OUTOFMEMORY
The memory required for internal structures could not be allocated.

Requirements

Requirement Value
Target Platform Windows
Header infotech.h

See also

IITDatabase