You can create an MSPP query by using the mspBuildQuery macro along with an MSPP endpoint command. You can send an MSPP query to the specified endpoint by using mspSendQuery.
The mspBuildQuery macro and mspSendQuery are described below. The video-enhanced MSPP endpoint commands and queries are described in Video endpoint MSPP commands and queries.
The mspBuildQuery macro builds a query by concatenating the endpoint filter ID with a query. It is defined as follows:
#define mspBuildQuery(filterid,queryid) ((filterid << 8) | query)
For more information about the mspBuildQuery macro, see the MSPP Service Developer's Reference Manual.
mspSendQuery sends a concatenated query to an MSPP endpoint. It is defined as follows:
DWORD mspSendQuery(MSPHD msphd, DWORD query)
Where:
msphd is a unique MSPP endpoint handle (obtained when creating the endpoint with mspCreateEndpoint).
query is a valid query produced by using the mspBuildQuery macro.
For more information about mspSendQuery, see the MSPP Service Developer's Reference Manual.