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: Call "undocumented" NTDLL functions with Cygwin/gcc?

> On Sat, Nov 01, 2008 at 10:14:44AM +0100, Corinna Vinschen wrote:
> >Many of the ntdll functions and types are defined under
> >/usr/include/w32api/ddk.  The definitions are not complete so expect
> >that you have to create your own header to define missing symbols.
> >Patches to extend the files in w32api (maintained by the MingW team)
> >are always welcome.
On Sat, Nov 01, 2008 at 10:13:57AM -0400, Christopher Faylor wrote:
> But they don't go to this mailing list.  Check out

OK, I will submit any patches to MingW instead of Cygin. But, back to
Cygwin. The directory /usr/include/w32api/ddk does not seem to be
available when I use "gcc -mno-cygwin." I mean, I have this line of code 
in my source file:
	#include <w32api/ddk/ntapi.h>
This is how I am trying to compile:
	gcc -mno-cygwin -Wall -g bodge.c -o bodge
	bodge.c:2:30: w32api/ddk/ntapi.h: No such file or directory

So what is the proper way to use the DDK functions in Cygwin? You
mention MingW, so I assume that I should use the MingW compiler (gcc
-mno-cygwin). Do I assume wrong?
David Arnstein                       (00)                 {{   }}

Unsubscribe info:
Problem reports:

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