API Guide
2-90 API Functions 601355 Rev A
71 {
72 comphandletable =
VS_Table_Create(VSE_COMPONENT_HAN
DLE, count);
73 if (comphandletable ==
(VST_TABLE_HANDLE) NULL)
74 {
75 return (VSE_FALSE);
76 }
77 for (i = 0; i < count; i++)
78 {
79 printf(“Enter row #%d:”, i +
1);
80 CompID[0] = (short)
atoi(gets(input));
81 printf(“Enter column #%d:”, i +
1);
82 CompID[1] = (short)
atoi(gets(input));
83 CompID[2] = 0;
84 CompID[3] = 0;
85 comphandle =
VS_Component_Create();
86 VS_Component_SetFields(comphandle
,
87 VSID_COMP_TYPE,
CompType,
88 VSID_COMP_ID,
CompID,
89 VSID_ENDFIELD);
90 VS_Table_AddEntry(comphandletable
,comphandle);
91 }
92 VSCMD_ModifyArchiveMediaClass_Set
Defaults(
93 VSID_COMPONENT_HANDLE_TABLE,
comphandletable,
94 VSID_ENDFIELD);
95 }