• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 427
  • Last Modified:

Windows Management Instrumentation (WMI) and Visual Basic 6

I am currently working on a VB application that will monitor the status of the underlying hardware i.e. battery status, fan status and CPU temperature.  I’m using the Windows Management Instrumentation (WMI) with some small success however with the hardware/software configuration I have (see below) I appear to be missing various bits of information that would be really useful.   I know the hardware is there, but WMI is not reporting any valid values i.e. CPU temperature

The first part of the question is as follows; is there any other way to retrieve those value other than the WMI i.e. an API call I’m not aware of.  The second part of the question is that failing to find a solution to the first part of the question is there any other way in VB6 to read values directly if you know the address to look – I’m resisting the urge to use the words PEEK and POKE but I guess you can see where I’m coming from.

Thanks in advance for help received.

SW/HW configuration
Itronix Duo-Touch IX325
Windows 2000 (SP4)
BIOS v1.05
0
BLAZEPOINT
Asked:
BLAZEPOINT
1 Solution
 
rmacfadyenCommented:
The short answer is "probably"... however the specifics of it depend very much on the hardware manufacturer (is there actually even a temperature monitor built into the motherboard?). You could try contacting them for the information... but this could be very slow.

You can make VB6 look at arbitray addresses.. but it's a bit messy. Generally I'd approach this by using the MemMove (or is MemoryMove... MoveMemory... dang where is my memory) to move the byte/word/dword value from "memory" into an appropriate variable. Should be reliable enough... but certainly not very clean :)

Rob
0
 
BLAZEPOINTAuthor Commented:
Rob

Many thanks for the prompt feedback.   Alas I think you are correct. I really don’t want to go the route of memcpy and API memory calls, it not nice, extensible and anything but elegant.  On the plus side I have just been a given a contact at Itronix which may yield some results.  

By your leave I'll hang fire for a few days and assuming I don’t receive a beautifully crafted, fully object-oriented solution (with comments and error handling) the points are yours for the sanity check and confirming my view of reality!

Cheers

Darren
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now