EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

VariantToStringArrayAlloc function

Extracts data from a vector structure into a newly-allocated String array.

Syntax


HRESULT VariantToStringArrayAlloc(
  _In_   REFVARIANT var,
  _Out_  PWSTR **pprgsz,
  _In_   ULONG crgsz,
  _Out_  ULONG *pcElem
);

Parameters

var [in]

Type: REFVARIANT

Reference to a source variant structure.

pprgsz [out]

Type: PWSTR**

The address of a pointer to the string data extracted from source variant structure.

crgsz [in]

Type: ULONG

Specifies string array size.

pcElem [out]

Type: ULONG*

Pointer to the count of string elements extracted from source variant structure.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows XP with SP2, Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 with SP1 [desktop apps only]

Redistributable

Windows Desktop Search (WDS) 3.0

Header

Propvarutil.h

Library

Propsys.lib

DLL

Propsys.dll (version 6.0 or later)

 

 

Contribuições da comunidade

ADICIONAR
Mostrar:
© 2014 Microsoft