4 #pragma GCC system_header
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
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
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
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) */
66 #define BSF_MSGSRV32ISOK_BIT 31
67 #define BSF_MSGSRV32ISOK 0x80000000
69 typedef struct _DEV_BROADCAST_HDR
{
71 DWORD dbch_devicetype
;
73 } DEV_BROADCAST_HDR
,*PDEV_BROADCAST_HDR
;
74 typedef struct _DEV_BROADCAST_OEM
{
76 DWORD dbco_devicetype
;
78 DWORD dbco_identifier
;
80 } DEV_BROADCAST_OEM
,*PDEV_BROADCAST_OEM
;
81 typedef struct _DEV_BROADCAST_PORT_A
{
83 DWORD dbcp_devicetype
;
86 } DEV_BROADCAST_PORT_A
, *PDEV_BROADCAST_PORT_A
;
87 typedef struct _DEV_BROADCAST_PORT_W
{
89 DWORD dbcp_devicetype
;
92 } DEV_BROADCAST_PORT_W
, *PDEV_BROADCAST_PORT_W
;
93 typedef struct _DEV_BROADCAST_USERDEFINED
{
94 struct _DEV_BROADCAST_HDR dbud_dbh
;
96 } DEV_BROADCAST_USERDEFINED
;
97 typedef struct _DEV_BROADCAST_VOLUME
{
99 DWORD dbcv_devicetype
;
103 } DEV_BROADCAST_VOLUME
,*PDEV_BROADCAST_VOLUME
;
106 typedef DEV_BROADCAST_PORT_W DEV_BROADCAST_PORT
, *PDEV_BROADCAST_PORT
;
108 typedef DEV_BROADCAST_PORT_A DEV_BROADCAST_PORT
, *PDEV_BROADCAST_PORT
;