I would like to open an EA session via Windows service and do some action behind the scenes. I use the Repository API, however, don\'t know how to initialize it correctl
To open a running instance use (C++ example)
CLSID clsid; CLSIDFromProgID(L"EA.App", &clsid); IUnknown *pUnk = NULL; IDispatch *pDisp = NULL; HRESULT hr = GetActiveObject(clsid, NULL, (IUnknown**)&pUnk); if(SUCCEEDED(hr)) { hr = pUnk->QueryInterface(IID_IDispatch, (void **)&pDisp); }