next method

void next(
  1. int lFlags,
  2. Pointer<Pointer<Utf16>> strName,
  3. Pointer<VARIANT> pVal,
  4. Pointer<Int32> pType,
  5. Pointer<Int32> plFlavor,
)

Retrieves the next property in an enumeration that started with IWbemClassObject.beginEnumeration.

Throws a WindowsException on failure.

To learn more, see learn.microsoft.com/windows/win32/api/wbemcli/nf-wbemcli-iwbemclassobject-next.

Implementation

@pragma('vm:prefer-inline')
void next(
  int lFlags,
  Pointer<Pointer<Utf16>> strName,
  Pointer<VARIANT> pVal,
  Pointer<Int32> pType,
  Pointer<Int32> plFlavor,
) {
  final hr$ = HRESULT(_NextFn(ptr, lFlags, strName, pVal, pType, plFlavor));
  if (hr$.isError) throw WindowsException(hr$);
}