So it shouldn't be defined as Pointer in the JEDI headers? I've changed it to LongWord and it works fine.