IUIAutomation::IntSafeArrayToNativeArray-Methode (uiautomationclient.h)

Konvertiert ein SAFEARRAY von ganzen Zahlen in ein Array.

Syntax

HRESULT IntSafeArrayToNativeArray(
  [in]          SAFEARRAY *intArray,
  [out]         int       **array,
  [out, retval] int       *arrayCount
);

Parameter

[in] intArray

Typ: SAFEARRAY*

Ein Zeiger auf das zu konvertierende SAFEARRAY.

[out] array

Typ: int**

Empfängt einen Zeiger auf das zugeordnete Array.

[out, retval] arrayCount

Typ: int*

Empfängt die Anzahl der Elemente im Array.

Rückgabewert

Typ: HRESULT

Wenn diese Methode erfolgreich ist, wird S_OK zurückgegeben. Andernfalls wird ein Fehlercode HRESULT zurückgegeben.

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows 7, Windows Vista mit SP2 und Plattformupdate für Windows Vista, Windows XP mit SP3 und Plattformupdate für Windows Vista [nur Desktop-Apps]
Unterstützte Mindestversion (Server) Windows Server 2008 R2, Windows Server 2008 mit SP2 und Plattformupdate für Windows Server 2008, Windows Server 2003 mit SP2 und Plattformupdate für Windows Server 2008 [nur Desktop-Apps]
Zielplattform Windows
Kopfzeile uiautomationclient.h (include UIAutomation.h)

Weitere Informationen

Bewährte Methoden für die Verwendung sicherer Arrays

IUIAutomation

IntNativeArrayToSafeArray