Search by Tags

IOCTL HAL CLEAR REG

 

Article updated at 16 May 2022
Compare with Revision

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);
}