NDdeSetShareSecurity

The NDdeSetShareSecurity function is called to set the SECURITY_DESCRIPTOR 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_INFORMATION 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 NDdeGetErrorString.

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.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in nddeapi.h.
  Import Library: Use nddeapi.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT.

See Also

Network Dynamic Data Exchange Overview, Network DDE Functions, SECURITY_INFORMATION, NDdeGetShareSecurity