I wanted to use IoGetRequestorProcessId, but only including ntddk.h gives:
error C3861: ‘IoGetRequestorProcessId’: identifier not found
I found that this was in ntifs.h, but including ntifs.h gives
1>c:\winddk\7600.16385.0\inc\ddk\ntifs.h(85) : error C2371:
‘PEPROCESS’ : redefinition; different basic types
1>c:\winddk\7600.16385.0\inc\ddk\ntifs.h(86) : error C2371: ‘PETHREAD’
: redefinition; different basic types
despite the following: “Starting with the Windows Vista version of the
WDK, Wdm.h, Ntddk.h, and Ntifs.h are organized hierarchically and do
not contain duplicate information”
http://msdn.microsoft.com/en-us/library/aa906303.aspx
Anybody know what’s going on? Thanks in advance.
Yang Zhang
http://www.mit.edu/~y_z/
You included ntifs.h and ntddk.h just include ntifs.h
–
Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
“Yang Zhang” wrote in message news:xxxxx@ntdev…
>I wanted to use IoGetRequestorProcessId, but only including ntddk.h gives:
>
> error C3861: ‘IoGetRequestorProcessId’: identifier not found
>
> I found that this was in ntifs.h, but including ntifs.h gives
>
> 1>c:\winddk\7600.16385.0\inc\ddk\ntifs.h(85) : error C2371:
> ‘PEPROCESS’ : redefinition; different basic types
> 1>c:\winddk\7600.16385.0\inc\ddk\ntifs.h(86) : error C2371: ‘PETHREAD’
> : redefinition; different basic types
>
> despite the following: “Starting with the Windows Vista version of the
> WDK, Wdm.h, Ntddk.h, and Ntifs.h are organized hierarchically and do
> not contain duplicate information”
>
> http://msdn.microsoft.com/en-us/library/aa906303.aspx
>
> Anybody know what’s going on? Thanks in advance.
> –
> Yang Zhang
> http://www.mit.edu/~y_z/
>
>
> Information from ESET NOD32 Antivirus, version of virus
> signature database 4625 (20091120)
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
Information from ESET NOD32 Antivirus, version of virus signature database 4625 (20091120)
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com