I am tring to get this too work:

Its the API to delete a Value.

Code:
Public Declare Function RegDeleteValue Lib "advapi32.dll" _
                        Alias "RegDeleteValueA" _
                        (ByVal hKey As Long, _
                        ByVal lpValueName As String) As Long
can anyone tell me if this is wrong ??