|Microsoft DirectX 9.0|
Sets the DPN_SP_CAPS structure for the specified service provider.
const GUID *const pguidSP, const DPN_SP_CAPS *const pdpnSPCaps, const DWORD dwFlags );
- [in] Pointer to a globally unique identifier (GUID) specifying the service provider you want to set information about.
- [in] Pointer to a DPN_SP_CAPS structure to set the information about the specified service provider.
- [in] Reserved. Must be 0.
Returns S_OK if successful, or one of the following error values.
DPNERR_INVALIDOBJECT The Microsoft?DirectPlay?object pointer is invalid. DPNERR_INVALIDPARAM One or more of the parameters passed to the method are invalid. DPNERR_INVALIDPOINTER Pointer specified as a parameter is invalid. DPNERR_UNINITIALIZED The requested object has not been initialized.
This method sets parameters for the specified service provider. A successful call to IDirectPlay8Server::Initialize must be made before this method can be called. Currently, only the dwSystemBufferSize member can be set by this call. The dwNumThreads member is for legacy support. Microsoft DirectX?9.0 applications should use the IDirectPlay8ThreadPool::SetThreadCount method to set the number of threads. The other members of the DPN_SP_CAPS structure are get-only or ignored.