IEnumScript::Next method

Gets the script in the enumeration.

Syntax

HRESULT Next(
  [in]  unsigned long celt,
  [out] PSCRIPTINFO   rgelt,
  [out] unsigned long *pceltFetched
);

Parameters

  • celt [in]
    An unsigned integer that indicates the number of SCRIPTINFO structures that the client application wants returned. The celt parameter also specifies the number of SCRIPTINFO structures that have been allocated in the array that is specified by rgelt.

  • rgelt [out]
    A 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]
    A pointer to an 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.

Return code 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

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mlang.h

IDL

Mlang.idl

DLL

Mlang.dll

See also

IEnumScript