Hallo,<br>
das Win32sdk sagt:<br>
"The GetDefaultCommConfig function gets the default configuration<br>
for a communications device.
The GetCommProperties function fills a buffer with information about<br>
the communications properties for a specified communications device."<br>
Wenn ich das richtig verstehe, gilt das also für alle Arten von<br>
"Kommunikationsgeräten", auch für Parrallelports.<br>
Für LPT1 bekomme ich aber bei GetCommProperties nur Nullen in allen<br>
Werten zurück und GetDefaultCommProperties lässt sich mit<br>
"Der Parameter stimmt nicht" gar nicht erst zur Arbeit überreden.<br>
Was mache ich falsch?<br>
Für GetDefaultCommProperties:<br>
CC.dwSize := SizeOf(TCOMMCONFIG); // Natürlich: var cc: TCommConfig <br>
if not GetDefaultCommConfig(pchar(LPT1), CC, CC.dwSize) then<br>
showmessage(format(': %s (%d)',[SysErrorMessage( GetLastError ),<br>
getlasterror]));<br>
Danke!<br>
Matthias
das Win32sdk sagt:<br>
"The GetDefaultCommConfig function gets the default configuration<br>
for a communications device.
The GetCommProperties function fills a buffer with information about<br>
the communications properties for a specified communications device."<br>
Wenn ich das richtig verstehe, gilt das also für alle Arten von<br>
"Kommunikationsgeräten", auch für Parrallelports.<br>
Für LPT1 bekomme ich aber bei GetCommProperties nur Nullen in allen<br>
Werten zurück und GetDefaultCommProperties lässt sich mit<br>
"Der Parameter stimmt nicht" gar nicht erst zur Arbeit überreden.<br>
Was mache ich falsch?<br>
Für GetDefaultCommProperties:<br>
CC.dwSize := SizeOf(TCOMMCONFIG); // Natürlich: var cc: TCommConfig <br>
if not GetDefaultCommConfig(pchar(LPT1), CC, CC.dwSize) then<br>
showmessage(format(': %s (%d)',[SysErrorMessage( GetLastError ),<br>
getlasterror]));<br>
Danke!<br>
Matthias
Comment