🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2546

Re: NETBIOS-Calls: Help needed BADLY

#2546
From: Jaakko J Salmenius
Date: Thu, 07 Jan 1993 13:07
34 lines
2080 bytes
In article   writes:
>!howland.reston.ans.net!sol.ctr.columbia.edu!ira.uka.de!Sirius.dfn.de!solaris.rz.tu-clausthal.de!sun.rz.tu-clausthal.de!instm

>I badly need help with my NETBIOS-Project. As I am using a
>multi-tasking-environment, i'd like to send messages when the
>netbios-calls with "no wait"-option return from operation.
>Normally you fill the NCB_POST - Variable in your NCB-BLOCK
>with the address of your interrupt-handler. My thought was to
>let my interrupt-handler send a message. Unfortunately nothing
>happens. The Problem seems to be the proc-address. Do I have to
>use MakeFarProc ? (If so, which hInstance...) Is there an aprop.
>DPMI-Routine ? (If so, which ?)

I haven't use NetBIOS with Windows but OS/2, where NCB_POST doesn't
contain an interrupt handler but a system semaphore handle. You're
right, according various documentation NCB_POST contains an interrupt
handler in Windows.

What might cause your problem is the interrupt handler itself. At least
in OS/2 you are not allowed to call any system functios (alt least a very
limited amount) during your stay in the interrupt handler. What
you're doing is sending a message that for sure is a system call.
Try to set up a flag during the NetBIOS interrupt and check the flag
afterwars when your' re not in interrupt any more.

Hope this helps.

	Jaakko


--
Jaakko Salmenius	| Helsinki University of Technology
salmeniu@niksula.hut.fi	| The believable ski heroes, at least in my opinion,
phone +358 0 805 5951	| are the ones who ski the extreme and watch Star Trek.
Technical Details
Message-ID: <1ih9utINNlpf@sauna.cs.hut.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!funic!sauna.cs.hut.fi!robocop.cs.hut.fi!salmeniu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!funic!sauna.cs.hut.fi!robocop.cs.hut.fi!salmeniu
From: salmeniu@robocop.cs.hut.fi (Jaakko J Salmenius)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: NETBIOS-Calls: Help needed BADLY
Date: 7 Jan 1993 13:07:41 GMT
Organization: Helsinki University of Technology, Finland
Lines: 34
Distribution: inet
Message-ID: <1ih9utINNlpf@sauna.cs.hut.fi>
Reply-To: salmeniu@niksula.hut.fi (Jaakko J Salmenius)
NNTP-Posting-Host: robocop.cs.hut.fi