The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: xandaz on April 16, 2012, 09:16:38 PM

Title: EM_FINDTEXT backwards! HELP
Post by: xandaz on April 16, 2012, 09:16:38 PM
    I've been trying to understand how it works for backwards search. For a forward search FINDTEXT.chrg.cpMin is the starting location of search and cpMax should point to last character you want to scan or -1 for a complete scan. How about for backwards scan? The manual says that cpMin must be equal or greater than cpMax, but is it just that? Look at the example and see if you can make something out of it.
Title: Re: EM_FINDTEXT backwards! HELP
Post by: xandaz on April 16, 2012, 09:17:50 PM
    OOppps. I'm that rude.
   Thanks and later.
   Bests
Title: Re: EM_FINDTEXT backwards! HELP
Post by: jj2007 on April 16, 2012, 09:44:58 PM
cpMin is the current position, cpMax is below that position. Setting cpMax to -1 might not be a good idea for an unsigned variable - try zero instead.
Title: Re: EM_FINDTEXT backwards! HELP
Post by: xandaz on April 16, 2012, 10:31:11 PM
    So... it doesnt matter what cpMax is as long as it's below cpMin? I feel kinda strange about it. Looking into it.
Title: Re: EM_FINDTEXT backwards! HELP
Post by: hfheatherfox07 on April 16, 2012, 10:56:57 PM
Hey xandaz  I followed the link you have there and your Dialog Example has a virus in it

http://www.microsoft.com/security/portal/Threat/Encyclopedia/Entry.aspx?name=Virus%3aWin32%2fVirut.BN&threatid=2147627075
Title: Re: EM_FINDTEXT backwards! HELP
Post by: jj2007 on April 16, 2012, 11:00:09 PM
Quote from: hfheatherfox07 on April 16, 2012, 10:56:57 PM
your Dialog Example has a virus in it

Change your AntiVirus, it's a false positive.
Title: Re: EM_FINDTEXT backwards! HELP
Post by: hfheatherfox07 on April 16, 2012, 11:30:03 PM
Quote from: jj2007 on April 16, 2012, 11:00:09 PM
Quote from: hfheatherfox07 on April 16, 2012, 10:56:57 PM
your Dialog Example has a virus in it

Change your AntiVirus, it's a false positive.

few of AV's detected it ...were is the false positive .... was the file compressed (packed) only than it triggers a false positive ...I had some winsock progies trigger false positive.....
Title: Re: EM_FINDTEXT backwards! HELP
Post by: MichaelW on April 16, 2012, 11:39:40 PM
I submitted the fi.exe from the attachment here:

http://virusscan.jotti.org/eng

And all of the scanners (20 total) found nothing.
Title: Re: EM_FINDTEXT backwards! HELP
Post by: hfheatherfox07 on April 16, 2012, 11:41:30 PM
LOL than my AV's are Crap ... I got Microsft essentials , Norton, and some trogen find thing

My appologies  :red
Title: Re: EM_FINDTEXT backwards! HELP
Post by: dedndave on April 16, 2012, 11:59:58 PM
QuoteI got Microsft essentials , Norton, and some trogen find thing

good lord
i bet that computer runs like a snail
Title: Re: EM_FINDTEXT backwards! HELP
Post by: hfheatherfox07 on April 17, 2012, 12:00:45 AM
Quote from: dedndave on April 16, 2012, 11:59:58 PM
QuoteI got Microsft essentials , Norton, and some trogen find thing

good lord
i bet that computer runs like a snail

It is due for a formatting  :bdg
Title: Re: EM_FINDTEXT backwards! HELP
Post by: dedndave on April 17, 2012, 12:02:09 AM
just go to the norton site and get the "norton removal tool" that is appropriate for your version
i bet it runs a lot faster after you run that and reboot
Title: Re: EM_FINDTEXT backwards! HELP
Post by: hfheatherfox07 on April 17, 2012, 12:04:13 AM
Quote from: dedndave on April 17, 2012, 12:02:09 AM
just go to the norton site and get the "norton removal tool" that is appropriate for your version
i bet it runs a lot faster after you run that and reboot

my compuer crashes on memory I can't figure it or run a debugger it crashes and freezes on break point and other stuff so .....

C:\DO YOU REALLY WANT TO FORMAT: Y/N

C:\Y

:dazzled:
Title: Re: EM_FINDTEXT backwards! HELP
Post by: xandaz on April 17, 2012, 11:10:41 AM
   Well....it happened once.... i thought i had removed all of the executables from the packs. Better check it out.
Title: Re: EM_FINDTEXT backwards! HELP
Post by: xandaz on April 17, 2012, 05:36:57 PM
    It's working better. Thanks.