New answers tagged

11 votes

In 16-bit MS-DOS, how do I get a file handle to the currently running .exe?

If definitive references is what you’re looking for, the usual one to consult is the RBIL: Format of Program Segment Prefix (PSP): Offset Size Description (Table 01378) […] 2Ch WORD ...
user avatar
  • 17.2k
15 votes
Accepted

In 16-bit MS-DOS, how do I get a file handle to the currently running .exe?

[Edit: Ooops, that question already been answered a few years ago on Stack Overflow] I'd expect there to be some reference (either a file handle or an old-fashioned FCB) in the PSP, but there's ...
user avatar
  • 173k
4 votes

How did Windows 3.1 implement multitasking?

A "regular old MS-DOS program" can do absolutely anything. Modern operating systems run processes in sandboxes with limited privileges, where many things are either impossible or allowed ...
user avatar
  • 1,021

Top 50 recent answers are included