Fix little spelling mistakes
[reactos.git] / reactos / include / dbt.h
1 #ifndef _DBT_H
2 #define _DBT_H
3 #if __GNUC__ >=3
4 #pragma GCC system_header
5 #endif
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 #define DBT_NO_DISK_SPACE 0x47
11 #define DBT_CONFIGMGPRIVATE 0x7FFF
12 #define DBT_DEVICEARRIVAL 0x8000
13 #define DBT_DEVICEQUERYREMOVE 0x8001
14 #define DBT_DEVICEQUERYREMOVEFAILED 0x8002
15 #define DBT_DEVICEREMOVEPENDING 0x8003
16 #define DBT_DEVICEREMOVECOMPLETE 0x8004
17 #define DBT_DEVICETYPESPECIFIC 0x8005
18 #define DBT_DEVTYP_OEM 0
19 #define DBT_DEVTYP_DEVNODE 1
20 #define DBT_DEVTYP_VOLUME 2
21 #define DBT_DEVTYP_PORT 3
22 #define DBT_DEVTYP_NET 4
23 #define DBT_APPYBEGIN 0
24 #define DBT_APPYEND 1
25 #define DBT_DEVNODES_CHANGED 7
26 #define DBT_QUERYCHANGECONFIG 0x17
27 #define DBT_CONFIGCHANGED 0x18
28 #define DBT_CONFIGCHANGECANCELED 0x19
29 #define DBT_MONITORCHANGE 0x1B
30 #define DBT_SHELLLOGGEDON 32
31 #define DBT_CONFIGMGAPI32 34
32 #define DBT_VXDINITCOMPLETE 35
33 #define DBT_VOLLOCKQUERYLOCK 0x8041
34 #define DBT_VOLLOCKLOCKTAKEN 0x8042
35 #define DBT_VOLLOCKLOCKFAILED 0x8043
36 #define DBT_VOLLOCKQUERYUNLOCK 0x8044
37 #define DBT_VOLLOCKLOCKRELEASED 0x8045
38 #define DBT_VOLLOCKUNLOCKFAILED 0x8046
39 #define DBT_USERDEFINED 0xFFFF
40 #define DBTF_MEDIA 1
41 #define DBTF_NET 2
42
43 /* Also defined in winuser.h */
44 #define BSM_ALLCOMPONENTS 0
45 #define BSM_APPLICATIONS 8
46 #define BSM_ALLDESKTOPS 16
47 #define BSM_INSTALLABLEDRIVERS 4
48 #define BSM_NETDRIVER 2
49 #define BSM_VXDS 1
50 #define BSF_FLUSHDISK 0x00000004
51 #define BSF_FORCEIFHUNG 0x00000020
52 #define BSF_IGNORECURRENTTASK 0x00000002
53 #define BSF_NOHANG 0x00000008
54 #define BSF_NOTIMEOUTIFNOTHUNG 0x00000040
55 #define BSF_POSTMESSAGE 0x00000010
56 #define BSF_QUERY 0x00000001
57 #if (_WIN32_WINNT >= 0x0500)
58 #define BSF_ALLOWSFW 0x00000080
59 #define BSF_SENDNOTIFYMESSAGE 0x00000100
60 #endif /* (_WIN32_WINNT >= 0x0500) */
61 #if (_WIN32_WINNT >= 0x0501)
62 #define BSF_LUID 0x00000400
63 #define BSF_RETURNHDESK 0x00000200
64 #endif /* (_WIN32_WINNT >= 0x0501) */
65
66 #define BSF_MSGSRV32ISOK_BIT 31
67 #define BSF_MSGSRV32ISOK 0x80000000
68
69 typedef struct _DEV_BROADCAST_HDR {
70 DWORD dbch_size;
71 DWORD dbch_devicetype;
72 DWORD dbch_reserved;
73 } DEV_BROADCAST_HDR,*PDEV_BROADCAST_HDR;
74 typedef struct _DEV_BROADCAST_OEM {
75 DWORD dbco_size;
76 DWORD dbco_devicetype;
77 DWORD dbco_reserved;
78 DWORD dbco_identifier;
79 DWORD dbco_suppfunc;
80 } DEV_BROADCAST_OEM,*PDEV_BROADCAST_OEM;
81 typedef struct _DEV_BROADCAST_PORT_A {
82 DWORD dbcp_size;
83 DWORD dbcp_devicetype;
84 DWORD dbcp_reserved;
85 char dbcp_name[1];
86 } DEV_BROADCAST_PORT_A, *PDEV_BROADCAST_PORT_A;
87 typedef struct _DEV_BROADCAST_PORT_W {
88 DWORD dbcp_size;
89 DWORD dbcp_devicetype;
90 DWORD dbcp_reserved;
91 wchar_t dbcp_name[1];
92 } DEV_BROADCAST_PORT_W, *PDEV_BROADCAST_PORT_W;
93 typedef struct _DEV_BROADCAST_USERDEFINED {
94 struct _DEV_BROADCAST_HDR dbud_dbh;
95 char dbud_szName[1];
96 } DEV_BROADCAST_USERDEFINED;
97 typedef struct _DEV_BROADCAST_VOLUME {
98 DWORD dbcv_size;
99 DWORD dbcv_devicetype;
100 DWORD dbcv_reserved;
101 DWORD dbcv_unitmask;
102 WORD dbcv_flags;
103 } DEV_BROADCAST_VOLUME,*PDEV_BROADCAST_VOLUME;
104
105 #ifdef UNICODE
106 typedef DEV_BROADCAST_PORT_W DEV_BROADCAST_PORT, *PDEV_BROADCAST_PORT;
107 #else
108 typedef DEV_BROADCAST_PORT_A DEV_BROADCAST_PORT, *PDEV_BROADCAST_PORT;
109 #endif
110
111 #ifdef __cplusplus
112 }
113 #endif
114 #endif