I would like to call SPSS 'backend' from Delphi. There is a DLL that I can use (it seems): `SPSSio64.DLL`. But I can not find the interface definition.

What I have found is an example in PowerBasic:

[Read and write SPSS sav files](https://forum.powerbasic.com/forum/user-to-user-discussions/source-code/44179-read-and-write-spss-sav-files)

```
DECLARE FUNCTION spssOpenRead LIB "spssio32.dll" ALIAS "spssOpenRead@8" (BYVAL fileName AS STRING, BYREF hHandle AS LONG) AS LONG
DECLARE FUNCTION spssCloseRead LIB "spssio32.dll" ALIAS "spssCloseRead@4" (BYVAL hHandle AS LONG) AS LONG

```

Since I only need functions to read and write a file (all the processing will be done via a syntax in that file), I thought that this example might be enough to deduce how to call equivalent functions from Delphi.

So the question is: how would these declarations be in Delphi (64-bit)?