NDdeTrustedShareEnum function

[Network DDE is no longer supported. Nddeapi.dll is present on Windows Vista, but all function calls return NDDE_NOT_IMPLEMENTED.]

Retrieves the names of all network DDE shares that are trusted in the context of the calling process.

Syntax

UINT NDdeTrustedShareEnum(
  _In_  LPTSTR  lpszServer,
  _In_  UINT    nLevel,
  _Out_ LPBYTE  lpBuffer,
  _In_  DWORD   cBufSize,
  _Out_ LPDWORD lpnEntriesRead,
  _Out_ LPDWORD lpcbTotalAvailable
);

Parameters

lpszServer [in]

The name of the server on which the DSDM resides.

nLevel [in]

Reserved. This parameter must be zero.

lpBuffer [out]

A pointer to a buffer that receives the list of trusted DDE shares. The list of trusted DDE shares is returned as a sequence of null-separated strings terminating with a double null character at the end. This parameter can be NULL. If the lpBuffer is NULL, the DSDM returns the size of buffer required to hold the list of shares in the lpcbTotalAvailable field.

cBufSize [in]

The size of the lpBuffer buffer, in bytes. This parameter must be zero if lpBuffer is NULL.

lpnEntriesRead [out]

A pointer to a variable that receives the total number of trusted shares being enumerated. This parameter cannot be NULL.

lpcbTotalAvailable [out]

A pointer to a variable that receives the total number of bytes needed to store the list of trusted DDE shares. This parameter cannot be NULL.

Return value

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. If the lpBuffer parameter is NULL, it returns NDDE_BUF_TOO_SMALL.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Nddeapi.h
Library
Nddeapi.lib
DLL
Nddeapi.dll
Unicode and ANSI names
NDdeTrustedShareEnumW (Unicode) and NDdeTrustedShareEnumA (ANSI)

See also

Network Dynamic Data Exchange Overview

Network DDE Functions