View Full Version : How to set bpx on Save?
Th3_Ang3l
April 10th, 2003, 05:44
Hi guys. I want to ask a question. I'm currently cracking an app and I wanted SoftICE to break each time I click on File Save/Save As menu. How is this possible?
ZaiRoN
April 10th, 2003, 06:11
Hi Th3_Ang3l,
you can try to break on the function GetSaveFileName. This function (used by many applicatiopns) creates the classical "save dialog box" when you click on "Save as" item.
Regards,
ZaiRoN
Th3_Ang3l
April 10th, 2003, 06:37
Hi ZaiRoN and thanks a lot for your response. I've tried it but it doesn't seem to break. Any other ideas?
Sorry for the double post.
esther
April 10th, 2003, 06:57
Hi,
Did you try bpx enablemenu?
just a thought
banshee
April 10th, 2003, 09:52
What is the compiler of your application?
Th3_Ang3l
April 10th, 2003, 11:31
Thanks to everyone for their response. enablemenu doesn't work.
Why do you need the version of the compiler?
Anyway I'll try to explain the situation a bit.
I'm working on this programme that catalogues all your disks files hard disks etc. This proggy is packed, has a nag and a limit on the number of disks you can store. Anyway I've unpacked it, got rid of the nag but the problem is the number of disks.
Let me explain: this proggie blocks the number of disks you can catalogue to 5. When you try to catalogue another disk it gives you a nice messagebox with the usual crap. That wasn't difficult to reverse. The problem is that when you save your catalogue of 6 or more disks the programme accepts it yes, but when you re open it it still contains 5 disks (meaning that all number of disks superior to 5 get cut off)
My question is this: how can I control what gets saved in the file?
What would be a good bpx to set? (I've also tried createfilea and indeed breaks but it doesn't seem to get anywhere)
Thanks to everyone that have responded
Manko
April 10th, 2003, 11:43
Try WriteFile, it should write the data...
or if they are little tricky... _lwrite or _hwrite..
/Manko
squidge
April 10th, 2003, 12:26
Are you sure it doesn't bother saving the records to the file? Maybe it just doesn't bother loading them? Have a look with a hex editor.
Th3_Ang3l
April 10th, 2003, 12:41
WriteFile indeed breaks but I can't seem to get anywhere.
Hi squidge. Thanks for responding. Good idea. Didn't think of it. I'll take a look.
Thanks to both
Th3_Ang3l
April 10th, 2003, 12:47
Nothing. The data isn't saved in the first place. DEAD END HERE.
Powered by vBulletin® Version 4.2.2 Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.