Question

I am lookibg for the DLLImport API signature for deleting a registry value.

PInvoke only has the definition for mobile devices.

I am looking for the normal Definition for windows in VB.Net.

I know I can also delete a registry value by using System.Win32.Registry but nevertheless I am looking for the API signature.

Can someone help me out?;)^

Nevermind got it:

enter image description here

Was it helpful?

Solution

Sounds like you are looking for the DllImport signature of RegDeleteKeyValue function. If so this is it

<DllImport("advapi32.dll")> _
Private Shared Function RegDeleteKeyValue( _
  ByVal handle As IntPtr, _
  ByVal keyName As String, _ 
  ByVal valueName As String) 

End Function
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top