Platform SDK: Interprocess Communications |
The NDdeShareAdd function creates and adds a new DDE share to the DDE share database manager (DSDM).
UINT NDdeShareAdd( LPTSTR lpszServer, // server name UINT nLevel, // information level PSECURITY_DESCRIPTOR pSD, // initial security descriptor LPBYTE lpBuffer, // address of NDDESHAREINFO DWORD cBufSize // size of supplied 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.
Before a client can connect to the DDE share, it must be trusted with NDdeSetTrustedShare.
Windows NT/2000: Requires Windows NT 3.1 or later.
Header: Declared in Nddeapi.h.
Library: Use Nddeapi.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000.
Network Dynamic Data Exchange Overview, Network DDE Functions, NDDESHAREINFO, NDdeSetTrustedShare