def IIDToInterfaceName(iid):
 try:
  return pythoncom.ServerInterfaces[iid]
 except KeyError:
  try:
   try:
    return win32api.RegQueryValue(win32con.HKEY_CLASSES_ROOT, ('Interface\\%s' % iid))
   except win32api.error:
    pass
  except ImportError:
   pass
  return str(iid)

def IIDToInterfaceName ( iid ) : try : return pythoncom . ServerInterfaces [ iid ] except KeyError : try : try : return win32api . RegQueryValue ( win32con . HKEY_CLASSES_ROOT , ( 'Interface\\%s' % iid ) ) except win32api . error : pass except ImportError : pass return str ( iid )
converts an iid to a string interface name .