摘要:
publicclassWinMessageHelper{privatestructCOPYDATASTRUCT{publicIntPtrdwData;publicintcbData;[MarshalAs(UnmanagedType.LPStr)]publicstringlpData;}//使用COPYDATA进行跨进程通信publicconstintWM_COPYDATA=0x004A;[DllImport("User32.dll",EntryPoint="SendMessage")]privatestaticexternintSendMessage(i 阅读全文