CreateTypeLib API

HRESULT CreateTypeLib(
  SYSKIND  syskind,                  
  OLECHAR FAR*  szFile,              
  ICreateTypeLib FAR* FAR*  ppctlib  
);
 

Provides access to a new object instance that supports the ICreateTypeLib interface.

Parameters

syskind
The target operating system for which to create a type library.
szFile
The name of the file to create.
ppctlib
Pointer to an instance supporting the ICreateTypeLib interface.

Return Value

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.

Comments

CreateTypeLib sets its output parameter (ppctlib) to point to a newly created object that supports the ICreateTypeLib interface.