HGLOBAL hGlobal = GlobalAlloc(GMEM_MOVEABLE | GMEM_ZEROINIT, 16); unsigned char *px = (unsigned char*) GlobalLock(hGlobal); //a 3 byte UTF-8 character: px[0] = 0xe0; px[1] = 0xa0; px[2] = 0xb0; px[3] = 0x00; OpenClipboard(hWnd); EmptyClipboard(); GlobalUnlock(hGlobal); SetClipboardData(CF_UNICODETEXT, px); CloseClipboard();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)