Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WDM.h, NTDEF.h, and WINDOWS.h

672 views
Skip to first unread message

tempnode

unread,
Aug 6, 2008, 11:19:01 AM8/6/08
to
Well, I'm having a problem with the three headers because it seems as if
NTDEF is redefining things defined in WINDOWS.h.

I've read that you can't use windows.h in conjunction with ntddk.h, but
there has to be a way to do this.


Can someone let me know if there is a way for the two header files to coexist?


thanks!

Don Burn

unread,
Aug 6, 2008, 11:23:18 AM8/6/08
to
No there is no way to use windows.h with one of the kernel headers such ad
ntdef.h or ntddk.h. What do you think you can do with windows.h in a device
driver?


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply


"tempnode" <temp...@discussions.microsoft.com> wrote in message
news:48D25495-11D5-4211...@microsoft.com...

tempnode

unread,
Aug 6, 2008, 12:24:02 PM8/6/08
to
i need to use the PROCESS_INFORMATION and STARTUPINFO classes. how can i
access them without windows.h?

Don Burn

unread,
Aug 6, 2008, 12:39:40 PM8/6/08
to
Why in the world would you use these in a kernel mode driver? You can get
this data with kernel calls for PORCESS_INFOMATION and why would you want
STARTUPINFO in the kernel?


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

"tempnode" <temp...@discussions.microsoft.com> wrote in message

news:31F7D41E-C8EE-4FCB...@microsoft.com...

tempnode

unread,
Aug 6, 2008, 1:30:01 PM8/6/08
to
I'm trying to do a process injection (so I can run an app from memory instead
of from disk) as outlined by Gary Barnett in the following link:

http://groups.google.com/group/comp.os.ms-windows.programmer.win32/browse_thread/thread/31ddc628f736efd0/3fa4e10562db1d03?#3fa4e10562db1d03


I haven't been able to get this source to work, though. His source uses
PROC_INFO and STARTUP_INFO, so I'm looking for a way to get this to work.


Can you shed some light for me? Thanks.

tempnode

unread,
Aug 6, 2008, 1:47:02 PM8/6/08
to
Sorry, his name is Gary Nebbett... not Gary Barnett

Tom Picard

unread,
Aug 7, 2008, 12:20:00 AM8/7/08
to
well you definitely need to include windows.h
didn't see why you need nttdk.h or ntdef.h
but if you do, and apparently with the code you are not concerned with using
undocumented features, maybe just cut the appropriately needed structures or
functions from ddk headers and put them at the top of your source code.
0 new messages