Re: Native API Calls in W2K

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Olof Lagerkvist (no_at_email.address)
Date: 02/09/05


Date: Wed, 09 Feb 2005 13:25:24 GMT

AlexWavecom wrote:

> I am tryinfg to use some native API calls in W2K. I created ntdll.lib from
> ntdll.dll. And made some definitions in my own header file (following the
> descriptions in the "Native API Reference" book from Gary Nebbett). I get a
> link error "unresolved external" for the method "ZwQuerySystemInformation".
>
> It seems that the definitions of the book are not up to date no more.
>
> Is it possible to create a header file from ntdll.dll too?
>
> Or how has the definition for the "ZwQuerySystemInformation" to look like?

The easiest thing for you is to order the Windows DDK which includes
headers and import libraries etc for ntdll.dll API functions. The price
for Windows DDK is only shipping costs.
http://www.microsoft.com/whdc/devtools/ddk/

Note that in usermode the Zw*** functions are called Nt*** so this
function would be called NtQuerySystemInformation() in the headers.

-- 
Olof Lagerkvist           sm6xmk
ICQ: 724451                     @ssa.se
Web: http://here.is/olof


Relevant Pages

  • Re: How to use GDIPlus?
    ... > The headers you have found contain all the exposed functionality (plus ... about 600 API functions, such as GdiplusStartup, GdipDrawLine, etc. ... The Gdip* headers only have few enums and other definitions ... After an hour of tinkering I was able to compile and run ...
    (microsoft.public.pocketpc.developer)
  • Re: .h for standard headers
    ... uniformly expanded wild-card patterns on a command line for all ... settled on *any* .xx suffix, even if they wanted to get away from .h. ... > standard headers into a file, ... is in your current directory (looking like a C++ header file, ...
    (comp.lang.cpp)
  • Re: vector
    ... entirely possible to look at the header file, see the defined methods, and ... to look in headers to see how they work. ... iterators that _are_ the key to the entire standard library by design. ... containers, algorithms and functions. ...
    (microsoft.public.vc.mfc)
  • Re: organizing mulitple source files
    ... > The only function in main.c is mainand it requires certain headers ... > associated with the library functions at the top of main.c and I added ... > my custom header file for the secondary function. ... for the compiler not to complain about it. ...
    (comp.lang.c)
  • Re: C++ by nmake
    ... > The error points to the missing string.h header file. ... > to prepare the envitronment variable, but found no trace to this file in ... Sounds like your problem is referencing the old .h headers. ...
    (microsoft.public.dotnet.languages.vc)