ICreateTypeInfo::SetVersion

This method sets version numbers for the type description.

At a Glance

Header file: Oaidl.h
Windows CE versions: 2.0 and later

Syntax

HRESULT SetVersion( unsigned short wMajorVerNum,
unsigned short wMinorVerNum);

Parameters

wMajorVerNum

Major version number for the type.

wMinorVerNum

Minor version number for the type.

Return Values

One of the values described in the following table is returned.

Value 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.