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

Function ReadFile

windows/winproxy/apis/kernel32.py:488–493  ·  view source on GitHub ↗
(hFile, lpBuffer, nNumberOfBytesToRead=None, lpNumberOfBytesRead=None, lpOverlapped=None)

Source from the content-addressed store, hash-verified

486
487@Kernel32Proxy()
488def ReadFile(hFile, lpBuffer, nNumberOfBytesToRead=None, lpNumberOfBytesRead=None, lpOverlapped=None):
489 if nNumberOfBytesToRead is None:
490 nNumberOfBytesToRead = len(lpBuffer)
491 if lpOverlapped is None and lpNumberOfBytesRead is None:
492 lpNumberOfBytesRead = ctypes.byref(gdef.DWORD())
493 return ReadFile.ctypes_function(hFile, lpBuffer, nNumberOfBytesToRead, lpNumberOfBytesRead, lpOverlapped)
494
495
496@Kernel32Proxy()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected