https://github.com/joyent/libuv/blob/master/src/win/pipe.c#L267