3.1.5.2.5 Receiving a CPMRatioFinishedIn Request
When the server receives a CPMRatioFinishedIn message request from a client, the server MUST do the following:
Check whether the client has a query associated with it. If this is not the case, the server MUST report a STATUS_INVALID_PARAMETER (0xC000000D) error.
Check whether the cursor handle passed is in the list of the client's cursor handles. If this is not the case, the server MUST report an E_FAIL (0x80004005) error.
Prepare a CPMRatioFinishedOut message. The server MUST retrieve the client's query status and fill in the _ulNumerator, _ulDenominator, and _cRows fields. If this step fails for any reason, the server MUST report that an error was encountered.
If _cRows is equal to the last reported number of rows for this query, set _fNewRows to 0x00000000; otherwise, set it to 0x00000001.
Update the last reported number of rows for this query to the value of _cRows.
Respond to the client with the CPMRatioFinishedOut message.