Hi and welcome to the forums!
Its been a long time since I did any DOS programming, and just tried looking up the functions with my "PC Programmer's Source Book - 2nd Edition, M$ Press"
Are you sure you typed the example in correctly? Have you thought about 32-bit Windows programming yet?
Paging Professor Shoorick....