void CUIAutomationClient::Initialize() { try { CoInitialize(NULL); HRESULT hr; hr = CoCreateInstance(__uuidof(CUIAutomation), NULL, CLSCTX_INPROC_SERVER, __uuidof(IUIAutomation), (void **)&g_Automation); if(FAILED(hr) || g_Automation==NULL) { ret = 1; CoUninitialize(); } } catch(...) { } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)