>I look into the msdn, and tried to add many windows header files to
the kernel driver, but they all failed.
As Joe says, that’s kind of a broad problem description.
However, by the sound of it you are saying that you took SDK header
files and tried to add them to your driver project.
The SDK and WDK are two totally independent and complete
environments, the headers are NOT interchangeable, or at least until
you really really know what you are doing.
You have a lot of problems. Take a step back and solve them one by
one. If you need to post questions here, try not to assume any
telepathic abilities amongst list members.
Mark.
At 16:22 20/01/2009, Joseph M. Newcomer wrote:
“failed”? I have no idea what that means. Perhaps a DESCRIPTION of the
concept of “failed” might help…
Also note that these are C++, not C.
The simplest way to write a reinterpret cast to type T in the kernel is
(T)expression
The rest is syntactic saccharine (sort of like syntactic sugar, but totally
fake)
joe
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of ??
Sent: Tuesday, January 20, 2009 1:21 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to use reinterpret_cast in kernel driver
Hi, Guys!
As the title has describled, I don’t know how to use the cast languages in
kernek driver, such as static_cast and reinterpret_cast and so on. I have
noticed that many drivers used these, but I always don’t know how to use
them. I look into the msdn, and tried to add many windows header files to
the kernel driver, but they all failed.
Can any one who knows help me?
Many Thanks!
Best Regards!