API Guide
2-882 API Functions 601355 Rev A
16 #endif
17 {
18 VST_BOOLEAN rc = VSE_FALSE;
19 VST_QUERY_OPTION queryopt;
20 int count;
21 VST_DRIVE_ID temp_drive_id;
22 VST_DRIVE_ID
drivelist[VST_MAX_ITEMS];
23 VST_COMMAND_HANDLE cmd;
24
25 /* get parameters from user */
26 printf(“*** Drive Query parameters
***\n” );
27 printf(“0) Query by drive list, 1)
Query all, 2) Query single
DriveID==> “ );
28 queryopt = atoi(gets(input));
29
30 if (queryopt == 0)
31 {
32 count =
vst_getdrivelist(drivelist,
VST_MAX_ITEMS);
33 }
34 else if (queryopt == 2)
35 {
36 printf(“\nEnter Drive ID to query:
“);
37 temp_drive_id =
atoi(gets(input));
38 }
39
40 /* create the command handle */
41 /* Note that the command handle is
not */
42 /* destroyed in this routine, but in
*/
43 /* vst_dispatch when final status is
received. */
44 cmd = VS_Command_Create();
45 if ( cmd != (VST_COMMAND_HANDLE)
NULL)