Ju,
There are a couple of ways that you can do this.
1.. Move or delete netcpl.cpl
2.. Write a program that looks up the key in the registry and turns on or
off the icon that would appear in the taskbar/notification area. When you
find the network connection that you are looking for change the "ShowIcon"
value to 1 to show the icon or 0 to turn it off. This is an example of
turning the icon on using VB.NET
Good luck,
Sean Gahan
cnt =
Registry.LocalMachine.OpenSubKey("SYSTEM\\ControlSet001\\Control\\Class\\{4D
36E972-E325-11CE-BFC1-08002bE10318}\\", False).SubKeyCount
For i = 0 To cnt - 1
'//if there are more than 10 network classes we need to subtract one of the
0's
'//may be off by one (skippingthe 9th key) changed from 10 to 11
If i < 10 Then
regVersion=
Registry.LocalMachine.OpenSubKey("SYSTEM\\ControlSet001\\Control\\Class\\{4D
36E972-E325-11CE-BFC1-08002bE10318}\\000" & i & "\\", False)
Else
regVersion=
Registry.LocalMachine.OpenSubKey("SYSTEM\\ControlSet001\\Control\\Class\\{4D
36E972-E325-11CE-BFC1-08002bE10318}\\00" & i & "\\", False)
End If
devDescription= CStr(regVersion.GetValue("DriverDesc"))
'//for production use the following line
If devDescription = "Satellite USB Device" Then
'//get key value, close current key and open new location
keyVal = CStr(regVersion.GetValue("NetCfgInstanceId"))
regVersion.Close()
regVersion=
Registry.LocalMachine.OpenSubKey("SYSTEM\\ControlSet001\\Control\\Network\\{
4D36E972-E325-11CE-BFC1-08002bE10318}\\" & keyVal & "\\Connection", True)
val = CStr(regVersion.GetValue("Name"))
regVersion.SetValue("ShowIcon", 1)
regVersion.Close()
End If
Next i
Ju Kim said:
Is there a way to disable the "Network Connections" window when a user
clicks on network disconnect icon? or better yet, is there a way to totally
remove the network disconnect icon?