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:
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..
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.
User contributions licensed under CC BY-SA 3.0