/// <summary> /// Constructor /// </summary> /// <param name="device_type">Type of device</param> /// <param name="function">Function number</param> /// <param name="method">Buffering method</param> /// <param name="access">Access of file handle</param> public NtIoControlCode(FileDeviceType device_type, int function, FileControlMethod method, FileControlAccess access) { DeviceType = device_type; Function = function; Method = method; Access = access; }
internal DeviceAccessCheckResult(string name, bool namespace_path, FileDeviceType device_type, AccessMask granted_access, string sddl, TokenInformation token_info) : base(name, "Device", granted_access, NtType.GetTypeByType <NtFile>().GenericMapping, sddl, typeof(FileAccessRights), false, token_info) { NamespacePath = namespace_path; DeviceType = device_type; }
public IoctlHelperStub(uint IoctlCode) { this.DeviceType = (FileDeviceType)((IoctlCode >> 16) & 0x0000ffff); this.AccessType = (AccessType)((IoctlCode >> 14) & 0x00000003); this.MethodType = (MethodType)(IoctlCode & 0x0000003); this.FunctionNumber = (UInt16)((IoctlCode >> 2) & 0x0000fff); }
internal DeviceAccessCheckResult(string name, bool namespace_path, FileDeviceType device_type, FileDeviceCharacteristics device_chars, AccessMask granted_access, SecurityDescriptor sd, TokenInformation token_info) : base(name, "Device", granted_access, NtType.GetTypeByType <NtFile>().GenericMapping, sd, typeof(FileAccessRights), true, token_info) { NamespacePath = namespace_path; DeviceType = device_type; Characteristics = device_chars; }
/// <summary> /// Constructor /// </summary> /// <param name="device_type">Type of device</param> /// <param name="function">Function number</param> /// <param name="method">Buffering method</param> /// <param name="access">Access of file handle</param> public NtIoControlCode(FileDeviceType device_type, int function, FileControlMethod method, FileControlAccess access) { _control_code = (((int)device_type) << 16) | (((int)access) << 14) | (function << 2) | ((int)method); }
public CheckResult(string path, NtStatus status, FileDeviceType device_type) { Path = path; Status = status; DeviceType = device_type; }