MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / load_library

Method load_library

windows/winobject/process.py:700–706  ·  view source on GitHub ↗

Load the library in current process :rtype: :class:`LoadedModule`

(self, dll_path)

Source from the content-addressed store, hash-verified

698 return WinThread._from_handle(handle)
699
700 def load_library(self, dll_path):
701 """Load the library in current process
702
703 :rtype: :class:`LoadedModule`
704 """
705 dllbase = winproxy.LoadLibraryA(dll_path)
706 return [m for m in self.peb.modules if m.baseaddr == dllbase][0]
707
708 def execute(self, code, parameter=0):
709 """Execute native code ``code`` in the current thread.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected