ReadFile

E724274

ReadFile is a core Windows API function in Kernel32.dll used to read data from files, pipes, and other I/O devices into a buffer.

All labels observed (1)

Label Occurrences
ReadFile canonical 1

How this entity was disambiguated

Statements (47)

Predicate Object
instanceOf Win32 function ⓘ
callingConvention stdcall ⓘ
canReadFrom anonymous pipes ⓘ
character devices ⓘ
communications devices ⓘ
consoles ⓘ
files ⓘ
named pipes ⓘ
sockets via file handle abstractions ⓘ
category file I/O ⓘ
low-level I/O ⓘ
definedInLibrary Kernel32.dll ⓘ
linked to: Kernel32
documentationSite https://learn.microsoft.com/windows/win32/api/fileapi/nf-fileapi-readfile ⓘ
errorRetrieval GetLastError ⓘ
exportedBy Kernel32.dll ⓘ
headerDeclaredIn WinBase.h ⓘ
Windows.h ⓘ
introducedIn early versions of Win32 API ⓘ
module Kernel32 ⓘ
operatingSystem Microsoft Windows ⓘ
linked to: Windows
parameter DWORD nNumberOfBytesToRead ⓘ
HANDLE hFile ⓘ
LPDWORD lpNumberOfBytesRead ⓘ
LPOVERLAPPED lpOverlapped ⓘ
LPVOID lpBuffer ⓘ
partOf Win32 API ⓘ
Windows API ⓘ
linked to: Win32 API
purpose read data from a file or I/O device ⓘ
requires sufficient buffer size ⓘ
valid file handle ⓘ
returns BOOL ⓘ
returnValueMeaning nonzero indicates success ⓘ
zero indicates failure ⓘ
supportsFeature EOF detection via bytes read ⓘ
I/O completion ports when used with overlapped I/O ⓘ
cancellation via CancelIo or CancelIoEx ⓘ
supportsMode overlapped (asynchronous) I/O ⓘ
synchronous I/O ⓘ
supportsPlatform Windows 2000 and later ⓘ
linked to: Windows 2000

Windows 95 family ⓘ
linked to: Windows 9x

Windows NT family ⓘ
linked to: Windows NT
threadSafety depends on handle usage and synchronization ⓘ
usedWith CancelIo ⓘ
CloseHandle ⓘ
CreateFile ⓘ
ReadFileEx ⓘ
SetFilePointer ⓘ

How these facts were elicited

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

Kernel32 → exportsFunction → ReadFile ⓘ