FindNextAvailableIndex
The FindNextAvailableIndex function is used to determine the index a new instance should receive. For example, if the current indexes in use are { 01, 02, 04 }, this function would return 03 as its return value.
Parameters
-
Argument 0
-
A list of the indexes currently in use. This list can be obtained by using the FindSNAProductServices function.
Return Values
-
Return 0
-
Status of the operation:
-
STATUS_SUCCESSFUL: Operation succeeded.
-
STATUS_FAILED: Operation failed.
-
Return 1
-
First available index for the list.