# Function Reference

# _WinAPI_StructToArray

Converts the structure to the array of strings

#include <WinAPIMisc.au3>
_WinAPI_StructToArray ( $tStruct [, $iItems = 0] )

## Parameters

$tStruct | The structure to convert. This structure should be same as for _WinAPI_ArrayToStruct().
$iItems | [optional] The number of strings that contains the structure. If this parameter is 0 (Default), the end of the structure determined by a double null-terminated character ("... ;{0};{0}").

## Return Value

Success: | The array of strings. The zeroth array element contains the number of strings.
Failure: | Sets the @error flag to non-zero.

## Remarks

This function works for Unicode strings only.

## Related

_WinAPI_ArrayToStruct