Gerbarii

I've determined how to get the process owner via DllImport-ing some native win32 functions. Yet I can't locate a way to tell the desktop, on which it was started. Is there any possibility of telling who has created a process via "run as..."

Re: Visual C# General Getting process owner and its desktop

Mattias Sjogren

Have you tried calling GetThreadDesktop






Re: Visual C# General Getting process owner and its desktop

Gerbarii

That's exactly what I've been looking for. Thanks a lot =)