API Guide
601355 Rev A API Functions 2-585
Functions
Example 1 /****************************************
*********
2*
3 * FUNCTION: vst_connectquery_execute
4*
5 * PURPOSE:
6 * This executes the VSCMD_ConnectQuery
API call.
7*
8 * PARAMETERS:
9 * none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13 VST_BOOLEAN
vst_connectquery_execute(void)
14 #else
15 VST_BOOLEAN
vst_connectquery_execute()
16 #endif
17 {
18 VST_BOOLEAN rc = VSE_FALSE;
19 VST_ENTERPRISE_ID enterprise;
20 VST_COMMAND_HANDLE cmd;
21
22 /* get parameters from user */
23 printf(ā€œ*** Connect Query parameters
***\nā€ );
24 printf(ā€œ\nEnter Enterprise ID ==>ā€);
25 enterprise = (VST_ENTERPRISE_ID)
atoi(gets(input));
26
27 /* create the command handle */
28 /* Note that the command handle is
not */
29 /* destroyed in this routine, but in
*/
30 /* vst_dispatch when final status is
received. */
31 cmd = VS_Command_Create();