mickey
Tue Jul 29 23:09:01 CDT 2008
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);
"Sri" wrote:
> Thanks a lot!
> I tried CreateProcess, with ctlpnl.exe with the corresponding parameters.
> For most of the settings it worked. But I am still not able to open "Alarm".
> I am using WM 6.1 device. I am using 16 and 1 as command line parameter for
> ctlpnl.exe. Any idea why Alarm is not working?
>
> Thanks
> Sri
>
> "Peter Foot" wrote:
>
> > This article shows how to open specific pages, the identifiers are still
> > valid here but there have been some newer pages and applets added since.
> >
http://www.pocketpcdn.com/articles/controlpanel.html
> >
> > Peter
> >
> > --
> > Peter Foot
> > Microsoft Device Application Development MVP
> > peterfoot.net | appamundi.com | inthehand.com
> > APPA Mundi Ltd - Software Solutions for a Mobile World
> > In The Hand Ltd - .NET Components for Mobility
> >
> > "Sri" <Sri@discussions.microsoft.com> wrote in message
> > news:B17BE6B4-A02A-4C58-81CA-712FC38A86FC@microsoft.com...
> > >I have 2 queries in Windows mobile.
> > > 1. Is there any API available to open the sound and notifications settings
> > > with "Notifications" tab as the selected tab? By default it opens with
> > > "Sounds" tab as the selected tab. Or is it possible to open the
> > > "Notifications" separately in a window?
> > >
> > > 2. Is there any API available to open the "Clock & Alarm" settings with
> > > "Alarm" tab as the selected tab? By default it opens with "Time" tab as
> > > the
> > > selected tab. Or is it possible to open the "Alarm" separately in a
> > > window?
> > >
> > > Please let me know
> > >
> > >
> >