Fetch a handle type in FILE_GetUnixHandle.

diff --git a/server/protocol.def b/server/protocol.def
index 010d2ed..e519beb 100644
--- a/server/protocol.def
+++ b/server/protocol.def
@@ -526,7 +526,12 @@
     unsigned int access;        /* wanted access rights */
 @REPLY
     int          fd;            /* file descriptor */
+    int          type;          /* the type of file */
 @END
+#define FD_TYPE_INVALID    0
+#define FD_TYPE_DEFAULT    1
+#define FD_TYPE_CONSOLE    2
+#define FD_TYPE_OVERLAPPED 3
 
 
 /* Set a file current position */