delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/09/23:03:18

From: craft AT alacritech DOT com (Peter Craft)
Subject: How do I open an NT device driver?
9 Oct 1997 23:03:18 -0700 :
Message-ID: <343D62D0.4CC2.cygnus.gnu-win32@alacritech.com>
Reply-To: craft AT alacritech DOT com
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

I'm trying to issue an open to a simple NT device driver using
the cygwin developement environment and I can't figure
out how to do it..

For example, the NT DDK includes source for a "packet driver"
which allows a user to connect to a NT protocol driver directly
from user space.  The included application does this by
issueing a call to CreateFile with the unicode device name
"\\.\Packet_Packet_<adaptername>".  Is it possible to perform this
same function using the GNU library?  If so, I presume I would
perform an "open" instead of the "CreateFile"?  If so, what device
name do I use?  I've tried open("\\\\.\\Packet_Packet_<adaptername>"..
but that didn't work.

Sorry if this is a stupid question, but I'm a bit stumped here.

Thanks very much,

Pete
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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