CreateTypeLib function
Provides access to a new object instance that supports the ICreateTypeLib interface.
Syntax
HRESULT CreateTypeLib( SYSKIND syskind, LPCOLESTR szFile, ICreateTypeLib **ppctlib );
Parameters
- syskind
-
The target operating system for which to create a type library.
- szFile
-
The name of the file to create.
- ppctlib
-
The ICreateTypeLib interface.
Return value
| Return code | Description |
|---|---|
|
Success. |
|
One or more of the arguments is not valid. |
|
Insufficient memory to complete the operation. |
|
Insufficient memory to complete the operation. |
|
The function could not create the file. |
This method can also return the FACILITY_STORAGE errors.
Remarks
CreateTypeLib sets its output parameter (ppctlib) to point to a newly created object that supports the ICreateTypeLib interface.
Requirements
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|
See also