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:
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 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.
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.
Respond to the client with the CPMGetQueryStatusOut message.