xref: /reactos/sdk/include/psdk/ioevent.h (revision c2c66aff)
1 /*
2  * ioevent.h
3  *
4  * PnP Event Notification GUIDs
5  *
6  * THIS SOFTWARE IS NOT COPYRIGHTED
7  *
8  * This source code is offered for use in the public domain. You may
9  * use, modify or distribute it freely.
10  *
11  * This code is distributed in the hope that it will be useful but
12  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
13  * DISCLAIMED. This includes but is not limited to warranties of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15  *
16  */
17 
18 #ifndef _IOEVENT_H
19 #define _IOEVENT_H
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 DEFINE_GUID(GUID_IO_VOLUME_CHANGE,
26   0x7373654AL, 0x812A, 0x11D0, 0xBE, 0xC7, 0x08, 0x00, 0x2B, 0xE2, 0x09, 0x2F);
27 DEFINE_GUID(GUID_IO_VOLUME_DISMOUNT,
28   0xD16A55E8L, 0x1059, 0x11D2, 0x8F, 0xFD, 0x00, 0xA0, 0xC9, 0xA0, 0x6D, 0x32);
29 DEFINE_GUID(GUID_IO_VOLUME_DISMOUNT_FAILED,
30   0xE3C5B178L, 0x105D, 0x11D2, 0x8F, 0xFD, 0x00, 0xA0, 0xC9, 0xA0, 0x6D, 0x32);
31 DEFINE_GUID(GUID_IO_VOLUME_MOUNT,
32   0xB5804878L, 0x1A96, 0x11D2, 0x8F, 0xFD, 0x00, 0xA0, 0xC9, 0xA0, 0x6D, 0x32);
33 DEFINE_GUID(GUID_IO_VOLUME_LOCK,
34   0x50708874L, 0xC9AF, 0x11D1, 0x8F, 0xEF, 0x00, 0xA0, 0xC9, 0xA0, 0x6D, 0x32);
35 DEFINE_GUID(GUID_IO_VOLUME_LOCK_FAILED,
36   0xAE2EED10L, 0x0BA8, 0x11D2, 0x8F, 0xFB, 0x00, 0xA0, 0xC9, 0xA0, 0x6D, 0x32);
37 DEFINE_GUID(GUID_IO_VOLUME_UNLOCK,
38   0x9A8C3D68L, 0xD0CB, 0x11D1, 0x8F, 0xEF, 0x00, 0xA0, 0xC9, 0xA0, 0x6D, 0x32);
39 DEFINE_GUID(GUID_IO_VOLUME_NAME_CHANGE,
40   0x2DE97F83, 0x4C06, 0x11D2, 0xA5, 0x32, 0x00, 0x60, 0x97, 0x13, 0x05, 0x5A);
41 DEFINE_GUID(GUID_IO_VOLUME_PREPARING_EJECT,
42   0xC79EB16E, 0x0DAC, 0x4E7A, 0xA8, 0x6C, 0xB2, 0x5C, 0xEE, 0xAA, 0x88, 0xF6);
43 DEFINE_GUID(GUID_IO_VOLUME_PHYSICAL_CONFIGURATION_CHANGE,
44   0x2DE97F84, 0x4C06, 0x11D2, 0xA5, 0x32, 0x00, 0x60, 0x97, 0x13, 0x05, 0x5A);
45 DEFINE_GUID(GUID_IO_VOLUME_FVE_STATUS_CHANGE,
46   0x062998B2, 0xEE1F, 0x4B6A, 0xB8, 0x57, 0xE7, 0x6C, 0xBB, 0xE9, 0xA6, 0xDA);
47 DEFINE_GUID(GUID_IO_VOLUME_DEVICE_INTERFACE,
48   0x53F5630D, 0xB6BF, 0x11D0, 0x94, 0xF2, 0x00, 0xA0, 0xC9, 0x1E, 0xFB, 0x8B);
49 DEFINE_GUID(GUID_IO_VOLUME_CHANGE_SIZE,
50   0x3A1625BE, 0xAD03, 0x49F1, 0x8E, 0xF8, 0x6B, 0xBA, 0xC1, 0x82, 0xD1, 0xFD);
51 DEFINE_GUID(GUID_IO_MEDIA_ARRIVAL,
52   0xD07433C0, 0xA98E, 0x11D2, 0x91, 0x7A, 0x00, 0xA0, 0xC9, 0x06, 0x8F, 0xF3);
53 DEFINE_GUID(GUID_IO_MEDIA_REMOVAL,
54   0xD07433C1, 0xA98E, 0x11D2, 0x91, 0x7A, 0x00, 0xA0, 0xC9, 0x06, 0x8F, 0xF3);
55 DEFINE_GUID(GUID_IO_CDROM_EXCLUSIVE_LOCK,
56   0xBC56C139, 0x7A10, 0x47EE, 0xA2, 0x94, 0x4C, 0x6A, 0x38, 0xF0, 0x14, 0x9A);
57 DEFINE_GUID(GUID_IO_CDROM_EXCLUSIVE_UNLOCK,
58   0xA3B6D27D, 0x5E35, 0x4885, 0x81, 0xE5, 0xEE, 0x18, 0xC0, 0x0E, 0xD7, 0x79);
59 DEFINE_GUID(GUID_IO_DEVICE_BECOMING_READY,
60   0xD07433F0, 0xA98E, 0x11D2, 0x91, 0x7A, 0x00, 0xA0, 0xC9, 0x06, 0x8F, 0xF3);
61 DEFINE_GUID(GUID_IO_DEVICE_EXTERNAL_REQUEST,
62   0xD07433D0, 0xA98E, 0x11D2, 0x91, 0x7A, 0x00, 0xA0, 0xC9, 0x06, 0x8F, 0xF3);
63 DEFINE_GUID(GUID_IO_MEDIA_EJECT_REQUEST,
64   0xD07433D1, 0xA98E, 0x11D2, 0x91, 0x7A, 0x00, 0xA0, 0xC9, 0x06, 0x8F, 0xF3);
65 DEFINE_GUID(GUID_IO_DRIVE_REQUIRES_CLEANING,
66   0x7207877C, 0x90ED, 0x44E5, 0xA0, 0x00, 0x81, 0x42, 0x8D, 0x4C, 0x79, 0xBB);
67 DEFINE_GUID(GUID_IO_TAPE_ERASE,
68   0x852D11EB, 0x4BB8, 0x4507, 0x9D, 0x9B, 0x41, 0x7C, 0xC2, 0xB1, 0xB4, 0x38);
69 DEFINE_GUID(GUID_IO_DISK_CLONE_ARRIVAL,
70   0x6A61885B, 0x7C39, 0x43DD, 0x9B, 0x56, 0xB8, 0xAC, 0x22, 0xA5, 0x49, 0xAA);
71 DEFINE_GUID(GUID_IO_DISK_LAYOUT_CHANGE,
72   0x11DFF54C, 0x8469, 0x41F9, 0xB3, 0xDE, 0xEF, 0x83, 0x64, 0x87, 0xC5, 0x4A);
73 
74 typedef struct _DEVICE_EVENT_MOUNT {
75   ULONG Version;
76   ULONG Flags;
77   ULONG FileSystemNameLength;
78   ULONG FileSystemNameOffset;
79 } DEVICE_EVENT_MOUNT, *PDEVICE_EVENT_MOUNT;
80 
81 typedef struct _DEVICE_EVENT_BECOMING_READY {
82   ULONG Version;
83   ULONG Reason;
84   ULONG Estimated100msToReady;
85 } DEVICE_EVENT_BECOMING_READY, *PDEVICE_EVENT_BECOMING_READY;
86 
87 typedef struct _DEVICE_EVENT_EXTERNAL_REQUEST {
88   ULONG Version;
89   ULONG DeviceClass;
90   USHORT ButtonStatus;
91   USHORT Request;
92   LARGE_INTEGER SystemTime;
93 } DEVICE_EVENT_EXTERNAL_REQUEST, *PDEVICE_EVENT_EXTERNAL_REQUEST;
94 
95 typedef struct _DEVICE_EVENT_GENERIC_DATA {
96   ULONG EventNumber;
97 } DEVICE_EVENT_GENERIC_DATA, *PDEVICE_EVENT_GENERIC_DATA;
98 
99 typedef struct _DEVICE_EVENT_RBC_DATA {
100   ULONG EventNumber;
101   UCHAR SenseQualifier;
102   UCHAR SenseCode;
103   UCHAR SenseKey;
104   UCHAR Reserved;
105   ULONG Information;
106 } DEVICE_EVENT_RBC_DATA, *PDEVICE_EVENT_RBC_DATA;
107 
108 typedef struct _GUID_IO_DISK_CLONE_ARRIVAL_INFORMATION {
109   ULONG DiskNumber;
110 } GUID_IO_DISK_CLONE_ARRIVAL_INFORMATION, *PGUID_IO_DISK_CLONE_ARRIVAL_INFORMATION;
111 
112 #ifdef __cplusplus
113 }
114 #endif
115 
116 #endif /* _IOEVENT_H */
117