IVMSecurity::_ToSecurityDescriptor method

The _ToSecurityDescriptor method creates a self-relative SECURITY_DESCRIPTOR structure representing the current state of the IVMSecurity instance.

Syntax

HRESULT _ToSecurityDescriptor(
  [in]  GENERIC_MAPPING *genericMapping,
  [out] long            *securityDescriptorLength,
  [out] BYTE            **securityDescriptor
);

Parameters

genericMapping [in]

Type: GENERIC_MAPPING*

A GENERIC_MAPPING structure.

securityDescriptorLength [out]

Type: long*

The length in bytes of the security descriptor returned by this method.

securityDescriptor [out]

Type: BYTE**

A self-relative security descriptor representing the current state of the IVMSecurity instance. The caller must release the memory occupied by the security descriptor by calling CoTaskMemFree when it is finished.

Return value

Type: HRESULT

This method can return one of these values.

This method supports standard return values, as well as the following. For information on Virtual Server specific return values not listed below, see HRESULT Codes Specific to the Virtual Server.

Return code Description
S_OK
The operation was successful.
E_POINTER
A null pointer was specified in one of the parameters.
E_OUTOFMEMORY
There was not enough memory to create the security descriptor.
DISP_E_EXCEPTION
An unknown error has occurred. Other HRESULT error values may be returned as well.

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMSecurity