ICreateTypeInfo::SetVersion method (oaidl.h)

Sets the major and minor version number of the type information.

Syntax

HRESULT SetVersion(
  [in] WORD wMajorVerNum,
  [in] WORD wMinorVerNum
);

Parameters

[in] wMajorVerNum

The major version number.

[in] wMinorVerNum

The minor version number.

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
E_ACCESSDENIED
Cannot write to the destination.
TYPE_E_INVALIDSTATE
The state of the type library is not valid for this operation.

Requirements

Requirement Value
Target Platform Windows
Header oaidl.h

See also

ICreateTypeInfo