Solved

Int 21/AX=E905h (Map Root)inert in 95,NT4

Posted on 1998-08-20
3
180 Views
Last Modified: 2010-04-15
This sounds like an ASM question, but in truth I'm using
intdos() on good old BC3.

This function works fine in DOS 6.2 and fails in 95 and NT4
(retval 3 - "path not found"). I've watched the actual int21
in Turbo Debugger for the identical machine, identical .EXE
after rebooting the OS -- i.e., 100% reproducible.

Does this simply not work for > W3.1, or am I missing something?  Thanks.

P.S. this is a Netware programming question, in case anyone wishes to vomit.
0
Comment
Question by:BILLWOOD
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
alexo earned 40 total points
ID: 1252199
NT does not implement INT21h functions at all.  Use DeviceIoControl() instead.
Win95 requires passing through a VxD (VWIN32) for certain INT21h calls.

There are some examples by Raymon Chen from MS at:
      http://www.dejanews.com/getdoc.xp?AN=207816158 
      http://www.dejanews.com/getdoc.xp?AN=211688212 
0
 

Author Comment

by:BILLWOOD
ID: 1252200
Thanks for the answer.  This is something I've needed to know for a long time.  I wish I knew what was the deal with 95, though.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1252201
"the deal with Win9x" is that it is a patch on hack with an expected life span of 2-3 years.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Pointer in one class to member in another 6 125
Adjust Mfcapp 29 172
Best UNIX-compatible free C compiler for Windows or Mac 6 254
sameEnds challenge 3 180
Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question