Originally posted by Viper187
View Post
In Renegade's lib_search.c there's a function called CodeSearch() which is tightly bound to the Window handle hProgressBar:
Code:
int CodeSearch(CODE_SEARCH_VARS Search, HWND hProgressBar)
{
u32 address;
u64 NewValue;
u64 OldValue;
// RamInfo.NewResultsInfo.ResCount = 0;
if (Search.TypeEx & EXCS_SIGNED) {
int i;
for (i = 0; i < 10; i++) { Search.Values[i] = SignExtend64(Search.Values[i], Search.Size); }
}
for (address = 0; address < RamInfo.NewResultsInfo.DumpSize; address += Search.Size) {
if(!(address % 0x100000)) { SendMessage(hProgressBar, PBM_STEPIT, 0, 0); }
...
Also, you don't have to worry about the protocol thing, that's a different layer. You'd just call another library's dump_memory() function like I proposed the other day.
Comment