ICreateTypeInfo::SetVersion

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

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

Parameters

wMajorVerNum
Major version number for the type.
wMinorVerNum
Minor version number for the type.

Return Value

The return value of the returned HRESULT is one of the following:

Return value Meaning
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.