Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than advapi32, prefix the name with the module name and a period.
RegDeleteKeyEx (advapi32)
.
C# Signature:
[DllImport("advapi32.dll", EntryPoint = "RegDeleteKeyEx", SetLastError = true)]
public static extern int RegDeleteKeyEx(
UIntPtr hKey,
string lpSubKey,
[MarshalAs(UnmanagedType.LPWStr)] string lpSubKey,
uint samDesired, // see Notes below
uint Reserved);
VB Signature:
Declare Function RegDeleteKeyEx Lib "advapi32.dll" (TODO) As TODO
User-Defined Types:
None.
Alternative Managed API:
Microsoft.Win32.RegistryKey.DeleteSubKey() (the non-WOW64 version)
Microsoft.Win32.RegistryKey.DeleteSubKey()
Notes:
Use only on 64-bit operating systems!
samDesired values:
Value
Meaning
KEY_WOW64_32KEY 0x0200
Delete the key from the 32-bit registry view.
KEY_WOW64_64KEY 0x0100
Delete the key from the 64-bit registry view.
Tips & Tricks:
Please add some!
Sample Code:
Please add some!
The RegDeleteKeyEx function deletes a subkey from the specified platform-specific view of the registry. Use '''only''' on 64-bit Operating Systems.
9/18/2008 9:37:25 AM - Colin-130.15.48.250
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).