SetDefaultCommConfig function kernel32

Win32Result<bool> SetDefaultCommConfig(
  1. PCWSTR lpszName,
  2. Pointer<COMMCONFIG> lpCC,
  3. int dwSize
)

Sets the default configuration for a communications device.

To learn more, see learn.microsoft.com/windows/win32/api/winbase/nf-winbase-setdefaultcommconfigw.

Implementation

Win32Result<bool> SetDefaultCommConfig(
  PCWSTR lpszName,
  Pointer<COMMCONFIG> lpCC,
  int dwSize,
) {
  final result_ = SetDefaultCommConfigW_Wrapper(lpszName, lpCC, dwSize);
  return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}