The SQL Dude!

On-Disk & In-Memory Pages that teach you the SQL way of life!

Archive for March, 2012

Programmatically find and set the Process Affinity mask for Windows Applications

Posted by Sudarshan Narasimhan on March 30, 2012

Well, here come my first Windows programming post. I often dabble in Win32 coding and have lots of small tools or programs written. I’m still sifting through my old code to see how many of them are useful for others. This one is quite handy to understand how Windows affinity mask can be found for any process and also set the affinity mask for running processes.

Program Details



You can download the visual studio solution called “” from SkyDrive below,


Posted in Windows | Tagged: , , , , , , , , , | Leave a Comment »