Export (0) Print
Expand All

CreateTypeLib Function

Provides access to a new object instance that supports the ICreateTypeLibinterface.

 [C++]
WINOLEAUTAPI CreateTypeLib(
  SYSKIND  syskind,
  const OLECHAR *szFile,
  ICreateTypeLib **ppctlib
);

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.

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.

Show:
© 2014 Microsoft