@rtype: L{Module} @return: Module object for the newly loaded DLL.
(self)
| 971 | return self.raw.u.LoadDll.lpBaseOfDll |
| 972 | |
| 973 | def get_module(self): |
| 974 | """ |
| 975 | @rtype: L{Module} |
| 976 | @return: Module object for the newly loaded DLL. |
| 977 | """ |
| 978 | lpBaseOfDll = self.get_module_base() |
| 979 | aProcess = self.get_process() |
| 980 | if aProcess.has_module(lpBaseOfDll): |
| 981 | aModule = aProcess.get_module(lpBaseOfDll) |
| 982 | else: |
| 983 | # XXX HACK |
| 984 | # For some reason the module object is missing, so make a new one. |
| 985 | aModule = Module(lpBaseOfDll, hFile=self.get_file_handle(), fileName=self.get_filename(), process=aProcess) |
| 986 | aProcess._add_module(aModule) |
| 987 | return aModule |
| 988 | |
| 989 | def get_file_handle(self): |
| 990 | """ |
no test coverage detected