Microsoft DirectX 8.1 (C++)

IScheduleEntries::get_AddNew

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The get_AddNew method adds a ScheduleEntry object to the collection.

Syntax

HRESULT get_AddNew(
  DATE  dtStart,
  DATE  dtEnd,
  IService*  pservice,
  IProgram*  pprog,
  IScheduleEntry**  ppVal
);

Parameters

dtStart

[in]  Specifies the start time.

dtEnd

[in]  Specifies the end time.

pservice

[in]  Specifies the IService interface of a Service object associated with this entry.

pprog

[in]  Specifies the IProgram interface of a Program object associated with this entry.

ppVal

[out]  Address of a variable to receive a pointer to the IScheduleEntry interface of the object.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.
E_OUTOFMEMORY There was not sufficient memory to create a new object.
E_POINTER Data cannot be read from or written to a supplied address.

Remarks

This method is valid only for collections returned by using IGuideStore::get_ScheduleEntries.

See Also