---
name: "SetDefaultCommConfigW"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/SetDefaultCommConfigW"
---

# SetDefaultCommConfigW(3w)

## NAME

**SetDefaultCommConfigW** (KERNEL32.@)

## SYNOPSIS

BOOL SetDefaultCommConfigW\
  (\
   LPCWSTR      *lpszDevice*,\
   LPCOMMCONFIG *lpCommConfig*,\
   DWORD        *dwSize*\
  )

## DESCRIPTION

Initializes the default configuration for a communication device.

## PARAMS

*lpszDevice* **\[In\]**  Name of the device targeted for configuration.

*lpCommConfig* **\[In\]**  **PTR** to a buffer with the configuration for the device.

*dwSize* **\[In\]**  Number of bytes in the buffer.

## RETURNS

**Failure:** **FALSE**

**Success:** **TRUE**, and default configuration saved

## IMPLEMENTATION

Declared in **"winbase.h"**.

Implemented in **"dlls/kernel32/comm.c"**.

Debug channel **"comm"**.
