Directory Services |
The SCHEDULE structure is a variable-length structure used with the DsReplicaAdd and DsReplicaModify functions to contain replication schedule data for a replication source.
typedef struct _SCHEDULE {
ULONG Size;
ULONG Bandwidth;
ULONG NumberOfSchedules;
SCHEDULE_HEADER Schedules[1]; } SCHEDULE, *PSCHEDULE;
The following code example demonstrates the proper technique for calculating the Size member of this structure.
[C++]
#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;
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension
on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Schedule.h.