NDdeShareAdd function
[Network DDE is no longer supported. Nddeapi.dll is present on Windows Vista, but all function calls return NDDE_NOT_IMPLEMENTED.]
Creates and adds a new DDE share to the DDE share database manager (DSDM).
UINT NDdeShareAdd(
_In_ LPTSTR lpszServer,
_In_ UINT nLevel,
_In_ PSECURITY_DESCRIPTOR pSD,
_In_ LPBYTE lpBuffer,
_In_ DWORD cBufSize
);
-
lpszServer [in]
-
The name of the server whose DSDM is to be modified.
-
nLevel [in]
-
The information level. This parameter must be 2.
-
pSD [in]
-
A 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.
-
lpBuffer [in]
-
A 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.
-
cBufSize [in]
-
The size of the lpBuffer structure, in bytes. This parameter cannot be zero.
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.
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
Library |
|
DLL |
|
Unicode and ANSI names |
NDdeShareAddW (Unicode) and NDdeShareAddA (ANSI) |