"Ronald H. Nicholson Jr." wrote:
> 
> [snipped]
> 
> ob dev question: is it possible for my application to set an alarm
> that the Datebook will respond to?

   (I'm not sure that sending your alarms to DateBook is safe, but
if you wanted to do it, this might work...)

   DmGetNextDatabaseByTypeCreator(true, /*newSearch*/
      &searchState,
      sysFileTApplication,
      sysFileCDatebook,
      true, /*onlyLatestVers*/
      &cardNo,
      &dbID);
   if (dbID)
      AlmSetAlarm(cardNo, dbID, fooRef, TimGetSeconds() + foo, true
/*quiet*/);

   How you handle the ref member of SysAlarmTriggeredParamType is
up to you; DateBook apparently uses it as some sort of repeat alarm
flag that gets initially set to 0.

Regards,
Daniel.


Reply via email to