Pierre A. Humblet wrote: > Is '!' invalid? It can easily be confused with '|'. Maybe ':' ? > I am bothered that the code uses 0 as an illegal > handle value. Is that really the case? No. /usr/include/w32api/winbase.h:232:#define INVALID_HANDLE_VALUE (HANDLE)(-1) Max.