CreateProcess for Clock.exe in SmartPhone 2003

  • Thread starter Thread starter Madhur Nagar
  • Start date Start date
M

Madhur Nagar

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
 
Madhur said:
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
 
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
 
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 said:
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
 
Back
Top