CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  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

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.