Microsoft DirectX 9.0 SDK Update (Summer 2003)

IDirectPlay8ThreadPool::GetThreadCount Method


Retrieves the number of threads for the specified processor or all processors.

Syntax

HRESULT GetThreadCount(      

    const DWORD dwProcessorNum,     DWORD *const pdwNumThreads,     const DWORD dwFlags );

Parameters

dwProcessorNum
[in] Specifies the processor number. Set to -1 to retrieve the thread count for all processors.
pdwNumThreads
[out] Receives the current number of threads for the processor specified in dwProcessorNum.
dwFlags
[in] Reserved. Must be 0.

Return Value

Returns DPN_OK if successful. Otherwise, returns one of the following errors.

DPNERR_UNINITIALIZEDThe requested object has not been initialized.
DPNERR_INVALIDFLAGSThe flags passed to this method are invalid.
DPNERR_INVALIDPARAMOne or more of the parameters passed to the method are invalid.




© 2003 Microsoft Corporation. All rights reserved.