Delete registry key in Win98

----- Original Message -----
From: “CG”
To: “Windows System Software Devs Interest List”
Sent: Wednesday, April 07, 2004 3:09 PM
Subject: Delete registry key in Win98

> Hello,
>
> I have to delete a registry key in my lower filter driver.
>
> HKM/System/CurrentControlSet/Services/mcxx/prod/parameters/keytodelete.
>
> I would like to delete the “keytodelete” key with ZwDeleteKey, but the
> systems crashes (Page Fault error).
>
> I delete this key when the DriverEntry routine is called by the system and
> when the device is removed.
>
> I use RtlDeleteRegistryValues to erase the entries in the /“keytodelete”/
> path. and after, I call ZwDeleteKey.
>
> I didn’t find any example to know how erase a key properly.
>
> Regards
>
> Christian
>