FREE VB.NET SOURCE CODE

31 March, 2012

[SNP] Disable / Enable Computer CD Burning [VB.NET]

 My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoCDBurning", "1", Microsoft.Win32.RegistryValueKind.DWord)  

This will disable the cd's burning property.
To enable it again, change 1 to 0.
Or use this code:

 My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", "NoCDBurning", "0", Microsoft.Win32.RegistryValueKind.DWord)