diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 7d1604efe..71bc33354 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,7 @@ +2003-04-26 Bang Jun-Young + + * include/winioctl.h (DEVICE_TYPE_FROM_CTL_CODE): Add macro. + 2003-04-26 Danny Smith * include/oaidl.h (ITypeMarshal): Add interface. diff --git a/winsup/w32api/include/winioctl.h b/winsup/w32api/include/winioctl.h index ed1a47155..3f9e71b17 100644 --- a/winsup/w32api/include/winioctl.h +++ b/winsup/w32api/include/winioctl.h @@ -11,6 +11,7 @@ extern "C" { #define HISTOGRAM_BUCKET_SIZE sizeof(HISTOGRAM_BUCKET) #define DISK_HISTOGRAM_SIZE sizeof(DISK_HISTOGRAM) #define CTL_CODE(t,f,m,a) (((t)<<16)|((a)<<14)|((f)<<2)|(m)) +#define DEVICE_TYPE_FROM_CTL_CODE(c) (((DWORD)((c)&0xffff0000))>>16) #define IOCTL_STORAGE_BASE FILE_DEVICE_MASS_STORAGE #define IOCTL_STORAGE_CHECK_VERIFY CTL_CODE(IOCTL_STORAGE_BASE, 0x0200, METHOD_BUFFERED, FILE_READ_ACCESS) #define IOCTL_STORAGE_CHECK_VERIFY2 CTL_CODE(IOCTL_STORAGE_BASE, 0x0200, METHOD_BUFFERED, FILE_ANY_ACCESS)