- ntddk.h and WDM driver
- Posted by blu on May 13th, 2004
Deal all,
is there a way to call a function declared only in ntddk.h from a WDM driver
?
If I try to do so compiler reports the function in unknown.
If I include <ntddk.h> comiler reports the file cannot be found.
If I include ntddk.h with full path nothing change.
I would like to call MmIsAddressValid from WDM IOCTL function.
Thank a lot,
Blu
- Posted by Don Burn on May 13th, 2004
Blu,
What are the targets of your driver? The simplest thing is to just
use ntddk.h instead of wdm.h, this will work fine if you do not need to go
back to Windows 98 or ME. Note MmIsAddressValid is not a particularily
useful call, it can TRUE and the next instruction conditions change such
that FALSE would be the correct answer. Use MmProbeAndLockPages and be
safe.
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
"blu" <b.lu@fastwebnet.it> wrote in message
news:ujFD6UPOEHA.628@TK2MSFTNGP11.phx.gbl...
- Posted by blu on May 13th, 2004
Hi,
thank you for your answer.
The problem is that if I include ntddk.h compiler reports the file cannot
be found.
Thank you,
Blu
"Don Burn" <burn@stopspam.acm.org> ha scritto nel messaggio
news:10a72us641o6657@corp.supernews.com...
- Posted by Don Burn on May 13th, 2004
Eliminate the DRIVERTYPE=WDM line from your SOURCES file.
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
"blu" <b.lu@fastwebnet.it> wrote in message
news:ONwuWxPOEHA.1276@TK2MSFTNGP11.phx.gbl...