public static int CtlCode(DeviceType type, int function, DeviceControlMethod method, DeviceControlAccess access) { return ((int)type << 16) | ((int)access << 14) | (function << 2) | (int)method; }
public static int CtlCode(DeviceType type, int function, DeviceControlMethod method, DeviceControlAccess access) { return(((int)type << 16) | ((int)access << 14) | (function << 2) | (int)method); }