The NDdeGetTrustedShare function is called to retrieve the options associated with a DDE share that is in the server user's list of trusted shares.
UINT NDdeGetTrustedShare(
LPTSTR lpszServer, // server to execute on
LPTSTR lpszShareName, // name of share to query
LPDWORD lpdwTrustOptions, // trust options in effect
LPDWORD lpdwShareModId0, // first word of share modify identifier
LPDWORD lpdwShareModId1 // second word of share modify identifier
);
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.
The trusted share modify identifier reflects the version of the DDE share in the DSDM at the time the DDE share was initially granted trusted status. The trusted share modify identifier is primarily used to purge obsolete trusted shares. However, the user does not need to purge obsolete trusted shares. The network DDE agent purges obsolete shares on the user's behalf.
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in nddeapi.h.
Import Library: Use nddeapi.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Network Dynamic Data Exchange Overview, Network DDE Functions, NDdeSetTrustedShare