次の方法で共有


BinarySDToSDDL method of the Win32_SecurityDescriptorHelper class

The BinarySDToSDDL method converts a security descriptor in binary byte array format to a Security Descriptor Definition Language (SDDL) string security descriptor format.

Syntax

uint32 BinarySDToSDDL(
  [in]  uint8  BinarySD[],
  [out] string SDDL
);

Parameters

BinarySD [in]

Security descriptor in binary byte array format.

SDDL [out]

Security descriptor in SDDL format.

Return value

Returns one of the values listed in the following list.

S_OK

0 (0x0)

The call was successful. The scripting and Visual Basic constant is wbemNoErr.

WBEM_E_INVALID_PARAMETER

2147749896 (0x80041008)

One of the parameters to the call is not correct. The scripting and Visual Basic constant is wbemErrInvalidParameter.

WBEM_E_PROVIDER_FAILURE

2147749892 (0x80041004)

Provider has failed at some time other than during initialization. The scripting and Visual Basic constant is wbemErrProviderFailure.

WBEM_E_OUT_OF_MEMORY

2147749894 (0x80041006)

Not enough memory for the operation. The scripting and Visual Basic constant is wbemErrOutOfMemory.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\CIMv2
MOF
Secrcw32.mof
DLL
CIMWin32.dll

See also

Win32_SecurityDescriptorHelper

WMI Security Descriptor Objects

Changing Access Security on Securable Objects