NetDfsGetStdContainerSecurity function

Retrieves the security descriptor for the container object of the specified stand-alone DFS namespace.

Syntax

NET_API_STATUS NET_API_FUNCTION NetDfsGetStdContainerSecurity(
  LPWSTR               MachineName,
  SECURITY_INFORMATION SecurityInformation,
  PSECURITY_DESCRIPTOR *ppSecurityDescriptor,
  LPDWORD              lpcbSecurityDescriptor
);

Parameters

MachineName

Pointer to a string that specifies the name of the server that hosts the stand-alone DFS namespace.

SecurityInformation

SECURITY_INFORMATION structure that contains bit flags that indicate the type of security information to retrieve.

ppSecurityDescriptor

Pointer to a list of SECURITY_DESCRIPTOR structures that contain the security items requested in the SecurityInformation parameter.

Note  This buffer must be freed by calling the NetApiBufferFree function.
 

lpcbSecurityDescriptor

The size of the buffer that ppSecurityDescriptor points to, in bytes.

Return value

If the function succeeds, the return value is NERR_Success.

If the function fails, the return value is a system error code. For a list of error codes, see System Error Codes.

Remarks

The security descriptor is retrieved from the object specified by the HKLM<b>Software<b>Microsoft<b>Dfs<b>Standalone key in the registry of the server specified in the MachineName parameter.

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header lmdfs.h (include LmDfs.h, Lm.h)
Library Netapi32.lib
DLL Netapi32.dll

See also

Distributed File System (DFS) Functions

Network Management Functions

Network Management Overview