How to find users executing processes



Hi,

I am looking for a way to determine het user that is running a certain
process, I can retrieve the process ID by calling the
GetProcessByName("test") method which will return all processes named
'test'.
But how do I retrieve the user that is running the process ( the process
'test' is started using the 'run as ' function provided in the user
interface of windows)?

Any help would be appreciated,


Han




.



Relevant Pages

  • Re: ct_get_data() fails
    ... calling ct_get_dataon column 2 ... Only those columns following the last bound column are available to ... but can use ct_get_data to retrieve the data ... Replication Server raising the error. ...
    (comp.databases.sybase)
  • Re: Map.get(key) returns null after inserting key
    ... I am inserting a key and a object into a Map. ... to retrieve the object by calling ...
    (comp.lang.java.programmer)
  • Re: ENOBUFS
    ... > end gave-up and closed the connection before the server could get ... > around to calling acceptto retrieve it. ... Only in a very very rare ...
    (comp.sys.hp.hpux)
  • Retrieve text of Word Doc from protected document?
    ... It works good on unprotected document that retrieve text from Word ... document by calling Range.GetText, however, it throws an exception on ... a protected document. ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: buttondownfcn problem in gui
    ... You can retrieve a fresh copy of it by calling ...
    (comp.soft-sys.matlab)