Interop.Windows.Kernel32.IoControlCodeAccess
RequiredAccess.
Indicates the type of access that a caller must request when opening the file object that represents the device (see IRP_MJ_CREATE).
FILE_ANY_ACCESS = 0
The I/O manager sends the IRP for any caller that has a handle to the file object that represents the target device object.
FILE_READ_DATA = 1
The I/O manager sends the IRP only for a caller with read access rights, allowing the underlying device driver to transfer
data from the device to system memory.
FILE_WRITE_DATA = 2
The I/O manager sends the IRP only for a caller with write access rights, allowing the underlying device driver to transfer
data from system memory to its device.