BuildCommDCB function kernel32
Fills a specified DCB structure with values specified in a device-control string.
To learn more, see learn.microsoft.com/windows/win32/api/winbase/nf-winbase-buildcommdcbw.
Implementation
Win32Result<bool> BuildCommDCB(PCWSTR lpDef, Pointer<DCB> lpDCB) {
resolveGetLastError();
final result_ = _BuildCommDCB(lpDef, lpDCB);
return .new(value: result_ != FALSE, error: GetLastError());
}