Fantastic, glad you found that. That will probably solve the problem I have at work as well
Good Detective work there
Fantastic, glad you found that. That will probably solve the problem I have at work as well
Good Detective work there
<A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
<br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
<br /></A>
good, now has anybody the magic function that let me just have an app run on one CPU (discarding the virtual one). I'm clueless about the usage of
SetThreadAffinityMask
The SetThreadAffinityMask function sets a processor affinity mask for the specified thread.
DWORD_PTR SetThreadAffinityMask(
HANDLE hThread,
DWORD_PTR dwThreadAffinityMask
);
Parameters
hThread
[in] Handle to the thread whose affinity mask is to be set.
This handle must have the THREAD_SET_INFORMATION and THREAD_QUERY_INFORMATION access rights. For more information, see Thread Security and Access Rights.
dwThreadAffinityMask
[in] Affinity mask for the thread.
http://www.birth-of-america.com/
<br />The game on American War of Independence and French-Indians war.
an interesting page, I tweaked my executable with the utility posted there. I hope this will fix the problem.
http://www.robpol86.com/Pages/imagecfg.php
http://www.birth-of-america.com/
<br />The game on American War of Independence and French-Indians war.
[pascal]SetThreadAffinityMask(GetCurrentThread(), 1);[/pascal]
ah, nice this GetCurrentThread call, I wondered how in the hell I could find which thread I was on.
Thank you much.
http://www.birth-of-america.com/
<br />The game on American War of Independence and French-Indians war.
Bookmarks