Get process owner

Please define “owner”. The user account the process is running under?

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: LEGAL Francois
To: Windows System Software Devs Interest List
Sent: Monday, March 22, 2004 12:44 PM
Subject: [ntdev] Get process owner

I’m trying to get the current process owner using Win32_Process WMI Class,

I first get the process id then I try to execute the GetOwner method with the object path set to “Win32_Process.ProcessId=PID”

I get WBEM_E_INVALID_OBJECT_PATH.

Where is the mistake.

Moreover, it seems (I read it on internet) some debug rights are needed to execute this method.

Is it true ?

Thanks

Fran?ois


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com