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 |
); |
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.
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.