X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Sat, 1 Nov 2008 10:14:44 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Call "undocumented" NTDLL functions with Cygwin/gcc?
Message-ID: <20081101091443.GT6478@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20081101074937.GA4858@panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20081101074937.GA4858@panix.com>
User-Agent: Mutt/1.5.16 (2007-06-09)
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 Nov  1 03:49, David Arnstein wrote:
> I would like to use some of the "undocumented" NTDLL functions from
> within a C or C++ program. I would like to compile this program from
> Cygwin's C or C++ compiler.
> 
> The functions I refer to involve Registry operations, such as 
> NtQueryValueKey() and NtEnumerateValueKey(). I found some sparse
> documentation here:
> http://undocumented.ntinternals.net/UserMode/Undocumented%20Functions/NT%20Objects/Key/NtQueryValueKey.html
> 
> I could not find these under /usr/include. Any suggestions?

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.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

