Re: Get Process List from window Service

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"kalpesh" <kalpeshgedia@xxxxxxxxx> wrote in message
news:1182932802.822311.212580@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jun 27, 11:47 am, "Arkady Frenkel" <arka...@xxxxxxxxxxxxxxxx>
wrote:
You can use ToolHelp :
CreateToolhelp32Snapshot()/Process32First(Next)()...
to enumerate all processes and but you need to exclude processes running
as
a services from that list
Arkady

"kalpesh" <kalpeshge...@xxxxxxxxx> wrote in message

news:1182921009.515136.139460@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



Hi also having problem regarding WTSQuerySessionInformation,

I am developing virtual printer driver In window vista operation
system which run under spooler service.

Now i want Process List of currnt login user from my this printer
driver
Or
we can say that i want Process list of current login user from window
service
i got the current user session id from WTSGetActiveConsoleSessionId()
API
now how can i get the process list of this active session my Window
serivice i got idea
that using WTSQuerySessionInformation get the application name running
user session
but i dont know how to use this function help me.

Any comments are welcome..
Kalpesh.- Hide quoted text -

- Show quoted text -

hi Arkedy,
Thanks for reply
i have more question that my Printer driver DLL is one serice which
run in session 0 and user run in session 1 , session 2 and so on.. In
window vista operation system.

now i want process list of user session means i want a process list of
session 1 from session 0, is it possible in VISTA if yes then HOW
please help me...

Thanks,
Kalpesh



Are you looking for the WTSEnumerateProcesses function?

Mike P


.



Relevant Pages

  • Re: Get Process List from window Service
    ... to enumerate all processes and but you need to exclude processes running as ... I am developing virtual printer driver In window vista operation ... Now i want Process List of currnt login user from my this printer ... i got the current user session id from WTSGetActiveConsoleSessionId ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Get Process List from window Service
    ... to enumerate all processes and but you need to exclude processes running as ... we can say that i want Process list of current login user from window ... i got the current user session id from WTSGetActiveConsoleSessionId ... i have more question that my Printer driver DLL is one serice which ...
    (microsoft.public.win32.programmer.kernel)