The appstate also needs to be updated in binary. To get the binary value of
11, 18 has to be updated.
Following code should
RAppRunKey = RAppRunKey.OpenSubKey(@"Software\Microsoft\Clock", true);
if (RAppRunKey != null)
{
RAppRunKey.SetValue(@"AppState", new byte[] { 18 }, RegistryValueKind.Binary);
}
ProcessInfo pi = new ProcessInfo();
bool result = CreateProcess("ctlpnl.exe", "cplmain.cpl,16,1", IntPtr.Zero,
IntPtr.Zero, false, 0, IntPtr.Zero, IntPtr.Zero, null, pi);
> Thanks a lot!
> I tried CreateProcess, with ctlpnl.exe with the corresponding parameters.
[quoted text clipped - 24 lines]
> > >
> > > Please let me know