Export (0) Print
Expand All

4.1.10.3.8 GetNCChangesV6Reply

procedure GetNCChangesV6Reply(
  replyMessage: DRS_MSG_GETCHGREPLY,
  version: DWORD): DRS_MSG_GETCHGREPLY_V6

Informative summary of behavior: The GetNCChangesV6Reply procedure transforms a DRS_MSG_GETCHGREPLY of version 1 or 6 to a DRS_MSG_GETCHGREPLY_V6 structure.

msgReplyV6: DRS_MSG_GETCHGREPLY_V6
i: DWORD
if (version = 1) then
  msgReplyV6 := 0
  msgReplyV6 := replyMessage.V1
  
  /* Convert UPTODATE_VECTOR_V1_WIRE structure to 
   * UPTODATE_VECTOR_V2_WIRE structure. */ 
  msgReplyV6.pUpToDateVecSrc^.dwVersion := 2
  msgReplyV6.pUpToDateVecSrc^.cNumCursors :=
    replyMessage.V1.pUpToDateVecSrcV1^.cNumCursors
  for i := 0 to (replyMessage.V1.pUpToDateVecSrcV1^.cNumCursors - 1)
    msgReplyV6.pUpToDateVecSrc^.rgCursors[i] :=
        replyMessage.V1.pUpToDateVecSrcV1^.rgCursors[i]
    msgReplyV6.pUpToDateVecSrc^.rgCursors[i].timeLastSyncSuccess := 0
  endfor  
  return msgReplyV6
else
  return replyMessage.V6
endif
 
Show:
© 2014 Microsoft