Jump to content

KernReadFileAt: Difference between revisions

From EDM2
No edit summary
No edit summary
Line 1: Line 1:
This reads the content of a file into a buffer.
==Synopsis==
==Synopsis==
  APIRET APIENTRY KernReadFileAt(KEEhfile khfd,PVOID buf, QWORD off, ULONG nbytes, PULONG nread);
  APIRET APIENTRY KernReadFileAt(KEEhfile khfd,PVOID buf, QWORD off, ULONG nbytes, PULONG nread);
==Description==
This reads the content of a file into a buffer.


==Parameters==
==Parameters==
Line 12: Line 11:
;nread:Pointer to an [[ULONG]] to receive the number of bytes actually read.  
;nread:Pointer to an [[ULONG]] to receive the number of bytes actually read.  


[[Category:Kern]]
[[Category:KEE]]

Revision as of 21:49, 9 June 2017

This reads the content of a file into a buffer.

Synopsis

APIRET APIENTRY KernReadFileAt(KEEhfile khfd,PVOID buf, QWORD off, ULONG nbytes, PULONG nread);

Parameters

khfd
SFT pointer
buf
Buffer to read data into
off
Offset in file to start reading
nbytes
Number of bytes to read
nread
Pointer to an ULONG to receive the number of bytes actually read.