예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <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);
 }