#include “BlackIceDEVMODE.h”
BOOL SetTextOutputEncoding(BlackIceDEVMODE* pBlackIceDevMode, DWORD dwValue)
Description
Sets the encoding for the Printer Driver’s Text Output.
Parameters
BlackIceDEVMODE* pBlackIceDevMode - pointer to the BlackIceDEVMODE structure
DWORD dwValue - The new encoding. One of the values of the TEXTOUTPUT_CHARSET enum:
TEXTOUTPUT_CHARSET_ANSI = 0, // Default ANSI codepage (default)
TEXTOUTPUT_CHARSET_UTF8 = 1, // Unicode, UTF-8
TEXTOUTPUT_CHARSET_UTF16LE = 2, // Unicode, UTF-16 Little Endian
TEXTOUTPUT_CHARSET_UTF16BE = 3 // Unicode, UTF-16 Big Endian
Return value
TRUE on success, otherwise FALSE
Programming Notes
Unicode text output files will start with a byte-order mark.
Code Example
None