_get_osfhandle (msvcrt)
Last changed: ludewig.b@gmail.com-77.20.160.174

.
Summary
Retrieves the operating-system file handle that is associated with the specified file descriptor.

C# Signature:

[DllImport("msvcrt.dll", SetLastError=true)]
static extern SafeFileHandle _get_osfhandle(int fd);

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

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.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation