Read Neural's essai about Notepad reversing (excellent!) @ neudump.cjb.net
[Thanks nu, you got me hooked on win32asm]
There you will get a link to a code snipped taken from a virii code called COMPILED_SCANNING_CODE where he explains how to use it...
Do the whole tut... you won't regret it
that's nuff for today..
JC