ntoskrnl.exe: [1/2] Implement KeQueryActiveProcessors

Dmitry Timoshkov dmitry at codeweavers.com
Sun Apr 6 23:06:13 CDT 2008


"Detlef Riekenberg" <wine.dev at web.de> wrote:

> +KAFFINITY WINAPI KeQueryActiveProcessors( void )
> +{
> +    DWORD_PTR   AffinityMask;
> +
> +    if (GetProcessAffinityMask( GetCurrentProcess(), &AffinityMask, NULL)) {
> +        return AffinityMask;
> +    }
> +
> +    /* No Idea, what to do, when GetProcessAffinityMask fail.
> +       We use the first Processor */
> +    return 1;
> +}

GetProcessAffinityMask() should never fail for the current process, so there is
no need to add bogus code for that case.

-- 
Dmitry.



More information about the wine-devel mailing list