Article View: comp.os.os2.programmer
Article #2260Re: Novell NetBIOS
From: Mikael Wahlgren
Date: Fri, 02 Oct 1992 22:33
Date: Fri, 02 Oct 1992 22:33
43 lines
3006 bytes
3006 bytes
peterf@vnet.ibm.com (Peter Forsberg) writes: >>How do I write my OS/2 programs to be binary compatible with both the IBM >>(Lan Server) NetBIOS and Novell (OS/2 Requester) NetBIOS? I have written >>a NetBIOS application for IBM Lan Server, but when running Novell, it >>(naturally) can't find the ACS DLL's. I suppose I will need the NETAPI.DLL >>from Novell instead? But how do I do to get the compiled code run at both >>systems? >I think that the best thing for you to do is to write your own NetBIOS >DLL, which converts from your own "generic" NetBIOS calls to either of >IBM's or Novell's. Well, some investigation, shows that the NETAPI.DLL is supported BOTH by Novell and IBM (NetBIOS Submit), while the ACS library (netBIOS NB30) is only supported by IBM. So the compatibility issues are solved. But I still have some questions regarding NetBIOS (the NetBIOS Submit/NETAPI package). It is possible to open the driver in three different modes (REGULAR, PRIVELIGED, EXCLUSIVE). What I don't really understand, is what I can do with the different modes. What I want to do, is to receive DATAGRAMS, and this seems impossible in REGULAR and PRIVELIGED mode? WHen I try to open the driver in EXCLUSIVE mode, it refuses with an ACCESS ERROR. Supposedly there is another application (the Lan Requester?) that already has opened the driver in PRIV/REGULAR mode, in which case the EXCLUSIVE mode can't be used. But in that case, it would be pretty hard to use the EXCLUSIVE mode for anything at all? What I want to accomplish, is to get the same functionality by using the Submit/NETAPI library, as I get by using the NB30/ACS library. When I use the NB30 interface, I seem to have complete control of the NetBIOS session (I can RESET and receive DATAGRAMS). I have also noticed that the Submit/NETAPI DLL don't automaticly de-allocate the resources I have allocated, when issuing the NetBiosClose call. I have to manually delete all names that I have added, before closing the device. If I don't I seem to loose all control of that name, as I can't add the name again (already in name table, naturally) and I can't delete it at that time, as I have lost the referencing num-fields. I thought the NetBiosClose call was intended to ensure that all resources I claimed, was released. Mikael Wahlgren
Technical Details
Message-ID:
<d9mikael.718065187@dtek.chalmers.se>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!eff!sol.ctr.columbia.edu!spool.mu.edu!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!chalmers.se!dtek.chalmers.se!d9mikaelReferences:
<d9mikael.717805320@dtek.chalmers.se> <19921002.111502.167@almaden.ibm.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!eff!sol.ctr.columbia.edu!spool.mu.edu!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!chalmers.se!dtek.chalmers.se!d9mikael From: d9mikael@dtek.chalmers.se (Mikael Wahlgren) Newsgroups: comp.os.os2.programmer Subject: Re: Novell NetBIOS Message-ID: <d9mikael.718065187@dtek.chalmers.se> Date: 2 Oct 92 22:33:07 GMT References: <d9mikael.717805320@dtek.chalmers.se> <19921002.111502.167@almaden.ibm.com> Sender: news@chalmers.se Organization: Chalmers University of Technology, Gothenburg Sweden Lines: 44