GetExtension

void GetExtension(long index, char *extension, long maxExtensionLengthInBytes, TSERROR *errorCode, char *errorMsg, long maxErrorMsgLengthInBytes)

Purpose

Returns the file extension the translator supports. Implement the callback to copy the extension string to the extension parameter without the period character, for example, "txt" not ".txt" .

Parameters

Name Type Description
index long The zero-based index of the translator in the DLL that must process the callback.
extension string The file extension for the files the translator supports. The callback must copy a string value to the existing buffer, including the NUL terminating character. Use the maxExtensionLengthInBytes parameter to determine the size of the buffer.
maxExtensionLengthInBytes long The maximum number of bytes you can copy to the extension parameter.
errorCode TSError Returns the error code when an error occurs in the callback.
errorMsg string The error message when an error occurs in the callback. The callback must copy a string value to the existing buffer, including the NUL terminating character. Use the maxErrorMsgLengthInBytes parameter to determine the size of the buffer.
maxErrorMsgLengthInBytes long The maximum number of bytes the DLL can copy to the errorMsg parameter.