Skip to main content
gamedev.net
🔒 Locked

_lread or ReadFile?

Started by Mardigin 3 replies 1.9k views
Original Post
Mardigin
Mardigin
I have heard that ReadFile is better to use the _lread. Why is this? Are there any probmlems that may arrise if I use _lread? What are the advantages or disadvantages?
milou212
milou212
If I remember correctly, _lread calls ReadFile in the end. The ReadFile WriteFile CreateFile... functions are the native ones.
Martee
Martee
Well, in the end, all file handling functions call NtReadFile(), NtWriteFile(), and the other executive functions. So it probably doesn''t matter too much, except for a bit of indirection.
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
Mardigin
Mardigin
_lread is to ReadFile as _lseek is to?
milou212
milou212
_lread is to ReadFile as _lseek is to SetFilePointer

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.