NDdeSetShareSecurity  A45OD6 

The NDdeSetShareSecurity function is called to set the SECURITY_DESCRIPTOR8_8U2Z associated with the DDE share. This is done usually after editing the DACL assigned to the DDE share.

UINT NDdeSetShareSecurity(

    LPTSTR lpszServer,

// server to execute on

    LPTSTR lpszShareName,

// name of share to delete

    SECURITY_INFORMATION si,

// type of information

    PSECURITY_DESCRIPTOR pSD

// address of security descriptor to set

   );

 

 

Parameters

lpszServer

Address of the server name on which the DSDM will be modified.

lpszShareName

Address of the share name whose security descriptor is to be modified in the DSDM. This parameter must not be NULL.

si

Specifies a SECURITY_INFORMATION1IEJNC4 structure identifying the contents of the security descriptor pointed to by the pSD parameter.

pSD

Address of the SECURITY_DESCRIPTOR that will be the source of the security information modified in the DDE share. This parameter must not be NULL and should point to a valid security descriptor.

 

Return Values

If the function succeeds, the return value is NDDE_NO_ERROR.

If the function fails, the return value is an error code, which can be translated into a text error message by calling NDdeGetErrorStringI0Y5FJ.

Remarks

To modify the SECURITY_DESCRIPTOR associated with a DDE share in the DSDM, the user must have appropriate privilege; the share creator has this privilege.

See Also

SECURITY_INFORMATION, NDdeGetShareSecurity