I wanna write a C++ code to delete a file from system32 (hosts for example , a font ...) , how ? I use remove() and DeleteFile()
DeleteFile("C:/Windows/System32/drivers/etc/hosts") != 0)
remove( "C:/Windows/System32/drivers/etc/hosts" ) != 0 )
but these functions does not do that