TheMerovingian
January 6th, 2006, 13:47
Hi all,
I have a program with two text boxes, six radio buttons and two push buttons and I am trying to see what I have put into the text boxes.
Using softice, I have set breakpoints on getdlgitemtext, getdlgitemtexta, getdlgitemint & getdlgiteminta none of which produces a breakpoint when I click OK. The only one that seems to work is getwindowtexta but there something strange about it – since according to the WinAPI guide, it's function is:
int GetWindowText(
HWND hWnd, // handle of window or control with text
LPTSTR lpString, // address of buffer for text
int nMaxCount // maximum number of characters to copy
);
so to find the value of the textbox when softice breaks I used:
bpx getwindowtexta DO “d ESP->8;”
but the program breaks several times and each time I get exactly the same memory location, so to me that cannot be breaking on either of the textboxs....... can it???????
It does seem strange to use getwindowtexta but it appears the only one that softice breaks on yet doesn't yield the results.
If someone can point out where I am going wrong in my way to finding the contents of the textbox, I would greatly appreciate it.
Could the program be protected? I know there are many different programs for this out there, but is there a easy way to find out if this is the case?
I have a program with two text boxes, six radio buttons and two push buttons and I am trying to see what I have put into the text boxes.
Using softice, I have set breakpoints on getdlgitemtext, getdlgitemtexta, getdlgitemint & getdlgiteminta none of which produces a breakpoint when I click OK. The only one that seems to work is getwindowtexta but there something strange about it – since according to the WinAPI guide, it's function is:
int GetWindowText(
HWND hWnd, // handle of window or control with text
LPTSTR lpString, // address of buffer for text
int nMaxCount // maximum number of characters to copy
);
so to find the value of the textbox when softice breaks I used:
bpx getwindowtexta DO “d ESP->8;”
but the program breaks several times and each time I get exactly the same memory location, so to me that cannot be breaking on either of the textboxs....... can it???????
It does seem strange to use getwindowtexta but it appears the only one that softice breaks on yet doesn't yield the results.
If someone can point out where I am going wrong in my way to finding the contents of the textbox, I would greatly appreciate it.
Could the program be protected? I know there are many different programs for this out there, but is there a easy way to find out if this is the case?