Monday, 17 October 2011

How can my program tell if it's running under Windows?

Execute INT 2F AX=4680. If AX returns 0, you're in Windows real mode or standard mode (or under the DOS shell). Otherwise, call INT 2F AX=1600. If AL returns something other than 0 or 80, you're in Windows 386 enhanced mode.

No comments:

Post a Comment