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

No Comments
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.
Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment