简体   繁体   中英

CEN/XFS - Invalid Pointer

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..

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM