QueryBus: QueryBus sends request to get complete information from the virtual serial bus installed by VSPD.
| BOOL QueryBus( | ||
| void* inBuffer, | // pointer to buffer | |
| long sizeInBuffer, | // size of buffer | |
| void* OutBuffer, | // pointer to buffer | |
| long sizeOutBuffer, | // size of buffer | |
| ); |
Parameters:
A pointer to VSBUS_QUERY or VSBUS_QUERY_EX structures. If you want to get information about all current virtual serial ports then use VSBUS_QUERY structure and if you want to get extended information about single virtual serial pair then use VSBUS_QUERY_EX structure.
A pointer to either PORT_INFORMATION or PORT_INFORMATION_EX structures list. If you have used VSBUS_QUERY than you should get PORT_INFORMATION list and if you used VSBUS_QUERY_EX then you should get PORT_INFORMATION_EX.
Return values:
CreatePair returns TRUE if virtual serial pair was created successfully and FALSE otherwise
Code example:
Getting information about all virtual serial ports
void *Buffer; |
Getting information about a single port
|
|||