home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 May / MICD_2000_05.iso / CBuilder5 / INSTALL / DATA1.CAB / Program_Built_Files / Include / ioevent.h < prev    next >
C/C++ Source or Header  |  2000-02-01  |  4KB  |  136 lines

  1. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  2. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  3.  
  4. Copyright (c) 1989-1999  Microsoft Corporation
  5.  
  6. Module Name:
  7.  
  8.     ioevent.h
  9.  
  10. Abstract:
  11.  
  12.     This module contains the GUIDS and event structures for io system
  13.     initiated events.  These events are reported in kernel mode and are
  14.     available to both user mode and kernel mode clients.
  15.  
  16. Author:
  17.  
  18.     Mark Zbikowski (markz) 3/18/98
  19.  
  20.  
  21. Revision History:
  22.  
  23.  
  24. --*/
  25.  
  26. //
  27. //  Label change event.  This event is signalled upon successful completion
  28. //  of a label change.  There is no additional data.
  29. //
  30.  
  31. DEFINE_GUID( GUID_IO_VOLUME_CHANGE, 0x7373654aL, 0x812a, 0x11d0, 0xbe, 0xc7, 0x08, 0x00, 0x2b, 0xe2, 0x09, 0x2f );
  32.  
  33. //
  34. //  Volume dismount event.  This event is signalled when an attempt is made to
  35. //  dismount a volume.  There is no additional data.  Note that this will not
  36. //  necessarily be preceded by a GUID_IO_VOLUME_LOCK notification.
  37. //
  38.  
  39. DEFINE_GUID( GUID_IO_VOLUME_DISMOUNT, 0xd16a55e8L, 0x1059, 0x11d2, 0x8f, 0xfd, 0x00, 0xa0, 0xc9, 0xa0, 0x6d, 0x32 );
  40.  
  41. //
  42. //  Volume dismount failed event.  This event is signalled when a volume dismount fails.
  43. //  There is no additional data.
  44. //
  45.  
  46. DEFINE_GUID( GUID_IO_VOLUME_DISMOUNT_FAILED, 0xe3c5b178L, 0x105d, 0x11d2, 0x8f, 0xfd, 0x00, 0xa0, 0xc9, 0xa0, 0x6d, 0x32 );
  47.  
  48. //
  49. //  Volume mount event.  This event is signalled when a volume mount occurs.
  50. //  There is no additional data.
  51. //
  52.  
  53. DEFINE_GUID( GUID_IO_VOLUME_MOUNT, 0xb5804878L, 0x1a96, 0x11d2, 0x8f, 0xfd, 0x00, 0xa0, 0xc9, 0xa0, 0x6d, 0x32 );
  54.  
  55. //
  56. //  Volume lock event.  This event is signalled when an attempt is made to
  57. //  lock a volume.  There is no additional data.
  58. //
  59.  
  60. DEFINE_GUID( GUID_IO_VOLUME_LOCK, 0x50708874L, 0xc9af, 0x11d1, 0x8f, 0xef, 0x00, 0xa0, 0xc9, 0xa0, 0x6d, 0x32 );
  61.  
  62. //
  63. //  Volume lock failed event.  This event is signalled when an attempt is made to
  64. //  lock a volume, but it fails.  There is no additional data.
  65. //
  66.  
  67. DEFINE_GUID( GUID_IO_VOLUME_LOCK_FAILED, 0xae2eed10L, 0x0ba8, 0x11d2, 0x8f, 0xfb, 0x00, 0xa0, 0xc9, 0xa0, 0x6d, 0x32 );
  68.  
  69.  
  70. //
  71. //  Volume unlock event.  This event is signalled when an attempt is made to
  72. //  unlock a volume.  There is no additional data.
  73. //
  74.  
  75. DEFINE_GUID( GUID_IO_VOLUME_UNLOCK, 0x9a8c3d68L, 0xd0cb, 0x11d1, 0x8f, 0xef, 0x00, 0xa0, 0xc9, 0xa0, 0x6d, 0x32 );
  76.  
  77.  
  78. //
  79. //  Volume name change.  This event is signalled when the list of persistent
  80. //  names (like drive letters) for a volume changes.  There is no additional
  81. //  data.
  82. //
  83.  
  84. DEFINE_GUID( GUID_IO_VOLUME_NAME_CHANGE, 0x2de97f83, 0x4c06, 0x11d2, 0xa5, 0x32, 0x0, 0x60, 0x97, 0x13, 0x5, 0x5a);
  85.  
  86.  
  87. //
  88. //  Volume physical configuration change.  This event is signalled when the
  89. //  physical makeup or current physical state of the volume changes.
  90. //
  91.  
  92. DEFINE_GUID( GUID_IO_VOLUME_PHYSICAL_CONFIGURATION_CHANGE, 0x2de97f84, 0x4c06, 0x11d2, 0xa5, 0x32, 0x0, 0x60, 0x97, 0x13, 0x5, 0x5a);
  93.  
  94.  
  95. //
  96. //  Volume device interface.  This is a device interface GUID that appears
  97. //  when the device object associated with a volume is created and disappears
  98. //  when the device object associated with the volume is destroyed.
  99. //
  100.  
  101. DEFINE_GUID( GUID_IO_VOLUME_DEVICE_INTERFACE, 0x53f5630d, 0xb6bf, 0x11d0, 0x94, 0xf2, 0x00, 0xa0, 0xc9, 0x1e, 0xfb, 0x8b);
  102.  
  103.  
  104.  
  105. //
  106. //  Sent when the removable media is changed (added, removed) from a device
  107. //  (such as a CDROM, tape, changer, etc).
  108. //
  109. //  The additional data is a DWORD representing the data event.
  110. //
  111.  
  112. DEFINE_GUID( GUID_IO_MEDIA_ARRIVAL, 0xd07433c0, 0xa98e, 0x11d2, 0x91, 0x7a, 0x00, 0xa0, 0xc9, 0x06, 0x8f, 0xf3);
  113. DEFINE_GUID( GUID_IO_MEDIA_REMOVAL, 0xd07433c1, 0xa98e, 0x11d2, 0x91, 0x7a, 0x00, 0xa0, 0xc9, 0x06, 0x8f, 0xf3);
  114.  
  115. typedef struct _DEVICE_EVENT_GENERIC_DATA {
  116.     ULONG EventNumber;
  117. } DEVICE_EVENT_GENERIC_DATA, *PDEVICE_EVENT_GENERIC_DATA;
  118.  
  119.  
  120. //
  121. //  Represents any asynchronous notification coming from a device driver whose
  122. //  notification protocol is RBC
  123. //  Additional data is provided
  124.  
  125. DEFINE_GUID( GUID_DEVICE_EVENT_RBC, 0xd0744792, 0xa98e, 0x11d2, 0x91, 0x7a, 0x00, 0xa0, 0xc9, 0x06, 0x8f, 0xf3);
  126.  
  127. typedef struct _DEVICE_EVENT_RBC_DATA {
  128.     ULONG EventNumber;
  129.     UCHAR SenseQualifier;
  130.     UCHAR SenseCode;
  131.     UCHAR SenseKey;
  132.     UCHAR Reserved;
  133.     ULONG Information;
  134. } DEVICE_EVENT_RBC_DATA, *PDEVICE_EVENT_RBC_DATA;
  135. #pragma option pop /*P_O_Pop*/
  136.