The NDdeGetShareSecurity function is called to get the SECURITY_DESCRIPTOR associated with the DDE share. This is done usually for editing.
UINT NDdeGetShareSecurity(
LPTSTR lpszServer, // server to execute on
LPTSTR lpszShareName, // name of share to delete
SECURITY_INFORMATION si, // requested information
PSECURITY_DESCRIPTOR pSD, // address of SD buffer
DWORD cbSD, // size of SD buffer
LPDWORD lpcbsdRequired // address of required size for SD buffer
);
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. If the pSD parameter was NULL, it returns NDDE_BUF_TOO_SMALL.
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.
Network Dynamic Data Exchange Overview, Network DDE Functions, SECURITY_INFORMATION, NDdeSetShareSecurity