Function CTL_CODE [src]
https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/defining-i-o-control-codes
Prototype
pub fn CTL_CODE(deviceType: u16, function: u12, method: TransferType, access: u2) DWORD
Parameters
deviceType: u16
function: u12
method: TransferType
access: u2
Source
pub fn CTL_CODE(deviceType: u16, function: u12, method: TransferType, access: u2) DWORD {
return (@as(DWORD, deviceType) << 16) |
(@as(DWORD, access) << 14) |
(@as(DWORD, function) << 2) |
@intFromEnum(method);
}