J
Jeff Jeff
Hello all,
I m trying to write a little Winforms app to tweak WM6 registry.
I have no problem to read registry, but i m not able to write on it.
I get "Error on Rapi: 5" which is not very helpful.
I m using : Microsoft.WindowsMobile.Rapi;
and here is the code i use :
private void cmdUpdate_Click(object sender, EventArgs e)
{
try
{
Device objDevice = objRapiManager.Devices[cboDevices.SelectedIndex];
CERegistryKey objRegistryKey = CERegistry.CurrentUser(objDevice.Session);
objRegistryKey = objRegistryKey.OpenSubKey(@"Software\Microsoft\Shell\StartMenu");
objRegistryKey.SetValue("GridView", "1");
objRegistryKey.Close();
}
catch (System.Exception ex)
{
throw ex;
}
}
Thanks alot for your help.
Best regards
Jeff
I m trying to write a little Winforms app to tweak WM6 registry.
I have no problem to read registry, but i m not able to write on it.
I get "Error on Rapi: 5" which is not very helpful.
I m using : Microsoft.WindowsMobile.Rapi;
and here is the code i use :
private void cmdUpdate_Click(object sender, EventArgs e)
{
try
{
Device objDevice = objRapiManager.Devices[cboDevices.SelectedIndex];
CERegistryKey objRegistryKey = CERegistry.CurrentUser(objDevice.Session);
objRegistryKey = objRegistryKey.OpenSubKey(@"Software\Microsoft\Shell\StartMenu");
objRegistryKey.SetValue("GridView", "1");
objRegistryKey.Close();
}
catch (System.Exception ex)
{
throw ex;
}
}
Thanks alot for your help.
Best regards
Jeff