DirectX SDK

IDirectPlayLobby3::EnumAddress

The IDirectPlayLobby3::EnumAddress method parses out chunks from the DirectPlay address buffer.

HRESULT EnumAddress(
  LPDPENUMADDRESSCALLBACK lpEnumAddressCallback,
  LPCVOID lpAddress,
  DWORD dwAddressSize,
  LPVOID lpContext
);

Parameters

lpEnumAddressCallback
Pointer to a EnumAddressCallback function that will be called for each information chunk in the DirectPlay address.
lpAddress
Pointer to the start of the DirectPlay address buffer.
dwAddressSize
Size of the DirectPlay address.
lpContext
Context that will be passed to the callback function.

Return Values

Returns DP_OK if successful, or one of the following error values otherwise:

DPERR_EXCEPTION
DPERR_INVALIDOBJECT
DPERR_INVALIDPARAMS

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dplobby.h.
  Import Library: Use dplayx.lib.

See Also

IDirectPlayLobby3::CreateAddress, DirectPlay Address