The WinCvtConvertToNative function converts a stream of RTF into an arbitary, specified, format.
WINCVT_STATUS
WinCvtConvertToNative(
LPCSTR szFileName, // The path of the file to create in native format.
LPCSTR szConverter,// The path of the converter to use (optional.)
LPCSTR szClass, // The class of the conversion to use.
HANDLE hInput, // An open stream of RTF to convert from.
_WinCvtProgressCallback ProgressRoutine // Routine for progress notifications (optional.)
);
If the function succeeds, the return value is WINCVT_SUCCESS. If the function fails, the return value is the error code describing the failure. This code can be turned into a human readable string using the WinCvtGetErrorString.
The WinCvtConvertToNative function converts a stream of RTF into an arbitary, specified, format. For simplified conversion, use the WinCvtConvertFile function. To obtain RTF data prior to calling WinCvtConvertToNative, use the WinCvtConvertToRtf function.
WinCvt: Requires 0.1.0.
Header: Declared in WinCvt.h.
Import Library: Use WinCvt.lib.
WinCvtConvertFile, WinCvtConvertToRtf, WinCvtGetClassFileName, WinCvtGetClassName, WinCvtGetErrorString, WinCvtProgressCallback.