Windows Management Instrumentation (WMI) and Visual Basic 6

Posted on 2006-05-22
Last Modified: 2013-12-03
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
Question by:BLAZEPOINT
    LVL 5

    Accepted Solution

    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 :)


    Author Comment


    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!



    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Pretext and Context In previous  (, I designed the data model of a basic Identity Management…
    Before You Read The Article Please make sure you understand these two concepts: Variable Scope ( and Property Visibility (  And to …
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now