I'm working on my first AFL plugin using Dev-C++. I'm a programmer by trade, 
but not a Windows programmer.

Anyway, after three days of brutal toil, I've managed to access the Time & 
Sales window. However to read the contents, I'm using the SendMessage 
LVM_GETITEMTEXT function which is really slow. I don't fully understand the 
windows messaging system yet, so don't get where the performance issue is. 
Something to do with them being queued?

40,000 SendMessage requests takes around 1.6 seconds which is way slow and 
that's only for 1 column of data. I can read and process 4 columns of the same 
data from a text file in around 50ms.

For realtime, where you'd only be reading maybe 500 records at a time, there's 
4000 SendMessage calls and even that takes 100ms.
As I don't understand Windows very well, is there a faster way of doing this? 
Can I get a reference to the actual class itself?

When I copy (CTRL+C) from the Time & Sales window, it's so quick it's barely 
noticeable on the cpu graph. It'd be quicker for me to send a CTRL+C key 
message to the window and then process the data from the clipboard, which is a 
viable option if there's nothing else.

Hopefully there's some Windows programmers around here.

Thanks,
Julian.

Reply via email to