Structure $tagGDIPENCODERPARAMS
Global Const $tagGDIPENCODERPARAMS = "uint Count;" & $tagGDIPENCODERPARAM
Count | Nombre de structures $tagGDIPENCODERPARAM dans le tableau |
$tagGDIPENCODERPARAM | Premi�re structure $tagGDIPENCODERPARAM du tableau |
Utilisez ce type de code pour l'entr�e $i inf�rieure � $ibEntries dans le $tagGDIPENCODERPARAMS (Compteur)
; Calcule la taille de l'entr�e pour �tre OK sous x86 ou x64
Local $tParam = DllStructCreate ($tagGDIPENCODERPARAM)
Local $iParamSize = DllStructGetSize($TParam)
; Alloue une structure $tagGDIPENCODERPARAMS avec $ibEntries
Local $ibEntries = 3;
Local $tParams = DllStructCreate($tagGDIPENCODERPARAMS & "byte[$iEntrySize * ($ibEntries - 1))
DLLStructSetData($tParams, "Count", $ibEntries)
; R�alloue la structure d'entr�e pour pointer vers l'entr�e d�sir�e $i (base 0)
Local $i = 1;
Local $tParamI = DllStructCreate($tagGDIPENCODERPARAM, DllStructGetPtr($tParams,"GUID") + ($i * $iParamSize))
; Nous pouvons acc�der � l'entr�e s�lectionn�e $tagGDIPENCODERPARAM juste en utilisant la structure $tParam qui a �t� r�affect�
; si nous utilisons seulement une entr�e le code est simplifi�
Local $tParams = DllStructCreate($tagGDIPENCODERPARAMS)
DLLStructSetData($tParams, "Count", 1 )
; On peut acc�der � l'entr�e directement � travers la structure $tParams