[DllImport("msvcrt.dll", SetLastError=true)]
static extern SafeFileHandle _get_osfhandle(int fd);
Do you know one? Please contribute it!
Returns an operating-system file handle if fd is valid. Otherwise, the invalid parameter handler is invoked, as described in Parameter Validation. If execution is allowed to continue, this function returns INVALID_HANDLE_VALUE (-1) and sets errno to EBADF, indicating an invalid file handle.
Please add some!
Please add some!