Шпионаж за COM-объектами

Я сказал бы, что использование алгоритма сортировки и затем прохождение через отсортированного списка для нахождения числа являются хорошим способом сделать это.

И теперь проблема находит "лучший" алгоритм сортировки. Существует большая сортировка алгоритмов, каждого из них с его сильными сторонами и слабыми местами, таким образом, это - вполне сложный вопрос. статья в Википедии походит на хороший источник информации об этом.

6
задан georgiosd 1 October 2009 в 16:59
поделиться

2 ответа

I'd definitely recommend using Keith Brown's 'Universal Delegator' to do the low-level interception. The ComTrace tool mentioned by Kim Grasman uses it. It lets you wrap an arbitrary com object in a 'shell' that can do interception, logging, etc. The original articles (with code) describing the universal delegator are here and here.

If you want to spy on com objects in arbitrary processes (that you don't have the source for) then you'll also need to do code injection, using CreateRemoteThread() or something similar. There's an article here that might get you started if you've not done it before.

3
ответ дан 17 December 2019 в 02:31
поделиться

I don't have a definitive answer, but I know a guy who might :)

Jonas Blunck's tools are all about interception at different levels, his ComTrace is based on Keith Brown's technique, if I recall correctly, and sounds similar to what you're doing, except he parses type libraries and headers to keep track of interfaces dynamically.

We wrote Developer Playground together (I mostly did UI), it's based on API hooking, and I know Jonas said he wanted to rework ComTrace to use the same API hooking library, because it gave the best "resolution" for interception.

I don't know what you want to use this for, but I suggest you check out Jonas' tools and shoot him an e-mail - he might be able to prod you in the right direction.

3
ответ дан 17 December 2019 в 02:31
поделиться
Другие вопросы по тегам:

Похожие вопросы: