X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Sat, 1 Nov 2008 13:48:42 -0400
From: David Arnstein <arnstein@panix.com>
To: cygwin@cygwin.com
Subject: Re: Call "undocumented" NTDLL functions with Cygwin/gcc?
Message-ID: <20081101174842.GA10646@panix.com>
Reply-To: arnstein@pobox.com
References: <20081101074937.GA4858@panix.com> <20081101091443.GT6478@calimero.vinschen.de> <20081101141356.GA4936@ednor.casa.cgf.cx>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20081101141356.GA4936@ednor.casa.cgf.cx>
User-Agent: Mutt/1.5.18 (2008-05-17)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

> 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 mingw.org.

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)
arnstein@pobox.com                 {{   }}
                                     ^^

--
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/

