delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/01/25/00:09:26

From: mef AT cs DOT washington DOT edu (Marc Fiuczynski)
Subject: what is equivalent to CreateFile, DeviceIoControl, CloseHandle???
25 Jan 1998 00:09:26 -0800 :
Message-ID: <4B511FF1DEF7D0119A6400A0C9499E0211DA0E.cygnus.gnu-win32@rpcsrv3.cs.washington.edu>
Mime-Version: 1.0
To: "'gnu-win32 AT cygnus DOT com'" <gnu-win32 AT cygnus DOT com>

Hi,

I need to do the equivalent of the CreateFile, DeviceIoControl, and
CloseHandle calls that are defined in MSVC kernel32.lib.  What I am
trying to do is open up a device, do an ioctl operation to it, and then
later close that device again.  So I suppose there are two questions:

*	does the cygwin dll have similar operations that I can use to do
the CreateFile, DeviceIoControl, and CloseHandle?
*	how can one link with MSVC's kernel32.lib so I can just call
these routines directly?

Thanks,

Marc
mef AT cs DOT washington DOT edu

-
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