473,395 Members | 1,681 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

C# - Windows Mobile 5.0/6.0 Programming - Setting Alarm Clock

Heya,

I can't seem to find any references to a way that I can set the system alarm clock.

I am using a Motorola Q which is running Windows Mobile 5.0 Smartphone.

I am not sure if the best way to do this woudl be directly through a microsoft.windowsmobile class or maybe directly through maybe like just altering the registry somewhere (I have tried to locate the alarm time in registry and cannot find it either).

I basically want to be able to press a button and change the alarm time.

Any help would be appreciated!!

Scott
Jan 2 '08 #1
8 16810
RedSon
5,000 Expert 4TB
Heya,

I can't seem to find any references to a way that I can set the system alarm clock.

I am using a Motorola Q which is running Windows Mobile 5.0 Smartphone.

I am not sure if the best way to do this woudl be directly through a microsoft.windowsmobile class or maybe directly through maybe like just altering the registry somewhere (I have tried to locate the alarm time in registry and cannot find it either).

I basically want to be able to press a button and change the alarm time.

Any help would be appreciated!!

Scott
Alarm times are not a function of the OS or registry. Alarm applications allow the user to enter in a time in the future then when the system time matches the user inputed future time then they make an alarm. You won't find any Microsoft WM5 APIs or Registry entries for alarms.
Jan 2 '08 #2
I understand, however, there are simple applications on the net such as "EzAlarm" that do exactly what I want to do. Have a simple GUI that changes the actual System Alarm time--so there is definitely a way without writing your own alarm application

Anyone? ;)
Jan 3 '08 #3
RedSon
5,000 Expert 4TB
I understand, however, there are simple applications on the net such as "EzAlarm" that do exactly what I want to do. Have a simple GUI that changes the actual System Alarm time--so there is definitely a way without writing your own alarm application

Anyone? ;)
There is no such thing as "System Alarm time" I don't know what you are talking about. That application EzAlarm allows the user to enter in a time and when the system time is equal to or greater then the user entered time it makes a noise or vibrates or something. The OS does not keep track of alarms, it does not have an "alarm time" there is no such thing as an alarm to the OS, it has system time. Do I need to repeat that again? I'll bold it this time... There is no such thing as System Alarm time.
Jan 3 '08 #4
NeoPa
32,556 Expert Mod 16PB
HamBones,

Your basic premise would simply point to there being an application written to handle this. I see no reason to conclude (as you have done) that there is necessarily some sort of standard API that supports it.
In short - there is definitely a way if you write it into the application. I see nothing to support the contention that it must have been done with prepackaged assistance.
Jan 3 '08 #5
markmcgookin
648 Expert 512MB
HamBones,

Your basic premise would simply point to there being an application written to handle this. I see no reason to conclude (as you have done) that there is necessarily some sort of standard API that supports it.
In short - there is definitely a way if you write it into the application. I see nothing to support the contention that it must have been done with prepackaged assistance.
I have never heard of anyone tapping into a system.windows etc ... clock API.

a simple app that had a thread triggering an event every second comparing the current time to the user time seems the only way.
Jan 4 '08 #6
I hate to bump something so old, but I was searching for the same thing -- How to modify the system alarm through the registry. Despite how ridiculous you may have thought this person's post to be, there is in fact a system alarm. HKLM/Software/Microsoft/Clock/[0-2] is where it is. 0 and 1 are set via the alarm interface, whereas 2 can only be set manually via the registry.If anyone knows how, I'd be glad to hear it -- I've had to resort to setting 1 via the menu, then copying it to 2, then changing 1 back to what I want it to be.
Sep 28 '09 #7
NeoPa
32,556 Expert Mod 16PB
@NeoPa
Just to clarify my point earlier. I made no contention that such a thing was impossible, simply that the logic put forward was wholly unsupportable.

Bumping a thread with new information should never be considered a problem though, as far as I can see. If you have helpful new information then sharing it is to the benefit of all.

As for the Registry Key you mention (HKLM/Software/Microsoft/Clock/[0-2]), I find no Clock path under HKLM\Software\Microsoft on my PC. While no particular build could really be considered standard (except perhaps a virgin one), I would certainly infer that as my PC doesn't have this key then it must not be a standard OS key (That, and it's under HKLM\Software).

If anything, this seems to support the contention that the functionality is provided within a standard software package, rather than being an inbuilt facility provided by Windows.

Welcome to Bytes!
Sep 28 '09 #8
RedSon
5,000 Expert 4TB
@nemosomen
Dont feel bad bumping something. Just dont bump it if you don't have anything useful to add.

As for the registry key you are talking about, there is no information on it for alarms. The settings in that key allow you to show notification dialogs for daylight or standard time, they also allow you to enable automatic daylight savings switch-over.

There is some other anecdotal evidence that you can change the value of that key to disable the ability to change the date and time, but employees of Microsoft have denied that this is true.

The only information I could find regarding system alarms is the Clock Configuration Service Provider but it uses XML to provision the clock and alarm system. Usually this is done via OMA Client Provisioning (what used to be WAP Provisioning) and is controlled by your mobile carrier. This means that it has to be allowed by the security roles defined by the mobile operators.

You should study up on this and it's related tasks and concepts: http://msdn.microsoft.com/en-us/library/bb737261.aspx
Sep 29 '09 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Nick White [MSFT] | last post by:
Hello fellow Microsoft Windows Mobile and Embedded enthusiasts: I invite you to peruse the list below of upcoming technical chats and Webcasts offered by the Windows Mobile and Embedded Devices...
5
by: Tom | last post by:
Using multiple System.Timers.Timer objects in a Windows Service for performing multi-thread activities in a periodic fashion. Timers are AutoReset=false, to only have a single timer execution...
3
by: ankitks | last post by:
Hi guys, is there any utility available as a protection against endless_loop() something like this: alarm.set(5); //set timeout for 5 sec endless_loop(); alarm.reset(); //reset it to 0,...
4
by: =?Utf-8?B?SmF5RFA=?= | last post by:
HELP! I have a small home network setup. One Desktop for me, one dektop for my two girls, a laptop for work, my wife's laptop, and my son's laptop for college work. All in "WORKGROUP" ...
1
by: =?Utf-8?B?U2FtIE1jSW50eXJl?= | last post by:
I have a big problem - can anyone help a distressed woman here? I installed Zone Alarm Security Suite and then after a while I didn't like the software so I removed it properly, but then...
0
by: =?Utf-8?B?Q2hhcmxlcw==?= | last post by:
Like many people, I normally use Yahoo! Mail via the web and like to keep all my emails stored on the Yahoo! server. However sometimes I can’t get access to a PC/the web and I download my emails...
1
by: =?Utf-8?B?V29vZGdub21l?= | last post by:
Hi, I have use the following code to transmit a file back to the browser that worked fine on a HTC_TTyN device running windows mobile 5.0. The code executes in the onclick event of a mobilelist...
1
by: =?Utf-8?B?UmV4RWFzdA==?= | last post by:
Hi, I am making my first Windows Mobile app, a simple countdown timer for my Windows Mobile 6.1 Pocket PC (in C#). The alarm works fine in general. However, if I've let my Pocket PC sit idle for...
11
by: WinSankalp | last post by:
Which Windows mobile devices are better for programming. We are currently using HP iPAQ 910 running Windows Mobile 6.1 professional. Our applications mainly deal with ad Wi Fi communication...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.