NetHandleGetInfo

The NetHandleGetInfo API retrieves handle-specific information about a serial device or named pipe.