home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_2771 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  627 b   |  27 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import pythoncom
  5. import win32api
  6. import win32con
  7.  
  8. def IIDToInterfaceName(iid):
  9.     
  10.     try:
  11.         return pythoncom.ServerInterfaces[iid]
  12.     except KeyError:
  13.         
  14.         try:
  15.             
  16.             try:
  17.                 return win32api.RegQueryValue(win32con.HKEY_CLASSES_ROOT, 'Interface\\%s' % iid)
  18.             except win32api.error:
  19.                 pass
  20.  
  21.         except ImportError:
  22.             pass
  23.  
  24.         return str(iid)
  25.  
  26.  
  27.