| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Disable Ctrl-Break |
PW> ET> How can I fully disable the Ctrl-Break in Pascal? PW> PW> You can only disable Ctrl-Break inside Pascal. PW> PW> In order to completely disable Ctrl-Break you have to change the copy of PW> Command.Com that your application happens to be using at the time. PW> PW> The reason is that for a number of operations Pascal is using DOS, and DOS PW> no way to disable Ctrl-Break (legally), so whenever your Pascal application PW> loading, or is temporarily passing control to DOS, even though you have PW> SetCBreak set to false DOS will intercept the key stroke and interpret it. not quite as complex as changing command.com... you use getintvec/setintvec, and make an interrupt procedure. when your program starts, you take control away from dos, and give it back on exit. in real mode it stuffs up if the program crashes, but in protected mode messy interrupts don't matter. --- GEcho 1.00* Origin: 42 - The Coding BBS +644 568-6697 (3:771/42) SEEN-BY: 633/267 270 @PATH: 771/42 1560 160 772/20 712/624 517 515 711/808 50/99 635/544 727 @PATH: 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.