术语 | escapecommfunction |
释义 | EscapeCommFunction 语法: C++ BOOL WINAPI EscapeCommFunction( __in HANDLE hFile, __in DWORD dwFunc ); EscapeCommFunction函数 指示指定的通讯设备进行扩展的功能。 参数 hFile [in] 一个句柄,通信设备。 CreateFile函数返回此句柄。 dwFunc [in] 延长的功能执行。此参数可以是下列值之一。 ValueMeaning CLRBREAK 9Restores字符传输和地方在nonbreak状态传输线。该CLRBREAK扩展函数的代码是相同的ClearCommBreak功能。 CLRDTR 6Clears的DTR(数据终端就绪)信号。 CLRRTS 4Clears废物转运站(要求对发送)信号。 SETBREAK 8Suspends传输和地方特色,在休息状态,直到ClearCommBreak功能称为传输线(或EscapeCommFunction是与CLRBREAK扩展功能代码调用)。该SETBREAK扩展函数的代码是相同的SetCommBreak功能。请注意,此扩展功能并没有刷新的数据并没有被传输。 SETDTR 5Sends的DTR(数据终端就绪)信号。 SETRTS 3Sends废物转运站(要求对发送)信号。 SETXOFF 1Causes传输作为一个XOFF字符,如果已收到。 SETXON 2Causes传输作为如果XON字符已经收到。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinbase.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 ClearCommBreak 通讯功能 通信资源 CreateFile SetCommBreak 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月30日 ==英文原文==EscapeCommFunction Function Directs the specified communications device to perform an extended function. Syntax C++ BOOL WINAPI EscapeCommFunction( __in HANDLE hFile, __in DWORD dwFunc ); Parameters hFile [in] A handle to the communications device. The CreateFile function returns this handle. dwFunc [in] The extended function to be performed. This parameter can be one of the following values. ValueMeaning CLRBREAK 9Restores character transmission and places the transmission line in a nonbreak state. The CLRBREAK extended function code is identical to the ClearCommBreak function. CLRDTR 6Clears the DTR (data-terminal-ready) signal. CLRRTS 4Clears the RTS (request-to-send) signal. SETBREAK 8Suspends character transmission and places the transmission line in a break state until the ClearCommBreak function is called (or EscapeCommFunction is called with the CLRBREAK extended function code). The SETBREAK extended function code is identical to the SetCommBreak function. Note that this extended function does not flush data that has not been transmitted. SETDTR 5Sends the DTR (data-terminal-ready) signal. SETRTS 3Sends the RTS (request-to-send) signal. SETXOFF 1Causes transmission to act as if an XOFF character has been received. SETXON 2Causes transmission to act as if an XON character has been received. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError . Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinbase.h (include Windows.h) LibraryKernel32.lib DLLKernel32.dll See Also ClearCommBreak Communications Functions Communications Resources CreateFile SetCommBreak Send comments about this topic to Microsoft Build date: 7/30/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/aa363254(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。