2003-04-26 Bang Jun-Young <junyoung@netbsd.org>
* include/winioctl.h (DEVICE_TYPE_FROM_CTL_CODE): Add macro.
This commit is contained in:
parent
aa275fe010
commit
98dc5aa07f
@ -1,3 +1,7 @@
|
||||
2003-04-26 Bang Jun-Young <junyoung@netbsd.org>
|
||||
|
||||
* include/winioctl.h (DEVICE_TYPE_FROM_CTL_CODE): Add macro.
|
||||
|
||||
2003-04-26 Danny Smith <dannysmith@users.sourceforge.net>
|
||||
|
||||
* include/oaidl.h (ITypeMarshal): Add interface.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user