I am effectivly trying to crash-course learn LAPI. Few, if anyone, is familiar with C/C++ LAPI at my company. I am having difficulty with establishing a successful session. I have tried implementing the example LAPI calls that come with the documentation. When it tries to allocate the session using LL_SessionAlocEx per the documentation:
status = LL_SessionAllocEx(&Session, server, port, "", user_name, user_pw, NULL);
I get
"Session failure status is -2147418076 <0x80010024>
Server router packet error."
When I try to set up the configuration as follows
if (status == LL_OK) status = LL_ValueSetAssoc(config);
if (status == LL_OK) status = LL_AssocSetInteger(config, "HTTPS", LL_TRUE);
if (status == LL_OK) status = LL_AssocSetString(config, "HTTPUserName", user_name);
if (status == LL_OK) status = LL_AssocSetString(config, "HTTPPassword", user_pw);
if (status == LL_OK) status = LL_AssocSetInteger(config, "VerifyServer", LL_FALSE);
if (status == LL_OK) status = LL_AssocSetString(config, "LiveLinkCGI", "/admin/llisapi.dll");
I get:
"Session Failure Status is -2147418072 <0x80010028>
Encryption not available with this version. Could not load LLSSL library."
I cannot fidn LLSSL.dll in the bin path or anywhere in the installed files. Can I download it somewhere?
Lastly, if I simplify the configuration to just ensure a secure connection:
status = LL_SessionAllocEx(&Session, server, port, "", user_name, user_pw, LLVALUE(1));
I get the following error from my compiler:
Exception thrown at 0x1000BFA4 (lapi_base.dll) in MetaDataXfer.exe: 0xC0000005: Access violation reading location 0x00000001.
Unableto read memory.
Can someone provide me some direction?
Some of my research has suggested that the problem might be that I need to ensure that the DLL libraries I have installed are the same version. I've looked into the versions of the DLL files I do have. The majority of them are version 9.7.1.393. However, lapi_netp.dll is version 9.7.0.0, lapi_nets.dll is version 9.6.0.0, and I cannot determine the versions of lapi_sspip.dll and lapi_sspis.dll. How do I bring them all up to the same version?