3.1.5.2.3 Receiving a CPMGetQueryStatusIn Request

When the server receives a CPMGetQueryStatusIn message request from a client, the server MUST do the following:

  1. 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.

  2. Check whether the cursor handle is in a list of the client's cursor handles. If this is not the case, the server MUST report an E_FAIL (0x80004005) error.

  3. Prepare a CPMGetQueryStatusOut message. The server MUST retrieve the current query status and set it in the _Status field (see 2.2.3.11 for possible values). If this step fails for any reason, the server MUST report an error.

  4. Respond to the client with the CPMGetQueryStatusOut message.