网站首页  计算机词典

请输入您要查询的字词:

 

字词 getcommproperties
释义 GetCommProperties
语法:
C++
BOOL WINAPI GetCommProperties(
__in HANDLE hFile,
__out LPCOMMPROP lpCommProp
);
GetCommProperties功能
获取信息的指定通信设备的通信性能。
参数
hFile [in]
一个句柄,通信设备。 CreateFile函数返回此句柄。
lpCommProp [out]
如果一COMMPROP结构,使通信性能的信息返回的指针。此信息可用于对SetCommState,SetCommTimeouts,或SetupComm函数后续调用配置通讯设备。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
该GetCommProperties函数返回的信息,从有关的配置是由驱动程序支持的设备驱动程序的设置。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
COMMPROP
通讯功能
通信资源
CreateFile
SetCommState
SetCommTimeouts
SetupComm
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==GetCommProperties Function
Retrieves information about the communications properties for a specified communications device.
Syntax
C++
BOOL WINAPI GetCommProperties(
__in HANDLE hFile,
__out LPCOMMPROP lpCommProp
);
Parameters
hFile [in]
A handle to the communications device. The CreateFile function returns this handle.
lpCommProp [out]
A pointer to a COMMPROP structure in which the communications properties information is returned. This information can be used in subsequent calls to the SetCommState , SetCommTimeouts , or SetupComm function to configure the communications device.
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 GetCommProperties function returns information from a device driver about the configuration settings that are supported by the driver.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
COMMPROP
Communications Functions
Communications Resources
CreateFile
SetCommState
SetCommTimeouts
SetupComm
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa363259(VS.85).aspx\n
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 23:29:50