예제 #1
0
	def _NewEnum(self):
		try:
			invkind = pythoncom.DISPATCH_METHOD | pythoncom.DISPATCH_PROPERTYGET
			enum = self._oleobj_.InvokeTypes(pythoncom.DISPID_NEWENUM,LCID,invkind,(13, 10),())
		except pythoncom.com_error:
			return None # no enumerator for this object.
		import util
		return util.WrapEnum(enum, None)
예제 #2
0
    def _NewEnum(self):
        invkind, dispid = self._find_dispatch_type_("_NewEnum")
        if invkind is None:
            return None

        enum = self._oleobj_.InvokeTypes(pythoncom.DISPID_NEWENUM, LCID,
                                         invkind, (13, 10), ())
        import util
        return util.WrapEnum(enum, None)