Jump to content

KernReadFileAt: Difference between revisions

From EDM2
Created page with "==Synopsis== APIRET APIENTRY KernReadFileAt(KEEhfile khfd,PVOID buf, QWORD off, ULONG nbytes, PULONG nread); ==Description== This reads the content of a file into a buffer. ..."
 
 
(7 intermediate revisions by 2 users not shown)
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==
;khfd (KEEhfile) - input:SFT pointer
;buf ([[PVOID]]) - input:Buffer to read data into
;off ([[QWORD]]) - input:Offset in file to start reading
;nbytes ([[ULONG]]) - input:Number of bytes to read
;nread ([[PULONG]]) - input:Pointer to an [[ULONG]] to receive the number of bytes actually read.


khfd
[[Category:KEE]]
    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.
 
[[Category:The OS/2 API Project]]

Latest revision as of 03:35, 28 May 2025

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 (KEEhfile) - input
SFT pointer
buf (PVOID) - input
Buffer to read data into
off (QWORD) - input
Offset in file to start reading
nbytes (ULONG) - input
Number of bytes to read
nread (PULONG) - input
Pointer to an ULONG to receive the number of bytes actually read.