CTerminalEmulator::Write Method  
 
BOOL Write(
  LPBYTE lpBuffer,  
  INT cbBuffer  
);
BOOL Write(
  LPCTSTR lpszBuffer,  
  INT cbBuffer  
);
BOOL Write(
  TCHAR nChar,  
  INT nCount  
);

The Write method writes the contents of the specified buffer to the virtual display.

Parameters

lpBuffer
Pointer to the buffer which contains the data to be written to the virtual display. This may also specify a string which contains the characters to be written to the display.
cbBuffer
Number of bytes to write to the display. If the buffer is a string, this value may be -1, in which case all characters up to the terminating null character will be written to the display.

Return Value

If the method succeeds, the return value is non-zero. If the method fails, it returns zero.

Remarks

This method writes the data at the current cursor location. Control characters are recognized by this method and processed accordingly. If ANSI emulation is enabled, embedded escape sequences will also be parsed and processed.

Requirements

Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csnvtv10.lib

See Also

GetText, Refresh, UpdateCaret, Update