I doubt if you can return a STRUCT, here says
" The returnType is optional, and if specified, can be any type that’s not an array, string, or handler. "
Seems there is some limitation on returning STRUCT.
You can have a look on this test application IPC_step1.rar.
I have put the string array message2 as OUTPUT of the function.