Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function creates a type library in the file/in-memory format that makes use of memory-mapped files for 32-bit platforms. Its output parameter ( ppctlib) points to a newly created object that supports the ICreateTypeLib2interface.

Syntax

HRESULT CreateTypeLib2( 
  SYSKIND 
syskind,
  LPOLESTR 
szFile,
  ICreateTypeLib2** 
ppctlib 
); 

Parameters

syskind

[in] The target OS to create a type library for.

szFile

[in] The name of the file to create.

ppctlib

[out] Pointer to an instance supporting the ICreateTypeLibinterface.

Remarks

The operating system does not implement the ICreateTypeLib2::SaveAllChangesmethod.

Passing invalid (and under some circumstances NULL) pointers to this function causes an unexpected termination of the application.

Requirements

Header oleauto.h
Library oleaut32.lib
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also