3.2.4.4.13 MoveAfterCalendar (Opnum 19)

The MoveAfterCalendar method moves a calendar event after the specified reference event. The caller can choose to control the move depending on whether the current resource policy is affected.

 [id(13), helpstring("method MoveAfterCalendar")] HRESULT MoveAfterCalendar(
   [in] BSTR bstrCalendarName,
   [in] BSTR bstrRefCalendarName,
   [in] BOOL bChangeActivePolicy
 );

bstrCalendarName: A string that specifies the name of the calendar event to be moved.

If this parameter is NULL, E_INVALIDARG MUST be returned.

bstrRefCalendarName: A string that specifies the name of a reference calendar event, after which the specified event is to be moved.

If this parameter is NULL, E_INVALIDARG MUST be returned.

bChangeActivePolicy: A Boolean value that specifies whether the configuration changes made by this method call SHOULD change the current active policy, if applicable, of the system.<70>

Value

Meaning

FALSE

0x00000000

The current active policy of the system SHOULD NOT be changed by the method call.

TRUE

0x00000001

If applicable, the current active policy of the system SHOULD be changed by the method call.

Return Values: This method returns 0x00000000 for success or a negative HRESULT value (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.

Return value/code

Description

0x00000000

S_OK

Operation successful.

0x80070057

E_INVALIDARG

One or more arguments are invalid.

0xC1FF0259

WRM_ERR_CAL_UNKNOWN_CALENDAR

The specified calendar event does not exist.

Additional IWRMCalendar interface methods are specified in section 3.2.4.4.