Network DDE provides functions that allow you to delete a share, get or set share information, or enumerate shares.
·Deleting a DDE Share A server can remove a DDE share by using the NDdeShareDel function.
·Getting and Setting DDE Share Information You can retrieve information about a DDE share by using the NDdeShareGetInfo function. You can also change information about the share by using the NDdeShareSetInfo function.
·Enumerating DDE Shares You can enumerate the existing DDE shares for a computer by using the NDdeShareEnum function. You can enumerate the trusted DDE shares by using the NDdeTrustedShareEnum function.
You can enumerate the users connected to your DDE shares by using the NetSessionEnum function.
·Changing the DDE Share Name To change the name of a DDE share, an application must delete the old share and create a new share.
To change the share name
1.Retrieve the share information using NDdeShareGetInfo.
2.Remove the share using NDdeShareDel.
3.Change the lpszShareName member of the NDDESHAREINFO structure returned by NDdeShareGetInfo.
4.Pass the modified NDDESHAREINFO structure to NDdeShareAdd.