T
taozhiyu
Unregistered / Unconfirmed
GUEST, unregistred user!
<br> Platform SDK: Interprocess Communications <br>NDdeShareAdd<br>The NDdeShareAdd function creates and adds a new DDE share to the DDE share database manager (DSDM). <br><br>UINT NDdeShareAdd(<br> LPTSTR lpszServer, // server name<br> UINT nLevel, // information level<br> PSECURITY_DESCRIPTOR pSD, // initial security descriptor<br> LPBYTE lpBuffer, // address of NDDESHAREINFO<br> DWORD cBufSize // size of supplied buffer<br>);<br>Parameters<br>lpszServer <br>[in] Pointer to a string that specifies the name of the server whose DSDM is to be modified. <br>nLevel <br>[in] Specifies the information level. This parameter must be 2. <br>pSD <br>[in] Pointer to a SECURITY_DESCRIPTOR structure to be associated with this share and against which access checks will be performed on subsequent initiates to this share. This parameter can be NULL, in which case the DSDM creates a default security descriptor that grants "Full Control" to the owner and "Read and Link" to everyone. <br>lpBuffer <br>[in] Pointer to the NDDESHAREINFO structure that defines the ApplicationTopic list associated with the DDE share being created as well as other parameters. This parameter cannot be NULL. <br>cBufSize <br>[in] Specifies the size of the lpBuffer structure, in bytes. This parameter cannot be zero. <br>Return Values<br>If the function succeeds, the return value is NDDE_NO_ERROR.<br><br>If the function fails, the return value is an error code, which can be translated into a text error message by calling NDdeGetErrorString. <br><br>Remarks<br>Before a client can connect to the DDE share, it must be trusted with NDdeSetTrustedShare.<br><br>Requirements <br> Windows NT/2000/XP: Included in Windows NT 3.1 and later.<br> Header: Declared in Nddeapi.h.<br> Library: Use Nddeapi.lib.<br> Unicode: Implemented as Unicode and ANSI versions.<br><br>See Also<br>Network Dynamic Data Exchange Overview, Network DDE Functions, NDDESHAREINFO, NDdeSetTrustedShare<br><br>Platform SDK Release: August 2001 What did you think of this topic?<br>Let us know. Order a Platform SDK CD Online<br>(U.S/Canada) (International) <br><br> <br><br>Requirements <br> Windows NT/2000/XP: Included in Windows NT 3.1 and later.<br> Header: Declared in Nddeapi.h.<br> Library: Use Nddeapi.lib.<br> Unicode: Implemented as Unicode and ANSI versions.<br>See Also<br>Network Dynamic Data Exchange Overview, Network DDE Functions, NDDESHAREINFO, NDdeSetTrustedShare<br>