w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How block USB Ports in windows using vb.net

below is the solution which is working for 32 bit windows but not working 64 bit ...

//disable USB storage...

Microsoft.Win32.Registry.SetValue(@"HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUSBSTOR",
"Start", 4, Microsoft.Win32.RegistryValueKind.DWord);

//enable USB storage...

Microsoft.Win32.Registry.SetValue(@"HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUSBSTOR",
"Start", 3, Microsoft.Win32.RegistryValueKind.DWord);




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.