Search by Tags

IOCTL HAL CLEAR REG

 

Article updated at 25 Sep 2012
Subscribe for this article updates

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