Microsoft DirectX 9.0 SDK Update (Summer 2003)

IDirectPlay8Client::GetServerAddress Method


Retrieves the address of the server for the session.

Syntax

HRESULT GetServerAddress(      

    IDirectPlay8Address **const ppAddress,     const DWORD dwFlags );

Parameters

ppAddress
[out] Address of a pointer to an IDirectPlay8Address object that specifies the address of the server. You must release this object when you no longer need it.
dwFlags
[in] Reserved. Must be 0.

Return Value

Returns S_OK if successful, or one of the following error values.

DPNERR_INVALIDOBJECTThe Microsoft® DirectPlay® object pointer is invalid.
DPNERR_INVALIDPARAMOne or more of the parameters passed to the method are invalid.
DPNERR_INVALIDPOINTERPointer specified as a parameter is invalid.
DPNERR_UNINITIALIZEDThe requested object has not been initialized.




© 2003 Microsoft Corporation. All rights reserved.