IEnumScript::Next

This method retrieves the script in the enumeration.

HRESULT Next( 
  ULONG celt,
  PSCRIPTINFO rgelt,
  ULONG* pceltFetched
);

Parameters

  • celt
    [in] Unsigned integer that indicates the number of SCRIPTINFO structures the client application wants returned. This parameter also specifies the number of SCRIPTINFO structures that have been allocated in the array specified by the rgelt parameter.
  • rgelt
    [out] Pointer to an array in which to return the SCRIPTINFO structures. The client application is responsible for freeing the memory allocated in the array.
  • pceltFetched
    [out] Pointer to an unsigned long integer that receives the number of SCRIPTINFO structures actually returned in the array specified by the rgelt parameter. This number can be smaller than the value specified in the celt parameter.

Return Values

The following table shows the possible return values for this method.

Value Description
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.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Mlang.h, Mlang.idl.
Link Library: Mlang.dll.

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.