IOCTL HAL CLEAR REG
Define
#define IOCTL_HAL_CLEAR_REG CTL_CODE(FILE_DEVICE_HAL, 2052, METHOD_BUFFERED,FILE_ANY_ACCESS)
Sample
Clearing the registry using the IOCTL
{
#define IOCTL_HAL_CLEAR_REG CTL_CODE(FILE_DEVICE_HAL, 2052, METHOD_BUFFERED,FILE_ANY_ACCESS)
KernelIoControl(IOCTL_HAL_CLEAR_REG, NULL, 0, NULL, 0, NULL);
}