Platform SDK: Interprocess Communications

NDdeShareSetInfo

The NDdeShareSetInfo function sets DDE share information. This is usually done after editing.

UINT NDdeShareSetInfo(
  LPTSTR lpszServer,     // server name
  LPTSTR lpszShareName,  // share name
  UINT nLevel,           // information level
  LPBYTE lpBuffer,       // share information buffer
  DWORD cBufSize,        // size of buffer
  WORD sParmNum          // parameter index
);

Parameters

lpszServer
[in] Pointer to a string that specifies the name of the server whose DSDM is to be modified.
lpszShareName
[in] Pointer to a string that specifies the name of the share name whose information is to be modified. This parameter cannot be NULL.
nLevel
[in] This parameter must be 2.
lpBuffer
[in] Pointer to the NDDESHAREINFO structure that specifies the DDE share information to be stored in the DSDM. Currently the DDE share information is modified as a whole, that is, no partial edits are made. This parameter cannot be NULL.
cBufSize
[in] Specifies the size of the lpBuffer buffer, in bytes.
sParmNum
[in] Specifies the parameter index to be modified. The current implementation does not support partial modification; therefore, this parameter must be zero.

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.

Requirements

  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.

See Also

Network Dynamic Data Exchange Overview, Network DDE Functions, NDDESHAREINFO, NDdeShareGetInfo