if (OpenClipboard(NULL)) {
HGLOBAL hgClip;
EmptyClipboard();
QByteArray byay = FValue.toLocal8Bit(); //转latin编码
char *bochsrc_line = byay.data();
hgClip = GlobalAlloc(GMEM_DDESHARE, (strlen(bochsrc_line) + 1));
strcpy((char *)GlobalLock(hgClip), bochsrc_line);
GlobalUnlock(hgClip);
SetClipboardData(CF_TEXT, hgClip);
CloseClipboard();
memset(wData, 0, MaxNetLength);
wData[0]=0x04;
wData[1]=0x84;
wData[2] = 0x01;
wData[4] = 0x19;
LOG(FValue);
mResult = WriteFile(m_KbHand, wData, MaxNetLength, &DwSize, 0);
}