GetOwnerSid method of the Win32_Process class

The GetOwnerSidWMI 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

Return codeDescription
0

Successful completion

2

Access denied

3

Insufficient Privilege

8

Unknown Failure

9

Path Not Found

21

Invalid Parameter

 

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

See also

Operating System Classes
Win32_Process

 

 

Show:
© 2014 Microsoft. All rights reserved.