网站首页  计算机词典

请输入您要查询的字词:

 

字词 setdefaultcommconfig
释义 SetDefaultCommConfig
语法:
C++
BOOL WINAPI SetDefaultCommConfig(
__in LPCTSTR lpszName,
__in LPCOMMCONFIG lpCC,
__in DWORD dwSize
);
SetDefaultCommConfig功能
设置为默认配置通讯设备。
参数
lpszName [in]
该设备的名称。例如,通过COM9的COM1端口的串行端口,并通过LPT9 LPT1的并行端口。
的LPCC [in]
一个 COMMCONFIG结构的指针。
dwSize [in]
结构的大小指向的LPCC,以字节为单位。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesSetDefaultCommConfigW(Unicode)和SetDefaultCommConfigA(ANSI)的
参见
COMMCONFIG
通讯功能
通信资源
GetDefaultCommConfig
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==SetDefaultCommConfig Function
Sets the default configuration for a communications device.
Syntax
C++
BOOL WINAPI SetDefaultCommConfig(
__in LPCTSTR lpszName,
__in LPCOMMCONFIG lpCC,
__in DWORD dwSize
);
Parameters
lpszName [in]
The name of the device. For example, COM1 through COM9 are serial ports and LPT1 through LPT9 are parallel ports.
lpCC [in]
A pointer to a COMMCONFIG structure.
dwSize [in]
The size of the structure pointed to by lpCC, in bytes.
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
Unicode and ANSI namesSetDefaultCommConfigW (Unicode) and SetDefaultCommConfigA (ANSI)
See Also
COMMCONFIG
Communications Functions
Communications Resources
GetDefaultCommConfig
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa363438(VS.85).aspx\n
随便看

 

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

 

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