Ignore:
Timestamp:
Nov 10, 2001, 1:47:48 PM (24 years ago)
Author:
sandervl
Message:

Implemented Get/SetProcessAffinityMask & SetThreadAffinityMask

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/initkernel32.cpp

    r6646 r7318  
    1 /* $Id: initkernel32.cpp,v 1.7 2001-09-05 12:57:58 bird Exp $
     1/* $Id: initkernel32.cpp,v 1.8 2001-11-10 12:47:46 sandervl Exp $
    22 *
    33 * KERNEL32 DLL entry point
     
    3939#include "initterm.h"
    4040#include <win32type.h>
     41#include <win32api.h>
    4142#include <odinlx.h>
    4243#include "oslibmisc.h"
     
    179180            //keys that affect windows version)
    180181            InitDynamicRegistry();
     182
     183            //Set the process affinity mask to the system affinity mask
     184            DWORD dwProcessAffinityMask, dwSystemAffinityMask;
     185            GetProcessAffinityMask(GetCurrentProcess(), &dwProcessAffinityMask, &dwSystemAffinityMask);
     186            SetProcessAffinityMask(GetCurrentProcess(), dwSystemAffinityMask);
    181187            break;
    182188        }
Note: See TracChangeset for help on using the changeset viewer.