Skip to main content
GameDev.net gamedev.net
🔒 Locked

Untitled

Started by psr100 Oct 6, 2006 at 1:31 AM 4 replies 950+ views
Original Post
psr100
psr100
Hi, I am writing device driver in Windows. I want to use the following function. struct _EPROCESS* STDCALL IoGetCurrentProcess ( VOID ); But I can not find _EPROCESS definition anywhere. Is it not exported? If not, How can we use IoGetCurrentProcess ? Srinivas
psr100
psr100
Hi,

No where I can see definition of _EPROCESS. Is it not documented and exported?

Srinivas
Hedos
Hedos
If you checked the MSDN link I provided, you see the documented return value of your function is PEPROCESS. So use that and never use _EPROCESS.

_EPROCESS is probably not documented, I wouldn't trust any structure name beginning with an underscore either. I'm not sure about that one, but it may be a naming convention for internal structure representations or something along those lines. So only stick with what you see in the docs (PEPROCESS that is).
psr100
psr100
Hi,

Then how do I get PEPROCESS structure fields?

Srinivas
Emmanuel Deloget
Emmanuel Deloget
If it's not documented, then maybe they don't want you to play with the structure fieds. The reason is probably that the underlying structure depends on the Windows version. There are some functions that allow you to get some informations out from this pointer. For example, PsGetProcessId() (which also states The EPROCESS-typed process object structure is an opaque data structure that the operating system uses internally BTW).

What do you want to get from this EPROCESS structure?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.