[BRLTTY] using BrlApi with Visual Studioj
    Samuel Thibault 
    samuel.thibault at ens-lyon.org
       
    Wed Nov 19 12:08:32 EST 2008
    
    
  
James Teh, le Thu 20 Nov 2008 02:59:26 +1000, a écrit :
> On 20/11/2008 2:25 AM, Samuel Thibault wrote:
> > On windows, openConnection does return the HANDLE, so you can
> > WaitForMultipleObjects on it...
> I don't think WaitForSingleObject and WaitForMultipleObjects will work 
> on a named pipe. The documentation for these functions doesn't list 
> these as waitable objects. It certainly doesn't work at present; I tried 
> WaitForSingleObject on the handle and it always returns immediately 
> without waiting.
Gargl. Damn windows API :/
> I've read on forums that you might be able to get it to work by opening 
> the named pipe on the client side with the SYNCHRONIZE flag, but I'm not 
> sure if this actually works. I believe the *correct* (but painful) way 
> is to use overlapped IO and get an event object which can then be waited on.
Which completely changes the way to return that "waitable" thing, pff...
I'll see.
Samuel
    
    
More information about the BRLTTY
mailing list