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

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import pythoncom
  5.  
  6. def RegisterClassFactories(clsids, flags = None, clsctx = None):
  7.     if flags is None:
  8.         flags = pythoncom.REGCLS_MULTIPLEUSE | pythoncom.REGCLS_SUSPENDED
  9.     
  10.     if clsctx is None:
  11.         clsctx = pythoncom.CLSCTX_LOCAL_SERVER
  12.     
  13.     ret = []
  14.     for clsid in clsids:
  15.         if clsid[0] not in ('-', '/'):
  16.             factory = pythoncom.MakePyFactory(clsid)
  17.             regId = pythoncom.CoRegisterClassObject(clsid, factory, clsctx, flags)
  18.             ret.append((factory, regId))
  19.             continue
  20.     
  21.     return ret
  22.  
  23.  
  24. def RevokeClassFactories(infos):
  25.     for factory, revokeId in infos:
  26.         pythoncom.CoRevokeClassObject(revokeId)
  27.     
  28.  
  29.