简体   繁体   中英

How to write an out-of-process MS UI Automation client

Much of the documentation I've read regarding UIA lauds its ability to be used out-of-process with significant performance improvements over out-of-process MSAA clients, but I can't seem to drum up any documentation describing how to actually write your client in this way.

I'm guessing it has to do with how you call CoCreateInstance, and so the first thing I tried was changing the argument from CLSCTX_INPROC_SERVER to CLSCTX_LOCAL_SERVER, which resulted in a "class not registered" error, which I have yet to find the cause of. Are there additional steps required on my part?

Thanks for any assistance.

You do this using IUIAutomationCacheRequest , BuildUpdatedCache and GetCachedPattern along with the various CachedXXXX properties. Requesting the current patterns/properties requires a round trip per request; building the cache allows you to get all the patterns & properties you need in a single request.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM