c - Citrix Virtual Channel SDK - How to return a string value from ICA client to server? -


i'm using xendesktop 5.6 (server) , citrix receiver 3.6 (client). i've used virtual channel sdk create channel between server , client , pass c-style structures , forth, using examples found here. can pass simple numeric types (ushort, etc.) between client , server setting appropriate structure field (e.g. g_pmixhd->dwretval = 1) cannot same string types (lpbytes, psz, puchar). have tried allocating memory on client and/or server, updating structure's length field , other approaches nothing seems work.

all want have client assign simple ansi/ascii string in receiving structure , have passed server. has done this? can help?

without seeing more details, i'll gues because you're using pointer-based strings.

let's have c structure has string member. member should not string, rather should byte array, , should copy string byte array before sending packet.


Comments