SetCommConfig function

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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft