Esempio n. 1
0
 public uint CTL_CODE(FILE_DEVICE_TYPE DeviceType, FILE_ACCESS_DATA Access, IO_FUNCTION Function, IO_METHOD Method)
 {
     return((((uint)DeviceType) << 16) | (((uint)Access) << 14) | (((uint)Function) << 2) | ((uint)Method));
 }
Esempio n. 2
0
 internal static uint CTL_CODE(FILE_DEVICE_TYPE DeviceType, ushort Function, IOCTL_METHOD Method,
                               IOCTL_ACCESS Access)
 {
     return((uint)(((ushort)DeviceType << 16) | ((ushort)Access << 14) | (Function << 2) | (byte)Method));
 }