This topic has not yet been rated - Rate this topic

SetCommConfig function

Applies to: desktop apps only

Sets the current configuration of a communications device.

Syntax

BOOL WINAPI SetCommConfig(
  __in  HANDLE hCommDev,
  __in  LPCOMMCONFIG lpCC,
  __in  DWORD dwSize
);

Parameters

hCommDev [in]

A handle to the open communications device. The CreateFile function returns this handle.

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

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

COMMCONFIG
Communications Functions
Communications Resources
CreateFile
GetCommConfig

 

 

Send comments about this topic to Microsoft

Build date: 2/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ