forprivate.blogg.se

Set affinity access denied
Set affinity access denied







Well, since you asked lol, yeah, I basically thought it'd be a good idea to make a little program that assigns all the dull boring keep windows alive processes to one core, and then your game.exe to the other one, all by itself, thus using every available hz on that core. There is no SetProcessAffinityMask("iexplore.exe"). Modifying other processes like iexplore.exe involves some more work, like opening the process by its handle with "admin" rights, and then modifying it. Same effect.Īnd then call one of those affinity functions, depending on what you want to do. Put a "Private" before the declares to put them inside your form code, or if you want them in a module, just leave it as "Declare", or put "Public Declare". But I just wonder what you are trying to do, or trying to figure out what you were really trying to ask, if you get what I mean. Yeah, I may be able to code you an example. You'd have to request a "security descriptor" to fit your needs (obtain this from a function). You'd have to obtain "admin" rights to them, which may be possible with another API command. Those processes are probably owned by SYSTEM.

set affinity access denied

Just curious though: being new to programming, what do you wish to accomplish with the affinity masks? Are you making a custom Windows scheduler (process delegator) or something? Just wondering.









Set affinity access denied