|
-
Mar 7th, 2016, 03:08 PM
#12
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|