Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/d/i/digsby-HEAD/digsby/src/plugins/researchdriver/driver.py   digsby(Download)
                    import comtypes.client
                    wmi = comtypes.client.CoGetObject("winmgmts:")
                    encs = wmi.InstancesOf("Win32_SystemEnclosure")
                    enc = list(encs)[0]
                    cls.chassis_types = chassis_types = enc.Properties_(strName='ChassisTypes').Value

src/c/o/comtypes-1.0.0/comtypes/test/test_wmi.py   comtypes(Download)
    def test_wmi(self):
        wmi = CoGetObject("winmgmts:")
        disks = wmi.InstancesOf("Win32_LogicalDisk")
 
        # There are different typelibs installed for WMI on win2k and winXP.