Article View: comp.windows.ms.programmer
Article #2347Help with accessing NCSI/NASI through Windows 3.0
From: Nick Lawes
Date: Thu, 02 May 1991 18:24
Date: Thu, 02 May 1991 18:24
45 lines
2217 bytes
2217 bytes
Can some kind soul reading this please put me out of my misery... I am trying to make our terminal emulator use an NCSI compliant communications server for the serial i/o. I've managed to get NCSI connections working under DOS (using both IPX and NetBIOS as the transport), and now need to do the same thing under Windows 3.0... (Don't laugh! :-) I guess the major problem is getting a fixed chunk of RAM in the 'normal' 640K address space, that can be used by the NCSI driver, as well as by my windows application. I assume that the interrupt 6BH will work as normal... I have found the GlobalDosAlloc() call, and got that to work (despite the fact the definition was missing from windows.h ! ). What I am unsure of is how to access the memory segment that it gets for me... The manwell says that the upper word returned is a paragraph-segment address for use in real mode, and the lower word is a 'selector' for use in enhanced mode. So, the questions:- - Am I going in the right direction, or am I missing something? - for Real mode, can I just access the memory area as being the specified number of bytes at address para:0000 from my application? I am currently getting UAE's when I try this. (Surprise, surprise). - How do I work the selector into a usable address? Can windows do this or do I have to plough through the DPMI specification? All this has made a happy man, very OLD ! I'd be grateful for any pointers... Replies preferred by mail, since our news is *VERY* short-lived here ;-( Thanks in advance... /nick -- [ Nick Lawes, International Development | voice: +44 71 971 2513 ] [ Quotron Information Business Limited. | email: ..!ukc!slxsys!qtnet!nick ] [ 12 Norwich Street, London. EC4a 1BP. | ham : G8ZHR @ GB3XP ]
Technical Details
Message-ID:
<1991May2.182452.29918@qtnet.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!mcsun!ukc!slxsys!qtnet!nickShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!mcsun!ukc!slxsys!qtnet!nick From: nick@qtnet.uucp (Nick Lawes) Newsgroups: comp.windows.ms.programmer,comp.dcom.lans,comp.sys.novell Subject: Help with accessing NCSI/NASI through Windows 3.0 Message-ID: <1991May2.182452.29918@qtnet.uucp> Date: 2 May 91 18:24:52 GMT Organization: Quotron Information Business Limited Lines: 45