Re: Call undocumented NTDLL functions with Cygwin/gcc?

2008-11-03 Thread Corinna Vinschen
On Nov 1 13:09, Brian Dessent wrote: David Arnstein wrote: #include w32api/ddk/ntapi.h You don't need the w32api prefix Additionally, since you're building a MingW application (-mno-cygwin), /usr/include is *not* in the search path for, hopefully, obvious reasons. Corinna --

Call undocumented NTDLL functions with Cygwin/gcc?

2008-11-01 Thread David Arnstein
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

Re: Call undocumented NTDLL functions with Cygwin/gcc?

2008-11-01 Thread Corinna Vinschen
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

Re: Call undocumented NTDLL functions with Cygwin/gcc?

2008-11-01 Thread Christopher Faylor
On Sat, Nov 01, 2008 at 10:14:44AM +0100, Corinna Vinschen wrote: 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

Re: Call undocumented NTDLL functions with Cygwin/gcc?

2008-11-01 Thread David Arnstein
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

Re: Call undocumented NTDLL functions with Cygwin/gcc?

2008-11-01 Thread Brian Dessent
David Arnstein wrote: #include w32api/ddk/ntapi.h You don't need the w32api prefix, that is part of the built-in search path -- otherwise, #include windows.h would not work. You also need to link with -lntdll. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple