Interface Reference

Litgen.dll supports the following interfaces.

Interface Description
ILITCallback Outgoing interface that receives text messages during content preparation.  ILITCallback is the only interface that the Litgen.dll client is expected to implement.
ILITTag This interface accepts and gathers tag names and attributes, so as to supply an atomic tag to ILITParserHost.
ILITHost This interface returns the manifest ID, filename, or mime type of the item being parsed.  This interface is common to the following three interfaces.
ILITParserHost This interface accepts parsed content files and metadata as a stream of Tag, Text, and EndChildren notifications.
ILITCSSHost This interface receives cascading style sheet (CSS) data.
ILITImageHost This interface receives raw image file data.
ILITWriter This interface writes .lit files from source files.

Notes:

Return Values

Each method returns one or more of the following error codes. The descriptions are included here, and the specific values returned are included with each method.

Note: In cases where the problem isn’t obvious from the error code, a supplementary message is sent to ILITCallback.

Return code Description
S_OK The method succeeded.
S_FALSE The method succeeded. All content has been written, no more hosts of this type are available, so call Finish().
For more information, see Understanding the Litgen.dll Interface Interactions.
E_INVALIDARG The method failed due to an invalid argument. In some instances, you may receive more detail from ILITCallback::Message.
E_OUTOFMEMORY The method failed due to memory exhaustion.
E_UNEXPECTED The method failed because the sequence described in Understanding the Litgen.dll Interface Interactions was not followed.
CO_E_NOTINITIALIZED The method failed because CoInitialize() or CoInitializeEx() has not been called.
E_FAIL The method failed for some other reason; details about the failure will have been supplied through ILITCallback::Message().

© 2000 Microsoft Corporation. All rights reserved. Terms of use.