Results 1 to 2 of 2

Thread: [2005] Question on WMI.DLL

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2006
    Posts
    746

    [2005] Question on WMI.DLL

    Hi,

    I'm thinking of using the WMI.DLL to build some sort of WMI Query Builder but I can't figure out how to list all of the classes within the WMI.WMIClasses.Win32 namespace.

    Can someone point me in the right direction?
    ManagePC - the all-in-one PC management and inventory tool

  2. #2
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: [2005] Question on WMI.DLL

    Are you referring to the WMI dll I made that is in the WMI codebank submission? You can try using reflection in order to do it... a little sample is below that shows the names of all the types:
    VB Code:
    1. 'assuming wmi.dll is in the application directory
    2. Dim MyAssembly As System.Reflection.Assembly = System.Reflection.Assembly.LoadFrom(Application.StartupPath & "\WMI.dll")
    3. For Each mType As Type In MyAssembly.GetTypes()
    4.      Messagebox.Show(mType.Name)
    5. Next

Posting Permissions

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



Click Here to Expand Forum to Full Width