The DRS_MSG_ADDENTRYREPLY_V2 structure defines the response message received from the IDL_DRSAddEntry method.

 typedef struct {
   [unique] DSNAME* pErrorObject;
   DWORD errCode;
   DWORD dsid;
   DWORD extendedErr;
   DWORD extendedData;
   USHORT problem;
   [range(0,10000)] ULONG cObjectsAdded;
   [size_is(cObjectsAdded)] ADDENTRY_REPLY_INFO* infoList;
 } DRS_MSG_ADDENTRYREPLY_V2;

pErrorObject: Null, or the identity of the object that was being added when an error occurred.

errCode: 0 if successful, otherwise a DIRERR error code (section 4.1.1.1.25).

dsid: The implementation-specific diagnostic code.

extendedErr: 0, STATUS code, or Windows error code.

extendedData: The implementation-specific diagnostic code.

problem: 0 or PROBLEM error code (section 4.1.1.1.26).

cObjectsAdded: The count of items in the infoList array.

infoList: The identities of the added objects. The item order matches the item order of values in the EntInfList field in the request structure.