pinvoke icon indicating copy to clipboard operation
pinvoke copied to clipboard

DeviceIoControl's second parameter should be `uint`

Open AArnott opened this issue 5 years ago • 0 comments

IOCTL codes really are uint values, not int values. They are 32-bit values which consist of various fields, see https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/defining-i-o-control-codes .

Originally posted by @qmfrederik in https://github.com/dotnet/pinvoke/pull/503/files

AArnott avatar Jul 09 '20 13:07 AArnott