From: James MacDonald Newsgroups: comp.os.msdos.djgpp Subject: Low level stuff w/DJGPP (floppy drive blitzing, etc) Date: Fri, 4 Jul 1997 16:23:35 +0100 Organization: Trills and Technologies Distribution: world Message-ID: NNTP-Posting-Host: netbook.demon.co.uk MIME-Version: 1.0 Lines: 21 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In an application I'm writing, I need to be able to turn off the floppy drive so that when the program exits it is disabled. The program loads on startup, waits for a keypress within 3 seconds with kbhit(), and then if a key is pressed requests a password. If no key is pressed or the password is incorrect, the floppy drive should be disabled and the program should exit. If the password is correct the program should simply exit. I have looked at several Virus Toolkits to see how they do it, and I have found no examples. However, then can erase LPT1 by overwriting its address in memory. Is this possible for the floppy, and how is it done? This is *not* a virus or malicious code. And although I have TASM I want to stay in C. Any suggestions? -- Revised anti-spam in use : remove X to reply - 'Xnetbook' becomes 'netbook' Anti-spam thermonuclear warheads cheap at only $300!