The CreateTypeLib2 API creates a type library in the current file format.
The file and in-memory format for this current version of Automation makes use of memory-mapped files for 32-bit (and files for the Apple Macintosh). The existing CreateTypeLib() API is still available for creating a type library in the older format.
HRESULT CreateTypeLib2(
SYSKIND syskind,
LPOLESTR szFile,
ICreateTypeLib2** ppctlib
);