API Guide
601355 Rev A API Functions 2-1077
Functins
6 * This executes the VSCMD_Unlock API
call.
7*
8 * PARAMETERS:
9 * none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13 VST_BOOLEAN vst_unlock_execute(void)
14 #else
15 VST_BOOLEAN vst_unlock_execute()
16 #endif
17 {
18 VST_BOOLEAN rc = VSE_FALSE;
19 int count;
20 VST_DRIVE_ID
drivelist[VST_MAX_ITEMS];
21 VST_LOCK_ID lockid;
22 VST_COMMAND_HANDLE cmd;
23
24 /* get parameters from user */
25 printf(ā€œ*** Unlock Parameters ***\nā€
);
26 count = vst_getdrivelist(drivelist,
VST_MAX_ITEMS);
27 printf(ā€œ\nEnter Lock ID ==>ā€);
28 lockid = (VST_LOCK_ID)
atoi(gets(input));
29
30 /* create the command handle */
31 /* Note that the command handle is
not */
32 /* destoyed in this routine, but in
*/
33 /* vst_dispatch when final status is
received. */
34 cmd = VS_Command_Create();
35 if ( cmd != (VST_COMMAND_HANDLE)
NULL)
36 {