Platform SDK: Interprocess Communications

DdeQueryNextServer

The DdeQueryNextServer function retrieves the next conversation handle in the specified conversation list.

HCONV DdeQueryNextServer(
  HCONVLIST hConvList,  // handle to conversation list
  HCONV hConvPrev       // previous conversation handle
);

Parameters

hConvList
[in] Handle to the conversation list. This handle must have been created by a previous call to the DdeConnectList function.
hConvPrev
[in] Handle to the conversation handle previously returned by this function. If this parameter is 0L, the function returns the first conversation handle in the list.

Return Values

If the list contains any more conversation handles, the return value is the next conversation handle in the list; otherwise, it is 0L.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Ddeml.h; include Windows.h.
  Library: Use User32.lib.

See Also

Dynamic Data Exchange Management Library Overview, Dynamic Data Exchange Management Functions, DdeConnectList, DdeDisconnectList