SetDefaultCommConfig function
Sets the default configuration for a communications device.
Syntax
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 client | Windows XP |
|---|---|
|
Minimum supported server | Windows Server 2003 |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names | SetDefaultCommConfigW (Unicode) and SetDefaultCommConfigA (ANSI) |
See also