Reinventing the wheel
April 27, 2024, 12:28:50 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
  Home Help Members Tags Login Register  
  Show Posts
Pages: [1]
1  Product/Code Feedback / Delphi Tips/Articles/Examples / CPU Temperature on: April 04, 2009, 12:11:19 AM
Thank you very much for your help.

Greetings.
2  Product/Code Feedback / Delphi Tips/Articles/Examples / CPU Temperature on: April 02, 2009, 03:57:38 PM
Testing the code on this page ...

http://www.ciuly.com/delphi/wmi/cpuSystemTemperature/index.html

... i returned an error "Invalid class" when running these lines...
Code:
strQuery := 'SELECT * FROM __InstanceCreationEvent within 5 WHERE TargetInstance ISA "'+className+'"';
Services.ExecNotificationQueryAsync(SinkClasses.DefaultInterface, strQuery, 'WQL', 0, nil, nil);

... using Delphi 2007 (the variable "className" defined as "GTemperature").

Note: I imported the type libraries "Active DS Type Library 1.0" and "Microsoft WMI Scripting Library 1.2"
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 0.04 seconds with 23 queries.