This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: IOCTL using <ddk/ntddser.h>
Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> open("/dev/com4"); // Btw. "/dev/ttyS3" is preferred
> ioctl(POSIX_IOCTL_CODE);
> close;
> CreateFile("COM4:", ...);
> DeviceIoControl(WIN32_IOCTL_CODE);
> CloseHandle;
Corinna - thanks. Your simple examples made it crystal clear.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/