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

有帮助吗?

解决方案

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
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top