PurgeComm()是什么函数?(20分)

  • 主题发起人 主题发起人 jmlwz
  • 开始时间 开始时间
J

jmlwz

Unregistered / Unconfirmed
GUEST, unregistred user!
如上:)
 
The PurgeComm function can discard all characters from the output or input buffer of a specified communications resource. It can also terminate pending read or write operations on the resource. <br><br>BOOL PurgeComm(<br><br>&nbsp; &nbsp; HANDLE hFile, // handle of communications resource <br>&nbsp; &nbsp; DWORD dwFlags // action to perform<br>&nbsp; &nbsp;);
 
&nbsp;Purgecomm(hComm,PURGE_rXCLEAR or PURGE_RXABORT or PURGE_TXCLEAR OR PURGE_RXCLEAR);<br>清空端口数据!
 
接受答案了.
 
后退
顶部