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

Method is_dll

pythonmemorymodule/pefile.py:7231–7242  ·  view source on GitHub ↗

Check whether the file is a standard DLL. This will return true only if the image has the IMAGE_FILE_DLL flag set.

(self)

Source from the content-addressed store, hash-verified

7229 return False
7230
7231 def is_dll(self):
7232 """Check whether the file is a standard DLL.
7233
7234 This will return true only if the image has the IMAGE_FILE_DLL flag set.
7235 """
7236
7237 DLL_flag = IMAGE_CHARACTERISTICS["IMAGE_FILE_DLL"]
7238
7239 if (DLL_flag & self.FILE_HEADER.Characteristics) == DLL_flag:
7240 return True
7241
7242 return False
7243
7244 def is_driver(self):
7245 """Check whether the file is a Windows driver.

Callers 3

is_exeMethod · 0.95
execPEMethod · 0.80
load_moduleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected