IEnumScript::Clone Method     IEnumScript::Reset Method     IEnumScript Interface    
Web Workshop (Miscellaneous)

IEnumScript::Next Method


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.


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.