This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]