Commit dc2461e8 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Implemented serialui dll containing CommConfigDialog,

GetDefaultCommConfig and SetDefaultCommConfig.
parent 6314ad69
......@@ -132,6 +132,7 @@ DLLS = \
rasapi32 \
riched32 \
rpcrt4 \
serialui \
setupapi \
setupx \
shell32 \
......
......@@ -6210,6 +6210,7 @@ dlls/psapi/Makefile
dlls/rasapi32/Makefile
dlls/richedit/Makefile
dlls/rpcrt4/Makefile
dlls/serialui/Makefile
dlls/setupapi/Makefile
dlls/setupx/Makefile
dlls/shell32/Makefile
......@@ -6450,6 +6451,7 @@ dlls/psapi/Makefile
dlls/rasapi32/Makefile
dlls/richedit/Makefile
dlls/rpcrt4/Makefile
dlls/serialui/Makefile
dlls/setupapi/Makefile
dlls/setupx/Makefile
dlls/shell32/Makefile
......
......@@ -1009,6 +1009,7 @@ dlls/psapi/Makefile
dlls/rasapi32/Makefile
dlls/richedit/Makefile
dlls/rpcrt4/Makefile
dlls/serialui/Makefile
dlls/setupapi/Makefile
dlls/setupx/Makefile
dlls/shell32/Makefile
......
......@@ -44,6 +44,7 @@ DLLFILES = \
rasapi32/librasapi32.@LIBEXT@ \
richedit/libriched32.@LIBEXT@ \
rpcrt4/librpcrt4.@LIBEXT@ \
serialui/libserialui.@LIBEXT@ \
setupx/libsetupx.@LIBEXT@ \
setupapi/libsetupapi.@LIBEXT@ \
shell32/libshell32.@LIBEXT@ \
......@@ -150,6 +151,7 @@ SUBDIRS = \
rasapi32 \
richedit \
rpcrt4 \
serialui \
setupx \
shell32 \
shfolder \
......@@ -304,6 +306,9 @@ libriched32.@LIBEXT@: richedit/libriched32.@LIBEXT@
librpcrt4.@LIBEXT@: rpcrt4/librpcrt4.@LIBEXT@
$(RM) $@ && $(LN_S) rpcrt4/librpcrt4.@LIBEXT@ $@
libserialui.@LIBEXT@: serialui/libserialui.@LIBEXT@
$(RM) $@ && $(LN_S) serialui/libserialui.@LIBEXT@ $@
libsetupapi.@LIBEXT@: setupapi/libsetupapi.@LIBEXT@
$(RM) $@ && $(LN_S) setupapi/libsetupapi.@LIBEXT@ $@
......
Makefile
libserialui.so.1.0
serialui.spec.c
serialui_rc.s
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = serialui
SOVERSION = 1.0
C_SRCS = \
confdlg.c
RC_SRCS= \
serialui_rc.rc
@MAKE_DLL_RULES@
### Dependencies:
#define IDD_SERIALUICONFIG 0x401
#define IDC_BAUD 0x402
#define IDC_PARITY 0x0403
#define IDC_STOP 0x0404
#define IDC_FLOW 0x0405
#define IDC_DATA 0x0406
#define ID_GETDEFAULT 0x410
#define ID_SETDEFAULT 0x411
name serialui
type win32
init SERIALUI_LibMain
rsrc serialui_rc
2 stdcall EnumPropPages(ptr ptr ptr) SERIALUI_EnumPropPages
3 stdcall drvCommConfigDialog(ptr long ptr) SERIALUI_CommConfigDialog
4 stdcall drvSetDefaultCommConfig() SERIALUI_SetDefaultCommConfig
5 stdcall drvGetDefaultCommConfig() SERIALUI_GetDefaultCommConfig
#include "windef.h"
#include "winuser.h"
#include "serialui.h"
IDD_SERIALUICONFIG DIALOG DISCARDABLE 0, 0, 160, 159
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "Properties for "
FONT 8, "MS Sans Serif"
BEGIN
LTEXT "Baud Rate", 0,5,20,55,10
COMBOBOX IDC_BAUD, 60, 20, 90, 36, CBS_DROPDOWNLIST|CBS_AUTOHSCROLL|WS_BORDER | WS_VSCROLL | WS_TABSTOP
LTEXT "Parity", 0,5,40,55,10
COMBOBOX IDC_PARITY, 60, 40, 90, 36, CBS_DROPDOWNLIST|CBS_AUTOHSCROLL|WS_BORDER | WS_VSCROLL | WS_TABSTOP
LTEXT "Flow Control", 0,5,60,55,10
COMBOBOX IDC_FLOW, 60, 60, 90, 36, CBS_DROPDOWNLIST|CBS_AUTOHSCROLL|WS_BORDER | WS_VSCROLL | WS_TABSTOP
LTEXT "Data Bits", 0,5,80,55,10
COMBOBOX IDC_DATA, 60, 80, 90, 36, CBS_DROPDOWNLIST|CBS_AUTOHSCROLL|WS_BORDER | WS_VSCROLL | WS_TABSTOP
LTEXT "Stop Bits", 0,5,100,55,10
COMBOBOX IDC_STOP, 60, 100, 90, 36, CBS_DROPDOWNLIST|CBS_AUTOHSCROLL|WS_BORDER | WS_VSCROLL | WS_TABSTOP
DEFPUSHBUTTON "OK", IDOK,30,138,50,14
PUSHBUTTON "Cancel", IDCANCEL,85,138,50,14
/* these two buttons are for testing Get/SetDefaultCommConfig */
/* PUSHBUTTON "GetDefault", ID_GETDEFAULT,30,115,50,14 */
/* PUSHBUTTON "SetDefault", ID_SETDEFAULT,85,115,50,14 */
END
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment