home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4684 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  2.0 KB

  1. Path: sparky!uunet!mcsun!news.funet.fi!funic!sauna.cs.hut.fi!robocop.cs.hut.fi!salmeniu
  2. From: salmeniu@robocop.cs.hut.fi (Jaakko J Salmenius)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: NETBIOS-Calls: Help needed BADLY
  5. Date: 7 Jan 1993 13:07:41 GMT
  6. Organization: Helsinki University of Technology, Finland
  7. Lines: 34
  8. Distribution: inet
  9. Message-ID: <1ih9utINNlpf@sauna.cs.hut.fi>
  10. Reply-To: salmeniu@niksula.hut.fi (Jaakko J Salmenius)
  11. NNTP-Posting-Host: robocop.cs.hut.fi
  12.  
  13. In article   writes:
  14. >!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
  15.  
  16. >I badly need help with my NETBIOS-Project. As I am using a
  17. >multi-tasking-environment, i'd like to send messages when the
  18. >netbios-calls with "no wait"-option return from operation.
  19. >Normally you fill the NCB_POST - Variable in your NCB-BLOCK
  20. >with the address of your interrupt-handler. My thought was to
  21. >let my interrupt-handler send a message. Unfortunately nothing
  22. >happens. The Problem seems to be the proc-address. Do I have to
  23. >use MakeFarProc ? (If so, which hInstance...) Is there an aprop.
  24. >DPMI-Routine ? (If so, which ?)
  25.  
  26. I haven't use NetBIOS with Windows but OS/2, where NCB_POST doesn't
  27. contain an interrupt handler but a system semaphore handle. You're
  28. right, according various documentation NCB_POST contains an interrupt
  29. handler in Windows.
  30.  
  31. What might cause your problem is the interrupt handler itself. At least
  32. in OS/2 you are not allowed to call any system functios (alt least a very
  33. limited amount) during your stay in the interrupt handler. What
  34. you're doing is sending a message that for sure is a system call.
  35. Try to set up a flag during the NetBIOS interrupt and check the flag
  36. afterwars when your' re not in interrupt any more.
  37.  
  38. Hope this helps.
  39.  
  40.     Jaakko
  41.  
  42.  
  43. --
  44. Jaakko Salmenius    | Helsinki University of Technology
  45. salmeniu@niksula.hut.fi    | The believable ski heroes, at least in my opinion,
  46. phone +358 0 805 5951    | are the ones who ski the extreme and watch Star Trek.
  47.