网站首页  词典首页

请输入您要查询的函数:

 

术语 getdefaultcommconfig
释义 GetDefaultCommConfig
语法:
C++
BOOL WINAPI GetDefaultCommConfig(
__in LPCTSTR lpszName,
__out LPCOMMCONFIG lpCC,
__inout LPDWORD lpdwSize
);
GetDefaultCommConfig功能
检索用于指定的设备通信的默认配置。
参数
lpszName [in]
该设备的名称。例如,通过COM9的COM1端口的串行端口,并通过LPT9 LPT1的并行端口。
的LPCC [out]
一个缓冲区接收COMMCONFIG结构的指针。
lpdwSize [ in , out ]
一个变量,它指定的缓冲区大小的指针指向的LPCC,以字节为单位。返回时,该变量包含复制的功能,如果成功,或所需的字节数如果缓冲区太小的字节数。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,使用GetLastError函数。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesGetDefaultCommConfigW(Unicode)和GetDefaultCommConfigA(ANSI)的
参见
COMMCONFIG
通讯功能
通信资源
SetDefaultCommConfig
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==GetDefaultCommConfig Function
Retrieves the default configuration for the specified communications device.
Syntax
C++
BOOL WINAPI GetDefaultCommConfig(
__in LPCTSTR lpszName,
__out LPCOMMCONFIG lpCC,
__inout LPDWORD lpdwSize
);
Parameters
lpszName [in]
The name of the device. For example, COM1 through COM9 are serial ports and LPT1 through LPT9 are parallel ports.
lpCC [out]
A pointer to a buffer that receives a COMMCONFIG structure.
lpdwSize [in, out]
A pointer to a variable that specifies the size of the buffer pointed to by lpCC, in bytes. Upon return, 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
Unicode and ANSI namesGetDefaultCommConfigW (Unicode) and GetDefaultCommConfigA (ANSI)
See Also
COMMCONFIG
Communications Functions
Communications Resources
SetDefaultCommConfig
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa363262(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 11:27:49