Sha256: 9e3bcaf7fc61f94910d3631e1f2b9e04222b23a81d82f775f345eb76449d1e19
Contents?: true
Size: 626 Bytes
Versions: 6
Compression:
Stored size: 626 Bytes
Contents
// dllmain.cpp : Defines the entry point for the DLL application. #include "stdafx.h" IUIAutomation *pAutomation ; IUIAutomation* getGlobalIUIAutomation() { if( NULL == pAutomation ) { HRESULT hr ; hr = CoInitializeEx(NULL, COINIT_MULTITHREADED) ; if (FAILED(hr)) { printf("UiaDll: CoInitialize failed. hr = 0x%x", hr) ; return NULL; } hr = CoCreateInstance(__uuidof(CUIAutomation), NULL, CLSCTX_INPROC_SERVER, __uuidof(IUIAutomation), (void**)&pAutomation); if (FAILED(hr)) { printf("UiaDll: CoCreateInstance failed. hr = 0x%x", hr) ; return NULL; } } return pAutomation ; }
Version data entries
6 entries across 6 versions & 1 rubygems