What is the substitute of undocumented Windows kernel API - KeSetAffinityThread()

void KeSetAffinityThread(PKTHREAD pKThread, KAFFINITY cpuAffinityMask)procedure is available in the Windows kernel and its documentation can be found in the docs of the OS/2 kernel. And Windows still retains this API in its core. This API can be used to set any thread affinity mask. I'm looking for ways to do this when we have more than 64 processors in the system.

Little history - with the introduction of the functionality of the processor under Windows 7 groups, we can count is no longer safe on KAFFINITY, so I can't use the above APIs that the code will be unreliable when it is run on systems with more than 64 processors. I wasn't able to find a replacement suitable for this in MSDN, the API provided by MSDN include KeSetSystemAffinityThread , KeSetSystemGroupAffinityThread , but it does not serve my purpose that these calls are only used to set the affinity of the calling thread while I want to set the affinity of an arbitrary thread.

I also see a function - SetThreadAffinityMask() to set the affinity of an arbitrary thread but it is a user-level routine. I'm looking for something similar in kernel mode.

Hello Shyam,

Welcome to the Microsoft Community Forum.

The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the support you want.

http://social.technet.Microsoft.com/forums/en-us/home?category=w7itpro

Thank you

Tags: Windows

Similar Questions

  • HP envy 17: what is the product key for windows 8.1 pro build9600

    What is the product key of windows pro 8.1 build 9600

    Download and run Belarc Advisor, it will give you all kinds of information about your system, including some keys

    http://www.Belarc.com/free_download.html

  • What is the latest version of Windows Media Player compatible with WM 6.5?

    I have a HTC Touch Pro 2 running Windows Mobile 6.5 smartphone.  What is the latest version of Windows Media Player, I can use?

    You can not.

    Your question was not entirely clear.

    WMP is for XP, not the HTC device. If you have Windows mobile on your HTC, then it will be a Media Player built into it. If you have the latest version, AFAIK you update from 6.5 to what is the latest version of Windows Mobile. If its 6.5, then you already have the latest version.

    You can also see the MS Windows Mobile...

    See you soon,.

    Jerry

  • What is the normal procedure for windows live support call and offer to fix errors on my computer?

    What is the normal procedure for "windows live support" to call and offer to fix errors on my computer?

    What is the normal procedure for "windows live support" to call and offer to fix errors on my computer?

    N° !!!
    Scam!
    Ignore and hang up. For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • What is the ldiag file in Windows 7? How can I stop Windows write files in this folder?

    Can someone tell me what is the ldiag file in Windows 7?

    Somehow, Windows creates files and writes to this file. It keeps then write files until the entire hard drive is full. In other words, there is no place to save a restore point and no place to open Outlook, etc.

    When this has happened in the past, I had to contact the Microsoft response service and a level 2 technician to erase files. They said, the problem has been "fixed", but he continues to be...

    Do you know what "program" in Windows write files to this folder? I think it's a kind of diagnostic file. I tried the search "help" and the community and have not found anything to answer.

    Well, I hope that he is an expert in the community who can advise me on this. Thank you in advance.

    Thank you for your kindness in answering this question. I worked with technician level 2 Microsoft Office of response on the issue.

    I see that the files are part of the Lenovo system. Somehow, the Lenovo system analysis - triggered by something unknown to me--and wrote a text of 25 to 30 Gigabyte file!  I've identified it as a program of Lenovo, the write file and the program triggered by some unknown parameter. Then, I took the step to stop this program, Lenovo to run and then remove the text files.

    The steps you suggested are 'typical' first response / suggestions that you could do in that first level. However, in this case that they had nothing to do with the real problem.

    I often do a disk cleanup. This program is not clean these text files of the diagnosis of Lenovo.

    I start the computer in safe mode to diagnose problems. Yet once, just for the record, being in safe mode has nothing to do with the question of the Lenovo running program.

    No, there is no error message other than a message about 'disk full '. I ran a small program to see the size of the folder and was able to quickly identify the issue of file ldiag containing two text files, each about 25 gigabytes.

    Once again, thank you for your suggestions, but they were just basic, 'typical' suggestions and really had nothing to do with this specific problem. However, you have correctly identified the ldiag as being a file of Lenovo. Once that technology Tier 2 response office and found out that we were able to "solve" the problem.

    I'll keep the links you sent for reference.

    Thank you for taking the time to answer.

  • What is the latest version of Windows 7 Ultimate?

    What is the latest version of Windows 7 Ultimate edition starting from 07/12/2012?

    Hello

    It's the final build number of Windows 7: 6.1.7601.17514

    Learn how to install Windows 7 Service Pack 1 (SP1):
    http://Windows.Microsoft.com/en-us/Windows7/learn-how-to-install-Windows-7-Service-Pack-1-SP1

    Additional resources:
    http://Windows.Microsoft.com/en-us/Windows7/uninstall-SP1
    http://Windows.Microsoft.com/troubleshootwindows7sp1

    Thank you.

  • What is the latest version of Windows that will be compatible with an old PS 2003?

    What is the latest version of Windows that will be compatible with an older version (2003) PS

    What would the 8 version of Photoshop released in October 2003 of Photoshop CS or Photoshop version 7, released in 2002?  If Photoshop 7, I read the ir will work on Windows 10.  Adobe took down their old servers to activate CS and CS2 CS can take place.  However, Adobe made a new CS2 download that you can install with new activation of Adobe servers.  Old Adobe CS and CS2 customers can download this version CS2 and install it. CS2 works with Windows 10.

  • What is the telephone to activate windows in South Africa? __Gauteng province

    What is the phone number for activation of windows in Gauteng Province Republic of South Africa?

    "grant.marogagoldfields.co.za" wrote in message News: 5428f0d9-9a45-479a-af4f-04e4760d2b04...

    What is the phone number for activation of windows in Gauteng Province Republic of South Africa?

    Same for the rest of SA.
    Try
    0801 43 43 43
    or
    + 27 11 361 7000

    --

    Noel Paton | Nil Carborundum Illegitemi | CrashFixPC | The lazy three fingers

  • What is the default font in Windows 7?

    I have a sort of a time trying to figure that out, but I'll try to find a font Windows decent that looks good anywhere like XP, but I don't know what to choose and I don't know what XP used or even which uses Windows 7.

    I know how to change things, but knowing the value default for each could help me decide. I try with ClearType on and outside, but I continue to turn in the same text hard to read which is either crushed or seems smeared. It is not the same experience good all over as it was with XP, although I'd rather not have the pixelated look on text.

    Hello

    Segoe UI is the default font in Windows 7. Segoe UI is a humanist typeface family that is best known for its use by Microsoft. Microsoft uses Segoe UI in their marketing materials online and print, including recent logos for a number of products. In addition, the Segoe UI font family is used by many Microsoft applications. This is the default font in Windows Vista and Windows 7. The font is also used for Outlook.com, e-mail service from Microsoft which has replaced the previous Hotmail.

    Thank you.

  • What are the requirements to load Windows 7 DSP on an existing PC

    Hi people,

    I have an existing PC on which I wish to install Windows 7 OS DSP/OEM.

    What is the minimum requirement of the material that I need to upgrade to remain legally compliant?

    Some retailers to group the DSP version with a hard drive or a mouse. Is that enough to comply with the requirements of the permit in the DSP/OEM OS?

    I would have thought that the requirement would be a new motherboard at least.

    Anyone who can shed some light on the obligation to legally charge the DSP/OEM OS on a PC of exisitng?

    Thank you

    It would seem that I am not clear.

    I know that the hardware requirements to run Windows 7.

    The contract of specific DSP/OEM that this version can not be used to upgrade the operating system to an existing PC.

    Do I have to replace my existing system while it is considered a new PC and I can then legally load a DSP/OEM operating system.

    I don't know how to put it any clearer than that.

    As with any OEM license:

    -OEM versions don't offer any free direct support from Microsoft technical support Microsoft

    -OEM Licenses are tied to the computer first you install and activate it on

    -OEM versions allow all hardware upgrades with the exception of the upgrade to an different model motherboard

    -OEM versions does not move directly from an older Windows operating system

  • What is the best place in windows 7 to discover this netwerk is slow

    Hello

    What is the best place to find out if the netwerk is slow, which is sysmonitor?

    I find myself little complicated netwerk monitor utility.

    Thank you

    Johan

    You are welcome.

    Network Monitor 3.4 is a Protocol Analyzer. It allows you to capture network traffic and view and analyze.

    How to use Network Monitor to capture network traffic

    http://support.Microsoft.com/kb/812953/en-us

    http://TechNet.Microsoft.com/en-us/library/cc938655.aspx

    Working with Network Monitor part 1

    http://www.windowsnetworking.com/articles-tutorials/trouble/working-with-network-monitor-part1.html

    Resource monitor is used to display information about the use of hardware (CPU, memory, disk and network) and software (handles files and modules) resources in real time.

    Resource monitor strongly relies on event for Windows (ETW) tracking facilities, the installation of the counter program (event tracking session) used by the resource monitor can be used for the registration of institutions

    Using the resource monitor to troubleshoot Windows Performance part 1

    http://blogs.technet.com/b/askperf/archive/2012/02/01/using-resource-monitor-to-troubleshoot-Windows-performance-issues-part-1.aspx

    Part 2

    http://blogs.technet.com/b/askperf/archive/2012/02/08/using-resource-monitor-to-troubleshoot-Windows-performance-issues-part-2.aspx

  • Display driver stopped responding and has recovered the display driver NVIDIA Windows Kernel Mode Driver

    Hey guys I have a problem that is really starting to stop a little worth. I recently bought this desktop computer and I had problems with the GPU drivers when I play some games. In the middle of my game, I am reduced to a minimum and maximized every 15 seconds and have the error "display driver stopped responding and recovered, NVIDIA Windows Kernel Mode Driver display driver." I tried SEVERAL solutions from different threads, and I still have this problem.

    Things I've tried:
    -Added a TdrDelay (8) in my regedit
    -Defining my CPU PhysX on my GPU instead of automatic selection
    -Install an older driver over the last.
    Specifications of the PC:
    -8 GB DDR2 RAM
    -Nvidia GeForce 9800 GT Galaxy
    -Power 500w S
    -Card mother ASUSTeK Computer Inc. M3N-HT DELUXE
    -Microsoft Windows 7 Ultimate 64-bit free multiprocessor-7601 Service Pack 1
    -AMD Athlon (TM) 64 X 2 Dual Core Processor 6000 +.

    Hi Vexin,

    Try the following steps to solve the problem.

    Step 1:

    I suggest you uninstall the device of the graphics card from the Device Manager.

    To open the device in Windows 7 Manager - check this link.

    Once uninstall you the graphics drivers in the Device Manager restart the computer.

    Step 2:

    Visit the manufacturer's website and download the latest drivers for the graphics card.

    Link to the manufacturer's Web site.

    http://www.GeForce.com/drivers

    I hope that helps!

  • What is the best version of Windows 7 Ultimate to buy?

    I have another question: I'm looking for all versions of Windows 7 Ultimate edition (I'm addicted to this software), but it is quite confusing to know which one is the best for what I'm doing or simply, what is the best in general. Some mention a GLC as the MFN (?), some say that it is an OEM some just call it a retail version full version which has SP1. I had 3 different versions of Ultimate on my laptop (I can't say which ones, but they reacted differently) where all turns be fake/false, (very, very bad luck) so before we get through all this again with the re * loading the software, I want to make a decision because on who is who. It's just hard to say which is best. I really put my laptop to his test for everything. I have about 3ooo images, so I do a lot with photography, play the games, many commuunications & helping with my husband's company. It is therefore a very wide varitey of uses.

    Thanks for all your help, it is greatly appreciated! JD

    P.S. I definatley want to Windows 7 Ultimate.

    You don't need the final version to accomplish the tasks listed. Family Premium would do the job very well and you would save $$$.

    What you get, do NOT buy on auctions, Amazon or classifieds sites.

    Back, save, copy all your important stuff on a disk external hard and then start again with your newly acquired operating system...

  • What is the latest stand-alone Windows? (for loading on Mac via MVware Fusion)

    I just brought 8.1 Windows online, thinking it was a full version.

    Now I am looking to buy a stand alone (no version upgrade) but may not know what is the latest...

    I'm loading on my mac to run other software.

    Thank you

    The latest version is Windows 8.1

    In order to load on your Mac, you need to do is a. ISO file

    You will probably need to do this from a Windows machine.

    or

    You will need to use it on a Windows based PC running Windows Vista, Windows 7 or Windows 8/8.1

    An alternative is to download the Windows Enterprise 8.1 90 day trial and use it to facilitate the installation of the copy that you have downloaded.

    Download Windows Enterprise 8.1 90 days:

    http://www.Microsoft.com/en-us/evalcenter/evaluate-Windows-8-1-Enterprise

    Make sure you only download the architecture that is supported on your Mac, if you plan to use 32-bit or 64-bit of Windows 8.

    To learn more:

    http://Windows.Microsoft.com/en-us/Windows/32-bit-and-64-bit-Windows

    Once you have the Windows Enterprise 8.1 downloaded ISO 90 day trial, use it to install Windows on your Mac with Boot Camp 8.1:

    http://arstechnica.com/information-technology/2012/11/no-support-no-problem-installing-Windows-8-on-a-Mac-with-boot-camp/

    Once you have Windows Enterprise 8.1 90 trial upward and running, download the Windows 8.1 Upgrade Wizard and use that to install the copy of Windows 8.1 you buy:

    Also, make sure that you create the installation during the installation media:

    http://Windows.Microsoft.com/en-us/Windows-8/create-reset-refresh-media

  • What is the product key of Windows OEM to my computer?

    I can't find the product key for the copy of Windows comes pre-installed on my computer. I bought this EL7850G-42W E-Machines at a local retailer.
    Hello
     
    You can try to locate your Windows product key by following the instructions in this article:
    If you are unable to retrieve the product key and Windows came pre-installed with the computer, then you will need to contact the manufacturer of the computer.
     
    I hope this helps!

Maybe you are looking for

  • can iCloud Documents sync - I exclude this directories?

    Is it possible to exclude some files/directories of this?  I think especially in defence of apps 3rd stuff left in Documents that may not work on more than one Mac. Microsoft Office binary data files Other applications that store binary files, licens

  • Why can't I change my favorites?

    I have Firefox 33.1 on my mac. I would like to modify my favorites, but for the life of me I can't understand how something but add bookmarks. Please, please, please tell me how to change or at least delete and recreate. Thank you.

  • How can I get my laptop repaired?

    I saved my fault with Toshiba, warranty, they recorded this as a problem and he went on a third person, but can't do so to answer my emails?Who can email within Toshiba in this regard? How to make someone to repair my laptop 3 month old?

  • Slideshow w/o import in iPhoto?

    Hi there, people I have two 2 with more than a thousand images/photos (16 & 32 GB) USB flash drives. How can I use iPhoto to see these pictures as a slide show without having to import them into iPhoto? Or y at - it a third-party application freeware

  • How can I turn the volume on my Iconia Tablet an 8?

    See line object.  This tablet is running Android 5.1. After asking this question on another forum, I tried the volume on the side of the tablet button.  But even after having this volume until a short stop of max, I tried to play the video on the You