have you already look there: http://www.winasm.net/forum/index.php?showtopic=2341
in any case, example by your link will work under win 9x only, to get access to the LPT under win2000/winXP you will need driver. i'm using inpout32.dll, there are also some other - giveio etc., but i had not try them.
more complex examples you may found there: http://shoorick.org.ua/prog
- software used to control both programmers use inpout32.dll, written with FASM and posted there with source.
inpout32 zip has examples in C for Borland and MS (if you are interesting with C exactly)
i had not see inpout version for Vista or Win7, but i have only winXP and win2000 to try.
let me know if you get any progress.