GetSecurityDescriptor method of the Win32_SecuritySetting class

The GetSecurityDescriptorWMI class method retrieves a representation of the security descriptor as a Win32_SecurityDescriptor for the Win32_SecuritySetting object.

This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.

Syntax


uint32 GetSecurityDescriptor(
  [out]  Win32_SecurityDescriptor Descriptor
);

Parameters

Descriptor [out]

Expression that resolves to an instance of Win32_SecurityDescriptor.

Return value

Return codeDescription
0

The request was accepted.

1

The request is not supported.

2

The user did not have the necessary access.

8

Interactive process.

9

The name specified was not valid.

21

The parameters passed to the service are not valid.

 

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

Secrcw32.mof

DLL

CIMWin32.dll

See also

Operating System Classes
Win32_SecuritySetting

 

 

Show:
© 2014 Microsoft