Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3358156
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:43:05+00:00 2026-05-18T02:43:05+00:00

One of the things that I really like in Windows API is overlapped I/O.

  • 0

One of the things that I really like in Windows API is overlapped I/O. I’ve written dozens of network servers using overlapped I/O (for both sockets and files) with only a limited number of threads. I’m also a driver writer, so that I know well how overlapped I/O is implemented “behind the scenes”.

The only thing that always bothered me is that some API functions don’t support overlapped mode. For instance, creating a file (i.e. calling CreateFile) always works synchronously. This is pity, because those methods could support overlapped (asynchronous) mode as well. For instance, when a file is created (or opened) – the file system driver receives an IRP_MJ_CREATE request, for which it may (and usually does) return STATUS_PENDING.

My question is: is there an option to open the file asynchronously nevertheless? (but please don’t tell me to create another thread to open the file).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:43:06+00:00Added an answer on May 18, 2026 at 2:43 am

    I suspect that no asynchronous version exists because CreateFile is fundamentally a blocking operation: http://www.osronline.com/article.cfm?article=484 (scroll down to Creates Are Even More Cancellable):

    Creates Are Even More Cancellable

    As you can imagine,
    creates are a bit of a special
    operation within the O/S. One
    particularly interesting point is that
    they are always handled synchronously
    within the I/O Manager, so there is no
    way to send an asynchronous create
    operation. Also, in previous versions
    of the O/S, the I/O Manager performed
    a non-alertable kernel wait if the
    create request was pended from within
    a driver. Therefore, even terminating
    the thread was not enough to cancel a
    create request that the user felt was
    taking too long.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to using numpy and one thing that I really don't understand
I'm using the hyperref package in my document. One of the things that it
One thing that really bothers me about Google Code is that fact that it
I used to work in JavaScript a lot and one thing that really bothered
There is one thing I really love about LXML, and that the E builder.
It's really simple, I just want one screen. Wow, that [shiny thing] must have
i notice one nice things that a amazon provide that is load pdf data
One of the things that block objects, introduced in Snow Leopard, are good for
This is one of those things that you read once, say aha! and then
Recently I found out that there are several things that one can do to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.