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

Function get_shared_mapping

windows/utils/winutils.py:523–527  ·  view source on GitHub ↗
(name=None, handle=INVALID_HANDLE_VALUE, size=0x1000)

Source from the content-addressed store, hash-verified

521
522
523def get_shared_mapping(name=None, handle=INVALID_HANDLE_VALUE, size=0x1000):
524 # TODO: real code
525 h = windows.winproxy.CreateFileMappingA(handle, dwMaximumSizeLow=size, lpName=name)
526 addr = windows.winproxy.MapViewOfFile(h, dwNumberOfBytesToMap=size)
527 return addr
528
529
530def create_file(name, access=gdef.GENERIC_READ, share=gdef.FILE_SHARE_READ, security=None, creation=gdef.OPEN_EXISTING, flags=gdef.FILE_ATTRIBUTE_NORMAL):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected