Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am maintaing an application on a Symbol MC75 scan gun running WM 6.0. A request has been made to turn the Wi-Fi on, via the registry entry. It can happen 'behind the scenes' or I can have a button on the screen to invoke it, there is no restriction there.

I have narrowed the registry entry down to HKEY_LOCAL_MACHINE\System\State\Hardware\Wifi and created a registry file to change it.

Does anyone know if there is a way to have a .reg file run upon warm boot of the gun? I thought that I read that placing it in the Application directory would work (it doesn't) and now I can't locate where I read that to begin with. I know this is possible upon a cold boot.

Having had no success there, I attempted to execute it using regmerge, but it did not work either:

ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = "regmerge";
psi.Arguments = string.Format(@"-q \Application\WiFiBackOn.reg");

Process p = Process.Start(psi);
p.WaitForExit();
p.Dispose();

Does anyone have any suggestions on resolving this? Any input is greatly appreciated.
Posted
Updated 13-Jan-10 9:06am
v2

1 solution

You can use the RegistryKey[^] class in the .Net CF to edit a registry value through code. So in your case, you could have a button that edits the registry key and then does a reboot.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900