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:

  1.  Search the ConnectedClientsIdentifiers list for the HANDLE of the named pipe over which the server has received the CPMRatioFinishedIn message. If it is not present, the server MUST report a STATUS_INVALID_PARAMETER (0xC000000D) error.

  2. Call the ClientQueryHasCursorHandle abstract interface to the GSS with the HANDLE of the named pipe over which the server has received the CPMRatioFinishedIn message as its QueryIdentifier argument and with the hCursor handle as its CursorHandle argument. <28>

  3.  Call the GetRatioFinishedParams abstract interface with the HANDLE of the named pipe over which the server has received the CPMRatioFinishedIn message as its QueryIdentifier argument and with the hCursor handle as its CursorHandle argument.

  4. Prepare a CPMRatioFinishedOut message; the server MUST set the CPMRatioFinishedOut parameters as follows.

    • ulNumerator = rdwRatioFinishedNumerator

    • ulDenominator = rdwRatioFinishedDenominator

    • cRows = cRows

    • fNewRows = fNewRows

      If this step fails for any reason, the server MUST report any error code encountered in performing the request in accordance with Win32 Error Codes in [MS-ERREF].

  5. Respond to the client with the CPMRatioFinishedOut message.

  6. Report any errors encountered during message preparation or during any abstract interface call to the GSS. Errors that are specific to this request:

    • E_OUTOFMEMORY: generated by any resource allocation failure on the server or service side.

    • STATUS_INVALID_PARAMETER: generated when any of the parameters passed in by the client is invalid. Invalid parameters are those that do not obey the corresponding data structure layout as defined for their types in this document.

    • E_ACCESSDENIED: generated when the client does not have permissions to access a needed resource such as a file result or a catalog.

    Any other error code can be returned, but it will be treated as informative only.