GetOwnerSid method of the Win32_Process class
The GetOwnerSid WMI class method retrieves the security identifier (SID) for the owner of this process.
This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.
Syntax
uint32 GetOwnerSid(
[out] string Sid
);
Parameters
-
Sid [out]
-
Returns the security identifier descriptor for this process.
Return value
Returns zero (0) to indicate success. Any other number indicates an error. For additional error codes, see WMI Error Constants or WbemErrorEnum. For general HRESULT values, see System Error Codes.
-
Successful completion (0)
-
Access denied (2)
-
Insufficient privilege (3)
-
Unknown failure (8)
-
Path not found (9)
-
Invalid parameter (21)
-
Other (22 4294967295)
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Namespace |
Root\CIMV2 |
MOF |
|
DLL |
|
See also
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin