Help Center

DVARIANT.ToBooleanArrayAllocmethod

Extracts an array of boolean values from DVARIANT.

COMmethodDVARIANT.INCdocumented

Syntax

FUNCTION ToBooleanArrayAlloc (BYVAL pprgf AS WINBOOL PTR PTR) AS ULONG

Parameters

NameDescription
prgfPointer to a WINBOOL PTR variable that will recive a pointer to an array of WINBOOL values extracted from the source DVARIANT.

Return value

The count of WINBOOL elements extracted from the DVARIANT.

Description

Extracts an array of boolean values from DVARIANT.

Remarks

This helper function is used when the calling application expects a DVARIANT to hold an array of WINBOOL values.

If DVARIANT is of type VT_ARRAY OR VT_BOOL, this function extracts an array of WINBOOL values into a newly allocated array. The calling application is responsible for using CoTaskMemFree to release the array pointed to by pprgf when it is no longer needed.

Reference

  • Include file DVARIANT.INC
  • Defined in AfxNova/DVARIANT.inc:1989
  • Documented in COM/DVARIANT Class.md
  • Topic: DVARIANT Class