CEN/XFS - Invalid Pointer

0

i implementing new Service Provider with CEN-XFS, but it's returning error, (-26), equal this "WFS_ERR_INVALID_POINTER".

I use java, more precisely JNA to communicate with the DLL (msxfs.dll).

I Create service provider with REGEDIT on [HKEY_USERS.DEFAULT\XFS\LOGICAL_SERVICES\MyCurrencyDispenser] with values:

Regedit image...

My interface - WFSOpen (its part to LibraryMethods).

public short WFSOpen(String lpszLogicalName, int hApp, String lpszAppID, 
int dwTraceLevel, int dwTimeOut, int dwSrvcVersionsRequired,
String lpSrvcVersion, String lpSPIVersion, String lpRequestID);

WFSOpen execute after WFSStartUp..

hResult = libMethods.WFSOpen("MyCurrencyDispenser", 0, "CDM", 0x0000001F, 0,
dwVersionsRequired, lpWFSVersionOld, lpWFSVersion, null);

WFSOpen native:

HRESULT extern WINAPI WFSOpen(LPSTR lpszLogicalName, HAPP hApp, LPSTR 
lpszAppID, DWORD dwTraceLevel, DWORD dwTimeOut, DWORD 
dwSrvcVersionsRequired, LPWFSVERSION lpSrvcVersion, LPWFSVERSION 
lpSPIVersion, LPHSERVICE lphService);

I need help, thank's..

java
dll
jna
cen-xfs
asked on Stack Overflow Jan 16, 2017 by Matheus Cardozo • edited Jan 16, 2017 by Matheus Cardozo

1 Answer

0

The below error tells you, your pointer points to wrong memory which WFSOPEN() function needed.

"WFS_ERR_INVALID_POINTER"

one of your struct or HAPP parameter need to be pointed correctly.

notice: HAPP is void* not integer type.
answered on Stack Overflow Jul 30, 2019 by smr_Mousavi • edited Jul 30, 2019 by shazyriver

User contributions licensed under CC BY-SA 3.0