[This is preliminary documentation and subject to change.]
The SetReminder method sets a reminder for the specified episode. The reminder is set as a task in the Task Scheduler.
HRESULT SetReminder(
IUnknown *pEpisode,
VARIANT_BOOL bRecord
);
Value | Meaning |
---|---|
VARIANT_TRUE | Set a reminder to record a broadcast. |
VARIANT_FALSE | Set a reminder to watch a broadcast. |
If the reminder is a record reminder, you should use the Task Scheduler to set the TASK_FLAG_SYSTEM_REQUIRED flag for the reminder. This causes WebTV for Windows to tune to the channel even if the system is sleeping. Otherwise, if the system is sleeping, WebTV for Windows will not wake up to run the record reminder.
In addition, if the record reminder has an application associated with it that automates tuning the VCR this application should be specified in the StartRecordingApp and/or EndRecordingApp values under this registry key:
HKLM\Software\Microsoft\TV Services\Explorer\
The TASK_FLAG_SYSTEM_REQUIRED flag should not be set for standard show reminders. Version 1.0 of Broadcast Architecture does not handle show reminders that go off while the system is sleeping.
For more information see Setting a Show Reminder and Setting a Record Reminder.
Returns an HRESULT indicating success or failure. If the method succeeds it returns S_OK. Otherwise it returns an error code. For specific error code values see Winerror.h.
Windows NT: Unsupported.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in tvdisp.odl.
Import Library: Included as a resource in tvx.exe.
Unicode: Yes.
ITVViewer::DeleteReminder, Setting a Show Reminder, Setting a Record Reminder.