4.1.10.3.8 GetNCChangesNativeReply

 procedure GetNCChangesNativeReply(
   replyMessage: DRS_MSG_GETCHGREPLY,
   version: DWORD): DRS_MSG_GETCHGREPLY_NATIVE

Informative summary of behavior: The GetNCChangesNativeReply procedure transforms a DRS_MSG_GETCHGREPLY of version 1, 6, or 9 to a DRS_MSG_GETCHGREPLY_NATIVE structure. DRS_MSG_GETCHGREPLY_NATIVE is a superset of the data in DRS_MSG_GETCHGREPLY_V1, DRS_MSG_GETCHGREPLY_V6, and DRS_MSG_GETCHGREPLY_V9.

  
 msgReplyNative: DRS_MSG_GETCHGREPLY_NATIVE
 i: DWORD
  
 if (version = 1) then
   msgReplyNative := 0
   msgReplyNative := replyMessage.V1
   
   msgReplyNative.pUpToDateVecSrc^.dwVersion := 2
   msgReplyNative.pUpToDateVecSrc^.cNumCursors :=
     replyMessage.V1.pUpToDateVecSrcV1^.cNumCursors
   for i := 0 to (replyMessage.V1.pUpToDateVecSrcV1^.cNumCursors - 1)
     msgReplyNative.pUpToDateVecSrc^.rgCursors[i] :=
         replyMessage.V1.pUpToDateVecSrcV1^.rgCursors[i]
     msgReplyNative.pUpToDateVecSrc^.rgCursors[i].timeLastSyncSuccess := 0
   endfor  
 else if (version = 6) then
   msgReplyNative := 0
   msgReplyNative := replyMessage.V6
   msgReplyNative.rgValues :=
         ReplValInfNativeListFromReplValInfV1List(replyMessage.V6.rgValues)
 else
   msgReplyNative = replyMessage.V9
 endif
  
 return msgReplyNative
Show: