Microsoft DirectX 8.1 (C++)

IDirectPlay8Server::SetSPCaps

Sets the DPN_SP_CAPS structure for the specified service provider.

HRESULT SetSPCaps(
const GUID *const pguidSP,
const DPN_SP_CAPS *const pdpnSPCaps,
const DWORD dwFlags
);

Parameters

pguidSP
[in] Pointer to a GUID specifying the service provider you want to set information about.
pdpnSPCaps
[in] Pointer to a DPN_SP_CAPS structure to set the information about the specified service provider.
dwFlags
[in] Reserved. Must be 0.

Return Values

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

DPNERR_INVALIDOBJECT
DPNERR_INVALIDPARAM
DPNERR_INVALIDPOINTER
DPNERR_UNINITIALIZED

Remarks

This method sets parameters for the specified service provider. A successful call to Initialize must be made before this method can be called. Currently only the dwNumThreads member can be set by this call; the dwFlags member must be 0.

Requirements

  Windows NT/2000/XP: Available as a redistributable for Windows 2000 and later.
  Windows 98/Me: Available as a redistributable for Windows 98 and later.
  Header: Declared in Dplay8.h.