[SHELL32] CDrivesFolder: Implement the eject and disconnect menu items. CORE-13841
[reactos.git] / dll / win32 / serialui / serialui.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS SerialUI DLL
4 * FILE: serialui.h
5 * PURPOSE: header file
6 * PROGRAMMERS: Saveliy Tretiakov (saveliyt@mail.ru)
7 */
8
9 #define WIN32_NO_STATUS
10 #define _INC_WINDOWS
11 #define COM_NO_WINDOWS_H
12 #include <stdarg.h>
13 #include <windef.h>
14 #include <winbase.h>
15 #include <winuser.h>
16 #include <winnls.h>
17
18 #include "resource.h"
19
20 #define UNIMPLEMENTED \
21 return ERROR_CALL_NOT_IMPLEMENTED ;
22
23 #define DEFAULT_BAUD_INDEX 6
24 #define DEFAULT_BYTESIZE_INDEX 3
25 #define DEFAULT_PARITY_INDEX 2
26 #define DEFAULT_STOPBITS_INDEX 0
27
28 typedef struct _DIALOG_INFO
29 {
30 LPCWSTR lpszDevice;
31 UINT InitialFlowIndex;
32 LPCOMMCONFIG lpCC;
33 } DIALOG_INFO, *LPDIALOG_INFO;
34
35 typedef struct _PARITY_INFO
36 {
37 BYTE Parity;
38 UINT StrId;
39 } PARITY_INFO, *PPARITY_INFO;
40
41 typedef struct _STOPBIT_INFO
42 {
43 BYTE StopBit;
44 UINT StrId;
45 } STOPBIT_INFO, *PSTOPBIT_INFO;
46
47
48 /************************************
49 *
50 * EXPORTS
51 *
52 ************************************/
53
54 DWORD WINAPI drvCommConfigDialogW(LPCWSTR lpszDevice,
55 HWND hWnd,
56 LPCOMMCONFIG lpCommConfig);
57
58 DWORD WINAPI drvCommConfigDialogA(LPCSTR lpszDevice,
59 HWND hWnd,
60 LPCOMMCONFIG lpCommConfig);
61
62 DWORD WINAPI drvSetDefaultCommConfigW(LPCWSTR lpszDevice,
63 LPCOMMCONFIG lpCommConfig,
64 DWORD dwSize);
65
66 DWORD WINAPI drvSetDefaultCommConfigA(LPCSTR lpszDevice,
67 LPCOMMCONFIG lpCommConfig,
68 DWORD dwSize);
69
70 DWORD WINAPI drvGetDefaultCommConfigW(LPCWSTR lpszDevice,
71 LPCOMMCONFIG lpCommConfig,
72 LPDWORD lpdwSize);
73
74 DWORD WINAPI drvGetDefaultCommConfigA(LPCSTR lpszDevice,
75 LPCOMMCONFIG lpCommConfig,
76 LPDWORD lpdwSize);
77
78
79 /************************************
80 *
81 * INTERNALS
82 *
83 ************************************/
84
85 INT_PTR
86 CALLBACK
87 CommDlgProc(
88 HWND hDlg,
89 UINT Msg,
90 WPARAM wParam,
91 LPARAM lParam);
92
93 VOID OkButton(HWND hDlg);
94
95