The SetDefaultCommConfig function sets the default configuration for a communications device.
BOOL SetDefaultCommConfig(
LPCSTR lpszName, | |
LPCOMMCONFIG lpCC, | |
DWORD dwSize | |
); |
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.
GetDefaultCommConfig, COMMCONFIG
See: