#NEWLINE# def _register_class( self ) : #NEWLINE# #INDENT# regcls = getattr ( self . _cls , '_regcls_' , self . regcls ) #NEWLINE# cookie = c_ulong ( ) #NEWLINE# ptr = self . _com_pointers_ [ comtypes . IUnknown . _iid_ ] #NEWLINE# clsctx = self . _cls . _reg_clsctx_ #NEWLINE# clsctx &= ( ~ comtypes . CLSCTX_INPROC ) #NEWLINE# oledll . ole32 . CoRegisterClassObject ( byref ( comtypes . GUID ( self . _cls . _reg_clsid_ ) ) , ptr , clsctx , regcls , byref ( cookie ) ) #NEWLINE# self . cookie = cookie