GetCommConfig function kernel32
Win32Result<bool>
GetCommConfig(
- HANDLE hCommDev,
- Pointer<
COMMCONFIG> ? lpCC, - Pointer<
Uint32> lpdwSize
Retrieves the current configuration of a communications device.
To learn more, see learn.microsoft.com/windows/win32/api/winbase/nf-winbase-getcommconfig.
Implementation
Win32Result<bool> GetCommConfig(
HANDLE hCommDev,
Pointer<COMMCONFIG>? lpCC,
Pointer<Uint32> lpdwSize,
) {
final result_ = GetCommConfig_Wrapper(hCommDev, lpCC ?? nullptr, lpdwSize);
return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}