Basic support for WIN32 serial communications API.
Modify DOSFS_OpenDevice to allow opening of COM ports.
Change Win32 comm functions to accept file handle.
Add declaration of COMSTAT32 structure.
diff --git a/include/winbase.h b/include/winbase.h
index a9fb92e..5bdb71f 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -1175,11 +1175,18 @@
#define VER_PLATFORM_WIN32_WINDOWS 1
#define VER_PLATFORM_WIN32_NT 2
-typedef struct tagCOMSTAT
+typedef struct tagCOMSTAT16
{
BYTE status;
UINT16 cbInQue WINE_PACKED;
UINT16 cbOutQue WINE_PACKED;
+} COMSTAT16,*LPCOMSTAT16;
+
+typedef struct tagCOMSTAT
+{
+ DWORD status;
+ DWORD cbInQue;
+ DWORD cbOutQue;
} COMSTAT,*LPCOMSTAT;
typedef struct tagDCB16
diff --git a/include/wine/winuser16.h b/include/wine/winuser16.h
index f10e12e..c2008cb 100644
--- a/include/wine/winuser16.h
+++ b/include/wine/winuser16.h
@@ -847,7 +847,7 @@
INT16 WINAPI wvsprintf16(LPSTR,LPCSTR,LPCVOID);
BOOL16 WINAPI DrawState16A(HDC16,HBRUSH16,DRAWSTATEPROC16,LPARAM,WPARAM16,INT16,INT16,INT16,INT16,UINT16);
BOOL16 WINAPI IsDialogMessage16(HWND16,LPMSG16);
-INT16 WINAPI GetCommError16(INT16,LPCOMSTAT);
+INT16 WINAPI GetCommError16(INT16,LPCOMSTAT16);
BOOL16 WINAPI BuildCommDCB16(LPCSTR,LPDCB16);
INT16 WINAPI GetCommState16(INT16,LPDCB16);
INT16 WINAPI SetCommState16(LPDCB16);