Enumerate the classes in the ``namespace`` that match ``superclass``. if ``superclass`` is None will enumerate all top-level class. ``deep`` allow to returns all subclasses :returns: :class:`WmiEnumeration` .. note:: See https://docs.microsoft.com/en-us/windows
(self, superclass, flags=DEFAULT_ENUM_FLAGS, deep=True)
| 328 | # Create friendly name for create_class_enum & create_instance_enum ? |
| 329 | |
| 330 | def create_class_enum(self, superclass, flags=DEFAULT_ENUM_FLAGS, deep=True): |
| 331 | """Enumerate the classes in the ``namespace`` that match ``superclass``. |
| 332 | if ``superclass`` is None will enumerate all top-level class. ``deep`` allow to returns all subclasses |
| 333 | |
| 334 | :returns: :class:`WmiEnumeration` |
| 335 | |
| 336 | .. note:: |
| 337 | |
| 338 | See https://docs.microsoft.com/en-us/windows/desktop/api/wbemcli/nf-wbemcli-iwbemservices-createclassenum |
| 339 | """ |
| 340 | |
| 341 | flags |= gdef.WBEM_FLAG_DEEP if deep else gdef.WBEM_FLAG_SHALLOW |
| 342 | enumerator = WmiEnumeration() |
| 343 | self.CreateClassEnum(superclass, flags, None, enumerator) |
| 344 | return enumerator |
| 345 | |
| 346 | @property |
| 347 | def classes(self): |