?/TD> |
Microsoft DirectX 9.0 |
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_UNINITIALIZED The requested object has not been initialized. DPNERR_INVALIDFLAGS The flags passed to this method are invalid. DPNERR_INVALIDPARAM One or more of the parameters passed to the method are invalid.