网站首页  词典首页

请输入您要查询的函数:

 

术语 transmitcommchar
释义 TransmitCommChar
语法:
C++
BOOL WINAPI TransmitCommChar(
__in HANDLE hFile,
__in char cChar
);
TransmitCommChar功能
发送一个指定的字符之前,在指定的通信设备的输出缓冲区任何未决的数据。
参数
hFile [in]
一个句柄,通信设备。 CreateFile函数返回此句柄。
CChar的 [in]
字符进行传输。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
该TransmitCommChar函数可用于发送一个中断字符(如CTRL + C键)到主机系统。
如果该设备不能传输,TransmitCommChar不能称为反复。一旦TransmitCommChar放置在输出缓冲区一个字符,字符必须在传输功能可以再次调用。如果前面的字尚未发送,TransmitCommChar返回一个错误。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
通讯功能
通信资源
CreateFile
WaitCommEvent
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==TransmitCommChar Function
Transmits a specified character ahead of any pending data in the output buffer of the specified communications device.
Syntax
C++
BOOL WINAPI TransmitCommChar(
__in HANDLE hFile,
__in char cChar
);
Parameters
hFile [in]
A handle to the communications device. The CreateFile function returns this handle.
cChar [in]
The character to be transmitted.
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 .
Remarks
The TransmitCommChar function is useful for sending an interrupt character (such as a CTRL+C) to a host system.
If the device is not transmitting, TransmitCommChar cannot be called repeatedly. Once TransmitCommChar places a character in the output buffer, the character must be transmitted before the function can be called again. If the previous character has not yet been sent, TransmitCommChar returns an error.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Communications Functions
Communications Resources
CreateFile
WaitCommEvent
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa363473(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:15:54