HELP: Multiuser system , multiple instances and driver

Hi,

I am in big trouble of how to identify process in driver in case of multi user system.

I have completed writing filter Tdi driver. My system includes on user mode application that will be ignored while it is accessing network. For that I was sending Process Id to filter Tdi using IOCTL call when application is started. When I was in some tdi calls I used to compare current process id with IOCTL sent Process id.

But when there will be multiple users simulteneously
logged in and multiple instances of user application are running the case appears to be complex.

Seems that my system overview is complete;-)

Is that process id is unique system wide ?
Can I maintain array of process ids and compare them and will be no problem ?

Waiting for valuable comments.

Rajesh

The Process ID is always unique, although your
way of comparing them seems improper. The TDI
filter driver can be called in the context of any process
and hence the process ID you get in a TDI call, might
not be of the process which initiated the call.

HTH,

-Farooque Khan
http://farooque.150m.com

“Rajesh Nikam” wrote in message news:xxxxx@ntdev…
Hi,

I am in big trouble of how to identify process in driver in case of multi user system.

I have completed writing filter Tdi driver. My system includes on user mode application that will be ignored while it is accessing network. For that I was sending Process Id to filter Tdi using IOCTL call when application is started. When I was in some tdi calls I used to compare current process id with IOCTL sent Process id.

But when there will be multiple users simulteneously
logged in and multiple instances of user application are running the case appears to be complex.

Seems that my system overview is complete;-)

Is that process id is unique system wide ?
Can I maintain array of process ids and compare them and will be no problem ?

Waiting for valuable comments.

Rajesh