Microsoft DirectX 8.0 (Visual Basic) |
To determine whether DPNSVR is supported by your service provider, call the GetSPCaps methods supported by the DirectPlay8Peer, DirectPlay8Client, or DirectPlay8Server. If the service provider supports DPNSVR, the DPNSPCAPS_SUPPORTSDPNSRV flag will be set in the dwFlags member or the returned DPN_SP_CAPS type. Only IP and IPX service providers currently support DPNSVR.
Using DPNSVR requires no special effort, because it is selected by default. If you do not want enumeration requests forwarded to your host, you must explicitly disable DPNSVR by setting the DPNSESSION_NODPNSVR flag in the dwFlags member of the DPN_APPLICATION_DESC type.
Note Applications can always enumerate your host if they know the port that it is running on, even if the DPNSESSION_NODPNSVR flag is set.