Retrieves the script in the enumeration.
Syntax
HRESULT Next( ULONG celt, PSCRIPTINFO rgelt, ULONG *pceltFetched );
Parameters
- celt
- [in] Unsigned integer that indicates the number of SCRIPTINFO structures the client application would like returned. The celt parameter also specifies the number of SCRIPTINFO structures that have been allocated in the array specified by rgelt.
- rgelt
- [out] Address of an array in which to return the SCRIPTINFO structures. The client application is responsible for freeing the memory allocated in the array.
- pceltFetched
- [out] Unsigned long integer that receives the number of SCRIPTINFO structures actually returned in rgelt. This number can be smaller than the value specified in the celt parameter.
Return Value
Returns one of the following values:
S_OK The SCRIPTINFO array has been successfully returned. S_FALSE No more information is available (for example, the end of the enumeration sequence has been reached). E_FAIL There is an error in the arguments, or an internal error has occurred.