summaryrefslogtreecommitdiffstats
path: root/third_party/rust/ntapi/src/winapi_local/um/winioctl.rs
blob: da490269a0056859d4a7c7e36db503da2f6c2263 (plain)
1
2
3
4
#[inline]
pub(crate) const fn CTL_CODE(DeviceType: u32, Function: u32, Method: u32, Access: u32) -> u32 {
    (DeviceType << 16) | (Access << 14) | (Function << 2) | Method
}