网站首页  词典首页

请输入您要查询的函数:

 

术语 getcommconfig
释义 GetCommConfig
语法:
C++
BOOL WINAPI GetCommConfig(
__in HANDLE hCommDev,
__out LPCOMMCONFIG lpCC,
__inout LPDWORD lpdwSize
);
GetCommConfig功能
检索通信设备的当前配置。
要检索从设备管理器的默认配置设置,使用GetDefaultCommConfig功能。
参数
hCommDev [in]
句柄到设备开放通讯。 CreateFile函数返回此句柄。
的LPCC [out]
一个缓冲区接收COMMCONFIG结构的指针。
lpdwSize [ in , out ]
大小,指出以字节为缓冲区的的LPCC。当函数返回时,变量包含复制的功能,如果成功,或所需的字节数如果缓冲区太小的字节数。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,使用GetLastError函数。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
COMMCONFIG
通讯功能
通信资源
CreateFile
GetDefaultCommConfig
SetCommConfig
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==GetCommConfig Function
Retrieves the current configuration of a communications device.
To retrieve the default configuration settings from the device manager, use the GetDefaultCommConfig function.
Syntax
C++
BOOL WINAPI GetCommConfig(
__in HANDLE hCommDev,
__out LPCOMMCONFIG lpCC,
__inout LPDWORD lpdwSize
);
Parameters
hCommDev [in]
A handle to the open communications device. The CreateFile function returns this handle.
lpCC [out]
A pointer to a buffer that receives a COMMCONFIG structure.
lpdwSize [in, out]
The size, in bytes, of the buffer pointed to by lpCC. When the function returns, the variable contains the number of bytes copied if the function succeeds, or the number of bytes required if the buffer was too small.
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, use the GetLastError function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
COMMCONFIG
Communications Functions
Communications Resources
CreateFile
GetDefaultCommConfig
SetCommConfig
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa363256(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:18:35