Export (0) Print
Expand All

SCHEDULE structure

The SCHEDULE structure is a variable-length structure used with the DsReplicaAdd and DsReplicaModify functions to contain replication schedule data for a replication source.

Syntax


typedef struct _SCHEDULE {
  ULONG           Size;
  ULONG           Bandwidth;
  ULONG           NumberOfSchedules;
  SCHEDULE_HEADER Schedules[1];
} SCHEDULE, *PSCHEDULE;

Members

Size

Contains the size, in bytes, of the SCHEDULE structure, including the size of all of the elements and data of the Schedules array.

Bandwidth

Not used.

NumberOfSchedules

Contains the number of elements in the Schedules array.

Schedules

Contains an array of SCHEDULE_HEADER structures that contain the replication schedule data for the replication source. The NumberOfSchedules member contains the number of elements in this array. Currently, this array can only contain one element.

Examples

The following code example demonstrates the proper technique for calculating the Size member of this structure.


#define SCH_HEADER_COUNT 1

// Add the size of the SCHEDULE structure, which includes one SCHEDULE_HEADER structure.
DWORD dwSize = sizeof(SCHEDULE); 
    
// Add the size of all of the SCHEDULE_HEADER structures exclusive of the first structure.
dwSize += (SCH_HEADER_COUNT - 1) * sizeof(SCHEDULE_HEADER); 

// Add the size of the SCHEDULE_HEADER data for all of the structures.
dwSize += SCH_HEADER_COUNT * SCHEDULE_DATA_ENTRIES;

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Schedule.h

See also

SCHEDULE_HEADER
DsReplicaAdd
DsReplicaModify

 

 

Show:
© 2015 Microsoft