I have this LW/CVI function, that gets the ObjectHandle of TestStand ActiveX server:
HRESULT CVIFUNC TS_ActiveEngine (const char *server, int supportMultithreading,
LCID locale, int reserved,
CAObjHandle *objectHandle)
{
HRESULT __result;
GUID clsid = {0xB2794EF6, 0xC0B6, 0x11D0, 0x93, 0x9C, 0x0, 0x20, 0xAF,
0x68, 0xE8, 0x93};
GUID iid = {0xB2794EF5, 0xC0B6, 0x11D0, 0x93, 0x9C, 0x0, 0x20, 0xAF, 0x68,
0xE8, 0x93};
__result = CA_GetActiveObjectByClassIdEx (&clsid, server, &iid,
supportMultithreading, locale,
reserved, objectHandle);
return __result;
}
When I execute this code:
HRESULT rr;
CAObjHandle engineObj;
rr = TS_ActiveEngine(NULL, 1, LOCALE_NEUTRAL, 0, &engineObj);
if (rr)
CA_DisplayErrorInfo(engineObj, "ERR", rr, NULL);
i receive an error: "Operation unavailable".
How can I determine the ObjectHandle of already launched TestStand engine?