The GetCommConfig function gets the current configuration of a communications device.
BOOL GetCommConfig(
HANDLE hCommDev, |
// handle of communications service |
LPCOMMCONFIG lpCC, |
// address of comm.configuration structure |
LPDWORD lpdwSize |
// address of size of buffer |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, use the GetLastError function.