Get the text data copied onto the clipboard.
BOOL GetClipboardText( string & strData )
Returns TRUE and a string containing text copied onto the clipboard
on success or returns FALSE and an empty string on failure or if
the Clipboard is empty.
EX1
int GetClipboardText_ex1() { string strClipboardText; BOOL bSuccess; bSuccess = GetClipboardText( strClipboardText ); if( bSuccess ) out_str( strClipboardText ); else out_str( "Error reading Clipboard or Clipboard is empty." ); return 0; }
GetClipboardData
origin.h