GetCategoryList
Top  Previous  Next

Description

Returns the array of strings containing the names of all categories and sub-categories under which the camera features are grouped.


Syntax


[VB]
Value=objActiveUSB.GetCategoryList()


[C/C++]
HRESULT GetCategoryList( VARIANT* pList );


Data Types
[VB]

Return value: Variant (SAFEARRAY)


Parameters
[C/C++]

pList [out,retval]  
Pointer to the SAFEARRAY of strings containing available categories  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB example initializes a combo box with the list of available categories:

CatLst = ActiveUSB1.GetCategoryList
For
 i = 0 
To
 
UBound
(CatLst)
Combo1.AddItem (CatLst(i))
Next
Combo1.ListIndex = 0


Remarks

The list of features grouped under a specific category can be retrieved with GetFeatureList.

Note that in C/C++ applications it is required to call SafeArrayDestroy() to delete the SAFEARRAY returned by GetCategoryList.