ReactOS  0.4.15-dev-499-g1f31905
serialui.c File Reference
#include "serialui.h"
Include dependency graph for serialui.c:

Go to the source code of this file.

Functions

BOOL WINAPI DllMain (HINSTANCE hInstance, DWORD dwReason, LPVOID reserved)
 
DWORD WINAPI drvCommConfigDialogW (LPCWSTR lpszDevice, HWND hWnd, LPCOMMCONFIG lpCommConfig)
 
DWORD WINAPI drvCommConfigDialogA (LPCSTR lpszDevice, HWND hWnd, LPCOMMCONFIG lpCommConfig)
 
DWORD WINAPI drvSetDefaultCommConfigW (LPCWSTR lpszDevice, LPCOMMCONFIG lpCommConfig, DWORD dwSize)
 
DWORD WINAPI drvSetDefaultCommConfigA (LPCSTR lpszDevice, LPCOMMCONFIG lpCommConfig, DWORD dwSize)
 
DWORD WINAPI drvGetDefaultCommConfigW (LPCWSTR lpszDevice, LPCOMMCONFIG lpCommConfig, LPDWORD lpdwSize)
 
DWORD WINAPI drvGetDefaultCommConfigA (LPCSTR lpszDevice, LPCOMMCONFIG lpCommConfig, LPDWORD lpdwSize)
 
INT_PTR CALLBACK CommDlgProc (HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
 
VOID OkButton (HWND hDlg)
 

Variables

static HINSTANCE hDllInstance
 
const DWORD Bauds []
 
const BYTE ByteSizes []
 
const PARITY_INFO Parities []
 
const STOPBIT_INFO StopBits []
 

Function Documentation

◆ CommDlgProc()

INT_PTR CALLBACK CommDlgProc ( HWND  hDlg,
UINT  Msg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 191 of file serialui.c.

192 {
193  LPDIALOG_INFO lpDlgInfo = NULL;
194  HWND hBox;
195 
196  switch (Msg)
197  {
198 
199  case WM_INITDIALOG:
200  {
201  WCHAR wstr[255];
202  RECT rc, rcDlg, rcOwner;
203  HWND hOwner;
204  INT i;
205 
206  lpDlgInfo = (LPDIALOG_INFO)lParam;
207  SetWindowLongPtrW(hDlg, DWLP_USER, (LONG_PTR)lpDlgInfo);
208 
209  /* Set title */
210  if(LoadStringW(hDllInstance, IDS_TITLE, wstr, sizeof(wstr) / sizeof(wstr[0])))
211  {
212  SetWindowTextW(hDlg, wstr);
213  }
214 
215  /* FIXME - this won't work correctly systems with multiple monitors! */
216  if(!(hOwner = GetParent(hDlg)))
217  hOwner = GetDesktopWindow();
218 
219  /* Position dialog in the center of owner window */
220  GetWindowRect(hOwner, &rcOwner);
221  GetWindowRect(hDlg, &rcDlg);
222  CopyRect(&rc, &rcOwner);
223  OffsetRect(&rcDlg, -rcDlg.left, -rcDlg.top);
224  OffsetRect(&rc, -rc.left, -rc.top);
225  OffsetRect(&rc, -rcDlg.right, -rcDlg.bottom);
226  SetWindowPos(hDlg, HWND_TOP,
227  rcOwner.left + (rc.right / 2),
228  rcOwner.top + (rc.bottom / 2),
229  0, 0, SWP_NOSIZE);
230 
231  /* Initialize baud rate combo */
232  if(!(hBox = GetDlgItem(hDlg, IDC_BAUDRATE)))
233  EndDialog(hDlg, ERROR_CANCELLED);
234 
235  for(i = 0; Bauds[i]; i++)
236  {
237  wsprintf(wstr, L"%d", Bauds[i]);
238  SendMessageW(hBox, CB_INSERTSTRING, (WPARAM)i, (LPARAM)wstr);
239  if(Bauds[i] == lpDlgInfo->lpCC->dcb.BaudRate)
240  SendMessageW(hBox, CB_SETCURSEL, (WPARAM)i, 0);
241  }
242 
243  if(SendMessageW(hBox, CB_GETCURSEL, 0, 0) == CB_ERR)
245 
246  /* Initialize byte size combo */
247  if(!(hBox = GetDlgItem(hDlg, IDC_BYTESIZE)))
248  EndDialog(hDlg, ERROR_CANCELLED);
249 
250  for(i = 0; ByteSizes[i]; i++)
251  {
252  wsprintf(wstr, L"%d", Bauds[i]);
253  SendMessageW(hBox, CB_INSERTSTRING, (WPARAM)i, (LPARAM)wstr);
254  if(ByteSizes[i] == lpDlgInfo->lpCC->dcb.ByteSize)
255  SendMessageW(hBox, CB_SETCURSEL, (WPARAM)i, 0);
256  }
257 
258  if(SendMessageW(hBox, CB_GETCURSEL, 0, 0) == CB_ERR)
260 
261  /* Initialize parity combo */
262  if(!(hBox = GetDlgItem(hDlg, IDC_PARITY)))
263  EndDialog(hDlg, ERROR_CANCELLED);
264 
265  for(i = 0; Parities[i].StrId; i++)
266  {
267  if(LoadStringW(hDllInstance, Parities[i].StrId, wstr, sizeof(wstr) / sizeof(wstr[0])))
268  {
269  SendMessageW(hBox, CB_INSERTSTRING, (WPARAM)i, (LPARAM)wstr);
270  if(Parities[i].Parity == lpDlgInfo->lpCC->dcb.Parity)
271  SendMessageW(hBox, CB_SETCURSEL, (WPARAM)i, 0);
272  }
273  }
274 
275  if(SendMessageW(hBox, CB_GETCURSEL, 0, 0)==CB_ERR)
277 
278  /* Initialize stop bits combo */
279  if(!(hBox = GetDlgItem(hDlg, IDC_STOPBITS)))
280  EndDialog(hDlg, ERROR_CANCELLED);
281 
282  for(i = 0; StopBits[i].StrId; i++)
283  {
284  if(LoadStringW(hDllInstance, StopBits[i].StrId, wstr, sizeof(wstr) / sizeof(wstr[0])))
285  {
286  SendMessageW(hBox, CB_INSERTSTRING, (WPARAM)i, (LPARAM)wstr);
287  if(StopBits[i].StopBit == lpDlgInfo->lpCC->dcb.StopBits)
288  SendMessageW(hBox, CB_SETCURSEL, (WPARAM)i, 0);
289  }
290  }
291 
292  if(SendMessageW(hBox, CB_GETCURSEL, 0, 0)==CB_ERR)
294 
295  /* Initialize flow control combo */
296  if(!(hBox = GetDlgItem(hDlg, IDC_FLOW)))
297  EndDialog(hDlg, ERROR_CANCELLED);
298 
299  if(LoadStringW(hDllInstance, IDS_FC_NO, wstr, sizeof(wstr) / sizeof(wstr[0])))
300  {
301  SendMessageW(hBox, CB_INSERTSTRING, 0, (LPARAM)wstr);
302  SendMessageW(hBox, CB_SETCURSEL, 0, 0);
303  lpDlgInfo->InitialFlowIndex = 0;
304  }
305 
306 
307  if(LoadStringW(hDllInstance, IDS_FC_CTSRTS, wstr, sizeof(wstr) / sizeof(wstr[0])))
308  {
309  SendMessageW(hBox, CB_INSERTSTRING, 1, (LPARAM)wstr);
310  if(lpDlgInfo->lpCC->dcb.fRtsControl == RTS_CONTROL_HANDSHAKE
311  || lpDlgInfo->lpCC->dcb.fOutxCtsFlow != FALSE)
312  {
313  SendMessageW(hBox, CB_SETCURSEL, 1, 0);
314  lpDlgInfo->InitialFlowIndex = 1;
315  }
316  }
317 
318  if(LoadStringW(hDllInstance, IDS_FC_XONXOFF, wstr, sizeof(wstr) / sizeof(wstr[0])))
319  {
320  SendMessageW(hBox, CB_INSERTSTRING, 2, (LPARAM)wstr);
321  if(lpDlgInfo->lpCC->dcb.fOutX || lpDlgInfo->lpCC->dcb.fInX)
322  {
323  SendMessageW(hBox, CB_SETCURSEL, 2, 0);
324  lpDlgInfo->InitialFlowIndex = 2;
325  }
326  }
327 
328  /* Set focus */
329  SetFocus(GetDlgItem(hDlg, IDC_OKBTN));
330 
331  return FALSE;
332  } /* WM_INITDIALOG */
333 
334  case WM_COMMAND:
335  {
336  switch(wParam)
337  {
338  case IDC_CANCELBTN:
339  EndDialog(hDlg, ERROR_CANCELLED);
340  break;
341  case IDC_OKBTN:
342  OkButton(hDlg);
343  EndDialog(hDlg, ERROR_SUCCESS);
344  break;
345  }
346  return TRUE;
347  } /* WM_COMMAND */
348 
349  case WM_CLOSE:
350  {
351  EndDialog(hDlg, ERROR_CANCELLED);
352  return TRUE;
353  } /* WM_CLOSE */
354 
355  default:
356  return FALSE;
357  }
358 
359 }
#define IDC_BYTESIZE
Definition: resource.h:30
#define DEFAULT_BYTESIZE_INDEX
Definition: serialui.h:24
#define TRUE
Definition: types.h:120
#define ERROR_SUCCESS
Definition: deptool.c:10
BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int)
#define IDC_OKBTN
Definition: resource.h:21
#define IDS_FC_NO
Definition: resource.h:13
#define IDC_BAUDRATE
Definition: resource.h:29
#define RTS_CONTROL_HANDSHAKE
Definition: winbase.h:519
struct _DIALOG_INFO * LPDIALOG_INFO
LONG top
Definition: windef.h:307
#define HWND_TOP
Definition: winuser.h:1193
#define IDS_FC_CTSRTS
Definition: resource.h:14
HWND WINAPI SetFocus(_In_opt_ HWND)
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
struct @1604 Msg[]
UINT_PTR WPARAM
Definition: windef.h:207
LONG left
Definition: windef.h:306
LONG right
Definition: windef.h:308
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
int32_t INT
Definition: typedefs.h:57
#define CB_GETCURSEL
Definition: winuser.h:1925
LPCOMMCONFIG lpCC
Definition: serialui.h:32
WPARAM wParam
Definition: combotst.c:138
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define IDC_STOPBITS
Definition: resource.h:32
#define IDC_PARITY
Definition: resource.h:31
#define CB_INSERTSTRING
Definition: winuser.h:1939
smooth NULL
Definition: ftsmooth.c:416
HWND WINAPI GetDesktopWindow(void)
Definition: window.c:656
LONG_PTR LPARAM
Definition: windef.h:208
const BYTE ByteSizes[]
Definition: serialui.c:41
VOID OkButton(HWND hDlg)
Definition: serialui.c:362
#define CB_ERR
Definition: winuser.h:2410
#define IDS_TITLE
Definition: resource.h:30
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
__wchar_t WCHAR
Definition: xmlstorage.h:180
UINT InitialFlowIndex
Definition: serialui.h:31
#define WM_CLOSE
Definition: winuser.h:1603
UINT StrId
Definition: serialui.h:38
static const WCHAR L[]
Definition: oid.c:1250
#define DWLP_USER
Definition: winuser.h:866
#define CB_SETCURSEL
Definition: winuser.h:1943
#define WM_COMMAND
Definition: winuser.h:1722
#define DEFAULT_STOPBITS_INDEX
Definition: serialui.h:26
#define DEFAULT_BAUD_INDEX
Definition: serialui.h:23
#define SWP_NOSIZE
Definition: winuser.h:1230
HWND WINAPI GetParent(_In_ HWND)
#define ERROR_CANCELLED
Definition: winerror.h:726
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define IDC_FLOW
Definition: resource.h:33
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
static HINSTANCE hDllInstance
Definition: serialui.c:14
const STOPBIT_INFO StopBits[]
Definition: serialui.c:59
UINT StrId
Definition: serialui.h:44
BOOL WINAPI CopyRect(_Out_ LPRECT, _In_ LPCRECT)
#define DEFAULT_PARITY_INDEX
Definition: serial.c:29
LONG bottom
Definition: windef.h:309
#define IDS_FC_XONXOFF
Definition: resource.h:15
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SetWindowLongPtrW
Definition: winuser.h:5321
#define wsprintf
Definition: winuser.h:5840
const PARITY_INFO Parities[]
Definition: serialui.c:50
#define IDC_CANCELBTN
Definition: resource.h:22
const DWORD Bauds[]
Definition: serialui.c:22
#define WM_INITDIALOG
Definition: winuser.h:1721
LPARAM lParam
Definition: combotst.c:139

Referenced by drvCommConfigDialogW().

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hInstance,
DWORD  dwReason,
LPVOID  reserved 
)

Definition at line 75 of file serialui.c.

78 {
80  {
82  }
83  else if(dwReason==DLL_THREAD_ATTACH)
84  {
86  }
87 
88  return TRUE;
89 }
#define TRUE
Definition: types.h:120
#define DLL_THREAD_ATTACH
Definition: compat.h:121
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
DWORD dwReason
Definition: misc.cpp:154
HINSTANCE hInstance
Definition: charmap.c:20
static HINSTANCE hDllInstance
Definition: serialui.c:14

◆ drvCommConfigDialogA()

DWORD WINAPI drvCommConfigDialogA ( LPCSTR  lpszDevice,
HWND  hWnd,
LPCOMMCONFIG  lpCommConfig 
)

Definition at line 122 of file serialui.c.

125 {
126  BOOL result;
127  UINT len;
128  WCHAR *wstr;
129 
130  len = MultiByteToWideChar(CP_ACP, 0, lpszDevice, -1, NULL, 0);
131  if((wstr = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR))))
132  {
133  MultiByteToWideChar(CP_ACP, 0, lpszDevice, -1, wstr, len);
134  result = drvCommConfigDialogW(wstr, hWnd, lpCommConfig);
135  HeapFree(GetProcessHeap(), 0, wstr);
136  return result;
137  }
138  else
140 }
#define CP_ACP
Definition: compat.h:99
HWND hWnd
Definition: settings.c:17
#define ERROR_NOT_ENOUGH_MEMORY
Definition: dderror.h:7
DWORD WINAPI drvCommConfigDialogW(LPCWSTR lpszDevice, HWND hWnd, LPCOMMCONFIG lpCommConfig)
Definition: serialui.c:101
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
#define GetProcessHeap()
Definition: compat.h:404
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
__wchar_t WCHAR
Definition: xmlstorage.h:180
GLenum GLsizei len
Definition: glext.h:6722
unsigned int UINT
Definition: ndis.h:50
#define MultiByteToWideChar
Definition: compat.h:100
GLuint64EXT * result
Definition: glext.h:11304
#define HeapFree(x, y, z)
Definition: compat.h:403

◆ drvCommConfigDialogW()

DWORD WINAPI drvCommConfigDialogW ( LPCWSTR  lpszDevice,
HWND  hWnd,
LPCOMMCONFIG  lpCommConfig 
)

Definition at line 101 of file serialui.c.

104 {
105  DIALOG_INFO DialogInfo;
106 
107  if(!lpszDevice || !lpCommConfig)
108  {
110  }
111 
112  DialogInfo.lpszDevice = lpszDevice;
113  DialogInfo.lpCC = lpCommConfig;
114 
116  hWnd, CommDlgProc, (LPARAM)&DialogInfo);
117 }
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
LPCWSTR lpszDevice
Definition: serialui.h:30
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
HWND hWnd
Definition: settings.c:17
LPCOMMCONFIG lpCC
Definition: serialui.h:32
INT_PTR CALLBACK CommDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
Definition: serialui.c:191
LONG_PTR LPARAM
Definition: windef.h:208
#define IDD_COMMDLG
Definition: resource.h:19
static HINSTANCE hDllInstance
Definition: serialui.c:14
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

Referenced by drvCommConfigDialogA().

◆ drvGetDefaultCommConfigA()

DWORD WINAPI drvGetDefaultCommConfigA ( LPCSTR  lpszDevice,
LPCOMMCONFIG  lpCommConfig,
LPDWORD  lpdwSize 
)

Definition at line 175 of file serialui.c.

178 {
180 }
#define UNIMPLEMENTED
Definition: debug.h:115

◆ drvGetDefaultCommConfigW()

DWORD WINAPI drvGetDefaultCommConfigW ( LPCWSTR  lpszDevice,
LPCOMMCONFIG  lpCommConfig,
LPDWORD  lpdwSize 
)

Definition at line 165 of file serialui.c.

168 {
170 }
#define UNIMPLEMENTED
Definition: debug.h:115

◆ drvSetDefaultCommConfigA()

DWORD WINAPI drvSetDefaultCommConfigA ( LPCSTR  lpszDevice,
LPCOMMCONFIG  lpCommConfig,
DWORD  dwSize 
)

Definition at line 155 of file serialui.c.

158 {
160 }
#define UNIMPLEMENTED
Definition: debug.h:115

◆ drvSetDefaultCommConfigW()

DWORD WINAPI drvSetDefaultCommConfigW ( LPCWSTR  lpszDevice,
LPCOMMCONFIG  lpCommConfig,
DWORD  dwSize 
)

Definition at line 145 of file serialui.c.

148 {
150 }
#define UNIMPLEMENTED
Definition: debug.h:115

◆ OkButton()

VOID OkButton ( HWND  hDlg)

Definition at line 362 of file serialui.c.

363 {
364  LPDIALOG_INFO lpDlgInfo;
365  UINT Index;
366 
367  lpDlgInfo = (LPDIALOG_INFO) GetWindowLongPtrW(hDlg, DWLP_USER);
368 
369  /* Baud rate */
371  lpDlgInfo->lpCC->dcb.BaudRate = Bauds[Index];
372 
373  /* Byte size */
375  lpDlgInfo->lpCC->dcb.ByteSize = ByteSizes[Index];
376 
377  /* Parity */
379  lpDlgInfo->lpCC->dcb.Parity = Parities[Index].Parity;
380 
381  /* Stop bits */
383  lpDlgInfo->lpCC->dcb.StopBits = StopBits[Index].StopBit;
384 
385  /* Flow Control */
387  if(lpDlgInfo->InitialFlowIndex != Index)
388  {
389  switch(Index)
390  {
391  case 0: /* NO */
392  lpDlgInfo->lpCC->dcb.fDtrControl = DTR_CONTROL_DISABLE;
393  lpDlgInfo->lpCC->dcb.fRtsControl = RTS_CONTROL_DISABLE;
394  lpDlgInfo->lpCC->dcb.fOutxCtsFlow = FALSE;
395  lpDlgInfo->lpCC->dcb.fOutxDsrFlow = FALSE;
396  lpDlgInfo->lpCC->dcb.fOutX = FALSE;
397  lpDlgInfo->lpCC->dcb.fInX = FALSE;
398  break;
399  case 1: /* CTS/RTS */
400  lpDlgInfo->lpCC->dcb.fDtrControl = DTR_CONTROL_DISABLE;
401  lpDlgInfo->lpCC->dcb.fRtsControl = RTS_CONTROL_HANDSHAKE;
402  lpDlgInfo->lpCC->dcb.fOutxCtsFlow = TRUE;
403  lpDlgInfo->lpCC->dcb.fOutxDsrFlow = FALSE;
404  lpDlgInfo->lpCC->dcb.fOutX = FALSE;
405  lpDlgInfo->lpCC->dcb.fInX = FALSE;
406  break;
407  case 2: /* XON/XOFF */
408  lpDlgInfo->lpCC->dcb.fDtrControl = DTR_CONTROL_DISABLE;
409  lpDlgInfo->lpCC->dcb.fRtsControl = RTS_CONTROL_DISABLE;
410  lpDlgInfo->lpCC->dcb.fOutxCtsFlow = FALSE;
411  lpDlgInfo->lpCC->dcb.fOutxDsrFlow = FALSE;
412  lpDlgInfo->lpCC->dcb.fOutX = TRUE;
413  lpDlgInfo->lpCC->dcb.fInX = TRUE;
414  break;
415  }
416  }
417 }
#define IDC_BYTESIZE
Definition: resource.h:30
#define TRUE
Definition: types.h:120
#define IDC_BAUDRATE
Definition: resource.h:29
#define DTR_CONTROL_DISABLE
Definition: winbase.h:514
#define RTS_CONTROL_HANDSHAKE
Definition: winbase.h:519
struct _DIALOG_INFO * LPDIALOG_INFO
#define GetWindowLongPtrW
Definition: winuser.h:4804
#define RTS_CONTROL_DISABLE
Definition: winbase.h:517
#define CB_GETCURSEL
Definition: winuser.h:1925
LPCOMMCONFIG lpCC
Definition: serialui.h:32
#define IDC_STOPBITS
Definition: resource.h:32
#define IDC_PARITY
Definition: resource.h:31
BYTE Parity
Definition: serialui.h:37
const BYTE ByteSizes[]
Definition: serialui.c:41
BYTE StopBit
Definition: serialui.h:43
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
UINT InitialFlowIndex
Definition: serialui.h:31
static const UCHAR Index[8]
Definition: usbohci.c:18
#define DWLP_USER
Definition: winuser.h:866
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define IDC_FLOW
Definition: resource.h:33
unsigned int UINT
Definition: ndis.h:50
const STOPBIT_INFO StopBits[]
Definition: serialui.c:59
const PARITY_INFO Parities[]
Definition: serialui.c:50
const DWORD Bauds[]
Definition: serialui.c:22

Referenced by CommDlgProc().

Variable Documentation

◆ Bauds

const DWORD Bauds[]
Initial value:
= {
0
}
#define CBR_128000
Definition: winbase.h:455
#define CBR_1200
Definition: winbase.h:445
#define CBR_4800
Definition: winbase.h:447
#define CBR_38400
Definition: winbase.h:451
#define CBR_2400
Definition: winbase.h:446
#define CBR_600
Definition: winbase.h:444
#define CBR_19200
Definition: winbase.h:450
#define CBR_57600
Definition: winbase.h:453
#define CBR_256000
Definition: winbase.h:456
#define CBR_56000
Definition: winbase.h:452
#define CBR_14400
Definition: winbase.h:449
#define CBR_110
Definition: winbase.h:442
#define CBR_115200
Definition: winbase.h:454
#define CBR_9600
Definition: winbase.h:448
#define CBR_300
Definition: winbase.h:443

Definition at line 22 of file serialui.c.

Referenced by CommDlgProc(), and OkButton().

◆ ByteSizes

const BYTE ByteSizes[]
Initial value:
= {
5,
6,
7,
8,
0
}

Definition at line 41 of file serialui.c.

Referenced by CommDlgProc(), and OkButton().

◆ hDllInstance

HINSTANCE hDllInstance
static

Definition at line 14 of file serialui.c.

Referenced by CommDlgProc(), DllMain(), and drvCommConfigDialogW().

◆ Parities

const PARITY_INFO Parities[]
Initial value:
= {
{ 0, 0 }
}
#define MARKPARITY
Definition: winbase.h:437
#define IDS_SPACEPARITY
Definition: resource.h:7
#define EVENPARITY
Definition: winbase.h:436
#define IDS_ODDPARITY
Definition: resource.h:6
#define NOPARITY
Definition: winbase.h:434
#define IDS_NOPARITY
Definition: resource.h:5
#define ODDPARITY
Definition: winbase.h:435
#define IDS_MARKPARITY
Definition: resource.h:4
#define IDS_EVENPARITY
Definition: resource.h:3
#define SPACEPARITY
Definition: winbase.h:438

Definition at line 50 of file serialui.c.

Referenced by CommDlgProc(), and OkButton().

◆ StopBits

const STOPBIT_INFO StopBits[]
Initial value:
= {
{ 0, 0 }
}
#define IDS_ONESTOPBIT
Definition: resource.h:9
#define TWOSTOPBITS
Definition: winbase.h:441
#define ONESTOPBIT
Definition: winbase.h:439
#define ONE5STOPBITS
Definition: winbase.h:440
#define IDS_TWOSTOPBITS
Definition: resource.h:11
#define IDS_ONE5STOPBITS
Definition: resource.h:10

Definition at line 59 of file serialui.c.

Referenced by CommDlgProc(), and OkButton().