Red de conocimiento informático - Problemas con los teléfonos móviles - ¿Cómo definir punteros en vb.net? ¿Cómo convertir entre punteros? ¡urgente!

¿Cómo definir punteros en vb.net? ¿Cómo convertir entre punteros? ¡urgente!

Importa System.Runtime.InteropServices

ByVal AesKey() como Byte

Dim AesKeyObj como GCHandle = GCHandle.Alloc(AesKey, GCHandleType .

Dim AesKeyPtr como IntPtr = AesKeyObj.AddrOfPinnedObject

'AesKeyPtr es un puntero a AesKey'

Si AesKeyObj.IsAllocated Entonces AesKeyObj.Free()

Si AesKeyObj.IsAllocated Entonces AesKeyObj. Free()

AesKeyPtr es un puntero a AesKey

.