IMSAdminReplication::Serialize

The IMSAdminReplication::Serialize method returns data from the source computer that iissync.exe presents to the target computer by calling DeSerialize. Iissync.exe only calls these methods if the signatures differ.

virtual HRESULT STDMETHODCALLTYPE Serialize( 
    /* [in] */ DWORD dwBufferSize, 
    /* [size_is][out] */ unsigned char __RPC_FAR *pbBuffer, 
    /* [out] */ DWORD __RPC_FAR *pdwMDRequiredBufferSize 
) = 0; 
 

Parameters

dwBufferSize
Receives the size of pbBuffer.
pbBuffer
Points to a buffer that contains the data to be transferred to the target computer, if dwBufferSize is sufficient to contain your data.
pdwMDRequiredBufferSize
Points to a DWORD that contains the required buffer size for pbBuffer to contain your data. Provide this value whether or not dwBufferSize is sufficient.

Return Values

Return NOERROR if dwBufferSize is sufficient and pbBuffer contains your data. If dwBufferSize is insufficient, return HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) so that iissync.exe can call your method again with a buffer at least as large as you specify in pdwMDRequiredBufferSize. If you return any other error code from a target computer, the replication process will be terminated for that target. If you return any other error code from the source computer, the entire replication process will be terminated.

See Also

IMSAdminReplication::GetSignature, IMSAdminReplication::Propagate, IMSAdminReplication::Propagate2, IMSAdminReplication::DeSerialize