HRESULT CreateTypeLib(
SYSKIND syskind,
OLECHAR FAR* szFile,
ICreateTypeLib FAR* FAR* ppctlib
);
Provides access to a new object instance that supports the ICreateTypeLib interface.
The return value of the returned HRESULT is one of the following:
| Return value | Meaning |
|---|---|
| S_OK | Success. |
| STG_E_INSUFFICIENTMEMORY | Out of memory. |
| E_OUTOFMEMORY | Out of memory. |
| E_INVALIDARG | One or more of the arguments is invalid. |
| TYPE_E_IOERROR | The function could not create the file. |
| Other return codes | All FACILITY_STORAGE errors. |
CreateTypeLib sets its output parameter (ppctlib) to point to a newly created object that supports the ICreateTypeLib interface.