For some reason I'm getting CPF3C1D when calling the API and I don't know why.
The API is defined here and the structure is defined here.
The last field of the structure is at offset 570 and is 512 bytes, which means the whole structure is 1082, which is what we're passing. It says that we need to pass 1 more byte, but I have no idea why or what it should be.
Also: the lib
option to iSrvPgm
does not work...
Update: I added a 2 byte dummy field to make it greater than 1083 bytes long and now get: "A value in the instance data at decimal offset 28 is not valid"