(self)
return continue_status
This is the default UNLOAD_DLL_DEBUG_EVENT handler.

        @rtype:  DWORD
        @return: Debug event continue status.
This is the default UNLOAD_DLL_DEBUG_EVENT handler.
This is the default UNLOAD_DLL_DEBUG_EVENT handler .
def event_handler_unload_dll (self):
        '''
        This is the default UNLOAD_DLL_DEBUG_EVENT handler.

        @rtype:  DWORD
        @return: Debug event continue status.
        '''

        base     = self.dbg.u.UnloadDll.lpBaseOfDll
        unloading = None

        for system_dll in self.system_dlls:
            if system_dll.base == base:
                unloading = system_dll
                break

        # before we remove the system dll from our internal list, let's give the user a chance to do something with it.
        if self.callbacks.has_key(UNLOAD_DLL_DEBUG_EVENT):
            continue_status = self.callbacks[UNLOAD_DLL_DEBUG_EVENT](self)
        else:
            continue_status = DBG_CONTINUE

        if not unloading:
            #raise pdx("Unable to locate DLL that is being unloaded from %08x" % base, False)
            pass
        else:
            # close the open file handle to the system dll being unloaded.
            self.close_handle(unloading.handle)

            # remove the system dll from the internal list.
            self.system_dlls.remove(unloading)
            del(unloading)

        return continue_status
def event_handler_unload_dll ( self ) : base = self . dbg . u . UnloadDll . lpBaseOfDll unloading = None for system_dll in self . system_dlls : if system_dll . base == base : unloading = system_dll break # before we remove the system dll from our internal list, let's give the user a chance to do something with it. if self . callbacks . has_key ( UNLOAD_DLL_DEBUG_EVENT ) : continue_status = self . callbacks [ UNLOAD_DLL_DEBUG_EVENT ] ( self ) else : continue_status = DBG_CONTINUE if not unloading : #raise pdx("Unable to locate DLL that is being unloaded from %08x" % base, False) pass else : # close the open file handle to the system dll being unloaded. self . close_handle ( unloading . handle ) # remove the system dll from the internal list. self . system_dlls . remove ( unloading ) del ( unloading ) return continue_status