English
Forum

Prozessorinformationen detect, Max. Mhz, number Kerne, Auslastung in % (CallNtPowerInformation)

 

Julian
Schmidt
Hi,
I try straight Information the Prozessors To detect (CallNtPowerInformation, Processor_Power_Information), circa from it then The CPU Auslastung in percent To to charge.
How one The actually CPU speed in Mhz accounts have I already a Posting of here here entnommen. [...] 
Proc sys.getcpuspeed

    Declare Callmem#
    Dim Callmem#,24
    External("powrprof.dll","CallNtPowerInformation",11,0,0,Callmem#,24)
    Var mhz&=Long(Callmem#,8)
    Dispose Callmem#
    return mhz&

ENDPROC

Print "Speed: "  + Str $(sys.getcpuspeed()) +" Mhz"
WaitInput

now would like I yet The Max. Mhz-number the Prozessors and the Number of Kerne detect.
See Link[...] 
the ought to a ähnlichen View source functions
only what must I on the View source change circa instead of "CurrentMhz", "MaxMhz"(, "Number") to obtain?
what has it with the Memory-Variable Callmem# on itself? Why has tappt im dunkeln the value 24?
Why is very Long(Callmem#,8) The CPU speed in Mhz? which values (, instead of 8, ) having others functions ("Number",etc.)

LG

Julian57
 
˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
06/30/11  
 



Inwiefern helps you The Statement To CallNtPowerInformation (  [...]  ) not?
 
06/30/11  
 




Julian
Schmidt
i don't know How I The function over XProfan aufrufe.
or. How the appeal (see View source supra) functions.
and which values I Change must circa another function zurückzugeben

I suspect that I the value 8 from "Var mhz&=Long(Callmem#,8)" Change must circa this To do.
only white I do not in whom worth I this Change must.
on the Page find I unfortunately no scheduler or so :p
 
˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
06/30/11  
 




Jörg
Sellmeyer
go still simply times the 24 through. important is, with zero begin! probably wealthy Viererschritte:
WhileLoop 0,23,4

    print Long(Callmem#,&Loop)

Wend


If thereby your worth is, know You it.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
06/30/11  
 




Julian
Schmidt
Hi,
@ Jörg
Related to the give back the values, and the Compare is a class idea

@All
only a problem. How ermittle I The Maximale Mhz. number of my Prozessors?
I have my system on Volllast brought and over CurrentMhz then The Mhz determined. only was tappt im dunkeln same with the number from the Leerlauf.
is The CPU Auslastung not of actually Mhz the Prozessors tributary?
if so, where of is tappt im dunkeln tributary, How determined one these correctly?

to the function "Number". It can the worth 16 or 20 his. might jemande time whom View source go through let and to check on whether a worth from the amount its Prozessorkerne abweicht or zustimmt. (and its Results here post)
Proc sys.getcpuspeed

    Declare Callmem#
    Dim Callmem#,24
    External("powrprof.dll","CallNtPowerInformation",11,0,0,Callmem#,24)
    Var mhz&=Long(Callmem#,8)

    WhileLoop 0,24,1'Zeitweilig

        print Str $(&loop) + " = " + Str $(Long(Callmem#,&Loop))

    Endwhile

    Dispose Callmem#
    return mhz&

ENDPROC

sys.getcpuspeed
'Print "Speed: "  + Str$(sys.getcpuspeed()) +" Mhz"
WaitInput
'16 or 20 = Number of Processors

LG

Julian57
 
˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
06/30/11  
 




Julian
Schmidt
has whom none a idea? or since your go ahead very with others Things engage?
 
˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
07/03/11  
 



my trouble z.B.: Have To many ideas !

Wonach want The API question?
 
07/03/11  
 



declared is often less helpful moreover as WMI:  [...] 

herewith Real helpful:  [...] 
 
07/03/11  
 




Julian
Schmidt
iF (03.07.11)
Wonach want The API question?


After the CPU Auslastung in percent,the Number of Prozessorkerne, Max. Mhz. the Prozessors ^^ , and everything what itself over the processor yet detect can xD
 
˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
07/03/11  
 



Perhaps. should time with a begin and you then To b vorkämpfen -

a gimmyallwhaticaneat-Api need plenty care. ^^
 
07/03/11  
 




Julian
Schmidt
where should I with a begin and me To b vorkämpfen?
 
˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗˗
Webseite [...] 
07/03/11  
 



try the API hold first 1 worth To elicit and then Piece for Piece.

on the MSDN-Page standing Yes very what The API everything zurückliefern can.
 
07/04/11  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

33.088 Views

Untitledvor 0 min.
RudiB.04/13/20
p.specht12/06/18
H.Brill11/22/15
iF06/02/15
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie