delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/12/19:03:59

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Bert <dsboiz AT gmail DOT com>
Subject: Re: IOCTL using <ddk/ntddser.h>
Date: Fri, 13 Mar 2009 00:03:22 +0000 (UTC)
Lines: 11
Message-ID: <loom.20090313T000122-681@post.gmane.org>
References: <loom DOT 20090311T224103-693 AT post DOT gmane DOT org> <20090312083353 DOT GB14431 AT calimero DOT vinschen DOT de> <loom DOT 20090312T144108-992 AT post DOT gmane DOT org> <20090312152659 DOT GA2364 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019