Microsoft DirectX 9.0

IDirectPlay8NATResolver::Start Method

Launches the Network Address Translation (NAT) Resolver server using the specified device addresses.


HRESULT Start(      

    IDirectPlay8Address **const ppDevices,     const DWORD dwNumDevices,     const DWORD dwFlags );


[in] An array of IDirectPlay8Address device address objects. Set to NULL to use all Internet Protocol (IP) devices. See Remarks.
[in] Number of device addresses in the ppDevices array.
[in] Reserved. Set to NULL.

Return Value

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

DPNERR_INVALIDDEVICEADDRESSThe address for the local computer or adapter is invalid.
DPNERR_INVALIDFLAGSThe flags passed to this method are invalid.
DPNERR_INVALIDOBJECTThe Microsoft?DirectPlay?object pointer is invalid.
DPNERR_INVALIDPARAMOne or more of the parameters passed to the method are invalid.
DPNERR_UNINITIALIZEDThe requested object has not been initialized.


The ppDevices parameter must contain address objects which have called IDirectPlay8Address::SetSP with the pGuidSP parameter set to CLSID_DP8SP_TCPIP. If IDirectPlay8Address::SetDevice has not been called to set the device globally unique identifier (GUID), all adapters will be used. Only eight addresses can be specified simultaneously.

© 2002 Microsoft Corporation. All rights reserved.