ICreateTypeLib::SetVersion

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

Sets the major and minor version numbers of the type library.

Parameters

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

Return Value

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

Return value Meaning
S_OK Success.
TYPE_E_INVALIDSTATE The state of the type library is not valid for this operation.