HRESULT SetVersion(
unsigned short wMajorVerNum,
unsigned short wMinorVerNum
);
Sets the major and minor version number of the type information.
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. |