Desktop Functions: Smart Device Functions:
|
CTL_CODE (kernel32)
C# Signature:
private static UInt32 CTL_CODE(uint DeviceType, uint Function, IOCTL_METHOD Method, IOCTL_ACCESS Access) VB Signature:
TODO: please add User-Defined Types:private const uint FILE_DEVICE_UNKNOWN = 0x00000022;
private enum IOCTL_METHOD : uint Alternative Managed API:Notes:for custom use DeviceType FILE_DEVICE_UNKNOWN or 0x8000 and above for custom use Function 0x800 and above see also https://www.pinvoke.net/default.aspx/kernel32/DeviceIoControl.html Tips & Tricks:https://www.codeproject.com/Articles/9575/Driver-Development-Part-2-Introduction-to-Implemen https://www.pinvoke.net/default.aspx/coredll.kerneliocontrol Sample Code:
UInt32 IOCTL_CUSTOM_00 = CTL_CODE(FILE_DEVICE_UNKNOWN, 0x800, IOCTL_METHOD.METHOD_BUFFERED, IOCTL_ACCESS.FILE_ANY_ACCESS); Documentation: https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/defining-i-o-control-codes https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/specifying-device-types Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|