Results 1 to 12 of 12

Thread: Is it possible to do a non-blocking console read?

Threaded View

  1. #12
    Addicted Member
    Join Date
    Feb 2014
    Location
    USA
    Posts
    134

    Re: Is it possible to do a non-blocking console read?

    Having all kinds of trouble today. Must be Monday!

    If I'm understanding right, would using ReadFile with SetNamedPipeHandleState do the job?

    This is the source code I went off of. It seems to have a timing issue, so you may not get anything right away. If you step-through the code though, it does read the console properly and non-blocking. I've used the technique in commercial software quite nicely.

    http://www.planet-source-code.com/vb...61262&lngWId=1
    Last edited by CrazyDude; Mar 7th, 2016 at 03:37 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width