Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Driver Kit
Reference
 KeSetSystemAffinityThreadEx

  Switch on low bandwidth view
Windows Driver Kit: Kernel-Mode Driver Architecture
KeSetSystemAffinityThreadEx

The KeSetSystemAffinityThreadEx routine sets the system affinity for the current thread.

KAFFINITY
  KeSetSystemAffinityThreadEx(
    IN KAFFINITY  Affinity
    );

Parameters

Affinity
A KAFFINITY-typed variable that received a bitmap that represents the set of currently active processors. Note that in a hot-add environment, the set of active processors might change during runtime.

Return Value

KeSetSystemAffinityThreadEx returns either the previous system affinity or zero to indicate that there was no previous system affinity.

Comments

Use KeSetSystemAffinityThreadEx instead of the KeSetSystemAffinityThread routine whenever possible.

Callers of should pass the return value to the KeRevertToUserAffinityThreadEx routine when appropriate.

Requirements

Versions: Available on Windows Vista and later versions of the Windows operating system.

Headers: Declared in Wdm.h. Include Wdm.h.

See Also

KAFFINITY, KeRevertToUserAffinityThreadEx, KeSetSystemAffinityThread


Send feedback on this topic
Built on May 20, 2009
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker