Antwort: Help!I can't include ntddk.h?

Hi,

i m writing a wdm device driver and going to use a kernel function that
defined only in “ntddk.h”, but i found i can’t both include “wdm.h” and
“ntddk.h”. Why? What i should do?

That depends, wdm.h includes (IMHO) all functions, which are supported on
Windows9x’s and Me’s wmd driver system as well.
(it is a subset of the functions declared in ntddk.h)

So if you don’t want to use your driver on Win9x you should simply include
ntddk.h, if you want to stay Win9x compliant
you should only use function which are declared in wdm.h

Best Regards

Michael

yeah,but i wanna use the function “PsSetCreateProcessNotifyRoutine” which
included only in ntddk.h, to get the notificaiton event of process creation.
what shall i do?

From: xxxxx@sonydadc.com
Reply-To: “NT Developers Interest List”
>To: “NT Developers Interest List”
>Subject: [ntdev] Antwort: Help!I can’t include ntddk.h?
>Date: Fri, 21 Mar 2003 08:44:10 +0100
>
>
>
>Hi,
>
> >i m writing a wdm device driver and going to use a kernel function that
> >defined only in “ntddk.h”, but i found i can’t both include “wdm.h” and
> >“ntddk.h”. Why? What i should do?
>
>
>
>That depends, wdm.h includes (IMHO) all functions, which are supported on
>Windows9x’s and Me’s wmd driver system as well.
> (it is a subset of the functions declared in ntddk.h)
>
>
>So if you don’t want to use your driver on Win9x you should simply include
>ntddk.h, if you want to stay Win9x compliant
>you should only use function which are declared in wdm.h
>
>
>
>Best Regards
>
>Michael
>
>
>
>
>
>
>
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus

Just replace wdm.h by ntddk.h, and this article may interest U:

http://www.osr.com/hector_notes.shtml
Subject: WDM.H or NTDDK.H?
Date: Tue, 31 Jul 2001 13:00:24 -0400

Regards
Shi Zhan

Then use only NTDDK.H - it is a superset of WDM.H

Max

----- Original Message -----
From: “huffman hwang”
To: “NT Developers Interest List”
Sent: Friday, March 21, 2003 10:31 AM
Subject: [ntdev] Help!I can’t include ntddk.h?

> HI all,
> i m writing a wdm device driver and going to use a kernel
function that
> defined only in “ntddk.h”, but i found i can’t both include “wdm.h”
and
> “ntddk.h”. Why? What i should do?
>
> Best Regards,
> huffman
>
>
>
>
>
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com
>