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

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

src/i/n/infi.wmi-0.1.24/src/infi/wmi/__init__.py   infi.wmi(Download)
def get_comtypes_client(namespace=r"root\cimv2"):
    from . import comtypes as _comtypes
    from comtypes.comtypes import CoGetObject
    from comtypes.comtypes.client import GetModule
    wmi_module = GetModule(['{565783C6-CB41-11D1-8B02-00600806D9B6}', 1 , 2 ])
    client = CoGetObject(r"winmgmts:{}".format(namespace), interface=wmi_module.ISWbemServicesEx)