Recent

Author Topic: Why I can not set affinity for svchost.exe?  (Read 186 times)

d2010

  • Jr. Member
  • **
  • Posts: 62
Why I can not set affinity for svchost.exe?
« on: October 04, 2024, 09:08:17 pm »
In my Win7Live my routine set "Affinity 1 of 4 cpu" for svchost.exe?
But in other Win7 with admin rights,
__i cannot set "Affinity 1 of 4" for svchost.exe.

Second hint, in same Win7with admin rights, same source*.pas
__set affinity for other application/s (firefox.exe, notepad.exe,acad.exe)  work very fine.

At both Win7Os, already i run execute source*.pas as __administrator=user.
 :o
« Last Edit: October 04, 2024, 09:15:06 pm by d2010 »

440bx

  • Hero Member
  • *****
  • Posts: 4731
Re: Why I can not set affinity for svchost.exe?
« Reply #1 on: October 04, 2024, 09:28:07 pm »
The most likely reason is Windows security.

There are a handful of processes that Windows will _not_ allow any user to manipulate including administrator with all privileges enabled.

I know that one of them is the service (svchost.exe) that provides DRM functions.

From ring-3, for those services there is nothing that can be done about it.

The service you're trying to modify may be one of those MS does not allow anyone to "touch".

HTH.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018