Hi Alberto,

> My suggestion for another experiment is the following :
> 
> Rename that kernel32.dll that gives the correct results with another fancy 
> name, for example  mystery.dll
> Then place it into the Linrad directory, and change the code so to load  
> mystery. dll instead of kernel32.dll
> So you will be assured that Windows itself will not use it, avoiding in this 
> way any problem of compatibility or 
> updating, and Linrad only will use it, limited to the CPU load computation 
> functions.

This does not work at all. I get an error exit
which asks me whether I want to send an error 
report to Microsoft:-)

The kernel32.dll file contains the text string KERNEL32.DLL
Presumably Microsoft tries to protect the system a little;-)

Your previous mail with the GetProcessAffinityMask function
seems to be the solution for Linrad. The beauty of this solution
is that it works under Windows 2000, the version that I have
on my stationary computer. (I also have Win 98, but it is obsolete 
and missing the cpu load percentage there is of no concern to me.)

I will simply get the number of processors and multiply with
the elapsed clock time. Then I do not need kernel32:-)

Dear Alberto, I tried to use the GetProcessTimes function long
ago. Actually I spent quite some time on it. Your code showed
me the solution: One has to use GetCurrentProcess() to get
the proper handle. Such little "secrets" make life hard for
newcomers;-)

Thanks for the Win support. Also on the serial port through 
ON7GN:-)

73

Leif / SM5BSZ


#############################################################
This message is sent to you because you are subscribed to
  the mailing list <linrad@antennspecialisten.se>.
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to  <[EMAIL PROTECTED]>

Reply via email to