Hi guys
I am trying to call the Date Time Clock in a SmartPhone 2003 device.
The following code works perfectly for Pocket PC 2003

String progPath = "Clock.exe";
ProcessInfo pi = new ProcessInfo();
CreateProcess(progPath, "", pi);

However the problem is that there is no Clock.exe in SmartPhone 2003. Please
could someone tell me the name of the exe for SmartPhone so that I could use
the same. Any help would be really appreciated.

Thanks
Regards
Madhur

Re: CreateProcess for Clock.exe in SmartPhone 2003 by riki

riki
Fri Nov 25 16:23:13 CST 2005

Madhur Nagar wrote:
> Hi guys
> I am trying to call the Date Time Clock in a SmartPhone 2003 device.
> The following code works perfectly for Pocket PC 2003
>
> String progPath = "Clock.exe";
> ProcessInfo pi = new ProcessInfo();
> CreateProcess(progPath, "", pi);
>
> However the problem is that there is no Clock.exe in SmartPhone 2003. Please
> could someone tell me the name of the exe for SmartPhone so that I could use
> the same. Any help would be really appreciated.

what are you trying to achieve? why are you starting clock.exe in the
first place?

riki

"In the beginning the Universe was created. This has made a lot of
people very angry and been widely regarded as a bad move." -- Douglas Adams
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
By Day: http://www.EmbeddedFusion.com

Re: CreateProcess for Clock.exe in SmartPhone 2003 by Madhur

Madhur
Sun Nov 27 23:38:37 CST 2005

Hi Rikki
I am trying to create an application that simply shows the user the Clock
control in order to allow him to change the date and time settings. So
instead of calling the SetLocalTime and SetTimeZoneInformation, I am trying
to call the existing Clock control.

Thanks
Regards
Madhur

"riki" <see_my_home@page> wrote in message
news:OpyOY7g8FHA.3504@TK2MSFTNGP11.phx.gbl...
> Madhur Nagar wrote:
> > Hi guys
> > I am trying to call the Date Time Clock in a SmartPhone 2003 device.
> > The following code works perfectly for Pocket PC 2003
> >
> > String progPath = "Clock.exe";
> > ProcessInfo pi = new ProcessInfo();
> > CreateProcess(progPath, "", pi);
> >
> > However the problem is that there is no Clock.exe in SmartPhone 2003.
Please
> > could someone tell me the name of the exe for SmartPhone so that I could
use
> > the same. Any help would be really appreciated.
>
> what are you trying to achieve? why are you starting clock.exe in the
> first place?
>
> riki
>
> "In the beginning the Universe was created. This has made a lot of
> people very angry and been widely regarded as a bad move." -- Douglas
Adams
> By Night:
> ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
> AbstractStart for Smartphone :
> http://homepages.inspire.net.nz/~gambit/AbstractStart/
> By Day: http://www.EmbeddedFusion.com



Re: CreateProcess for Clock.exe in SmartPhone 2003 by Paul

Paul
Mon Nov 28 10:05:14 CST 2005

I don't have any SP devices. Windows CE, as opposed to Windows Mobile,
devices, don't use a separate application for the clock settings. It's done
with a Control Panel applet. Run the clock from the UI manually and look at
the list of running EXEs with the ToolHelp support in OpenNETCF or use the
Remote Process Viewer from eVC. That should tell you what's running, at
least. Then, if it is the Control Panel, you'll have to figure out the
command line to start the correct applet.

Paul T.

"Madhur Nagar" <Madhur.Nagar@gmail.com> wrote in message
news:OFv3A498FHA.952@TK2MSFTNGP12.phx.gbl...
> Hi Rikki
> I am trying to create an application that simply shows the user the Clock
> control in order to allow him to change the date and time settings. So
> instead of calling the SetLocalTime and SetTimeZoneInformation, I am
> trying
> to call the existing Clock control.
>
> Thanks
> Regards
> Madhur
>
> "riki" <see_my_home@page> wrote in message
> news:OpyOY7g8FHA.3504@TK2MSFTNGP11.phx.gbl...
>> Madhur Nagar wrote:
>> > Hi guys
>> > I am trying to call the Date Time Clock in a SmartPhone 2003 device.
>> > The following code works perfectly for Pocket PC 2003
>> >
>> > String progPath = "Clock.exe";
>> > ProcessInfo pi = new ProcessInfo();
>> > CreateProcess(progPath, "", pi);
>> >
>> > However the problem is that there is no Clock.exe in SmartPhone 2003.
> Please
>> > could someone tell me the name of the exe for SmartPhone so that I
>> > could
> use
>> > the same. Any help would be really appreciated.
>>
>> what are you trying to achieve? why are you starting clock.exe in the
>> first place?
>>
>> riki
>>
>> "In the beginning the Universe was created. This has made a lot of
>> people very angry and been widely regarded as a bad move." -- Douglas
> Adams
>> By Night:
>> ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
>> AbstractStart for Smartphone :
>> http://homepages.inspire.net.nz/~gambit/AbstractStart/
>> By Day: http://www.EmbeddedFusion.com
>
>



Re: CreateProcess for Clock.exe in SmartPhone 2003 by riki

riki
Thu Dec 01 02:07:43 CST 2005

Madhur Nagar wrote:
> Hi Rikki
> I am trying to create an application that simply shows the user the Clock
> control in order to allow him to change the date and time settings. So
> instead of calling the SetLocalTime and SetTimeZoneInformation, I am trying
> to call the existing Clock control.

Right i follow. Sorry but in smartphone all the settings dialogs are
held together in settings.exe.

So I would suggest two things:
The best I think would be to recreate the dialog yourself. As you can
see the smartphone GUI for this is pritty basic, unlike the PPC version.

Option two. launch settings.exe do somthing like
search for the dialog called "settings" with class "Dialog", get the
child window, end it a '9' (perhaps using WM_CHAR) then a '3'
issues: 'settings' will be localised.
the position of the date and time app i'm think changes between
smartphone versions. (so 9 and 3 may need to change)
But I think Orange did somthing similar with there alarm homescreen
plugin, so it's doable.

Riki


As a computer, I find your faith in technology amusing.
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
By Day: http://www.EmbeddedFusion.com