Creating a WMI Class
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: Creating a WMI Class

  1. #1
    Join Date
    Mar 2011

    Creating a WMI Class


    I am writing an application that needs to insert some data into WMI.

    Now I need to do several things:

    Check if Class X exists
    If yes delete it.
    Create Class X
    Create Instance
    Insert data into Instance.

    In vbscript this is really easy but I can't get my head around how to do it in C++.

    The class does not need to survive a reboot as when the program is next run it will recreate everything. So I want to avoid creating MOF files that need to be deployed to the computers the application is run on.

    Skelaton Code would be really really appraciated as I am at a bit of a loss even after reading the MS documentation (I can code a bit in C++ but I am far from competent it in).



  2. #2
    Join Date
    Mar 2011

    Re: Creating a WMI Class

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center