• Advertisement

Archived

This topic is now archived and is closed to further replies.

_lread or ReadFile?

This topic is 5884 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
If I remember correctly, _lread calls ReadFile in the end. The ReadFile WriteFile CreateFile... functions are the native ones.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

  • Advertisement