Microsoft DirectX 9.0

IDirectPlayNATHelp::Close Method

Closes and unregisters this application with any Internet gateway servers. This method must be called on any object successfully initialized with IDirectPlayNATHelp.


HRESULT Close(      

    const DWORD dwFlags );


[in] Reserved. Must be 0.

Return Value

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

DPNHERR_GENERIC An error occurred while closing.
DPNHERR_INVALIDFLAGS Invalid flags were specified.
DPNHERR_INVALIDOBJECT The interface object is invalid.
DPNHERR_INVALIDPARAM An invalid parameter was specified.
DPNHERR_NOTINITIALIZED The object has not been initialized.
DPNHERR_OUTOFMEMORY There is not enough memory to perform this operation.
DPNHERR_REENTRANT The interface has been re-entered on the same thread.

© 2002 Microsoft Corporation. All rights reserved.