[comp.windows.ms.programmer] NetBios calls from Win3

drift@qut.edu.au (Glenn Wallace) (03/28/91)

Netbios calls from Windows
==========================
Can anyone help with how to issue a successful netbios call from Windows?

Calling It
----------
I realise you need to use NetBiosCall, which is part of the kernel.
The SDK says to set up a bit of assembler to do a cCall NetBiosCall.

I'll probably make a C function interface to this, so you pass the
address of an NCB, which is then put into ES:BX. Standard DOS stuff.

Post Routines
-------------
However, are post routine declarations the same?

ie void interrupt far mypost(...){};

and therefore, as the post routine is being called from the IRQ handler
by IPX etc, does that mean that the only Win API call you can do from
your post routine is PostMessage() ???

The NCBs...
-----------
I assume that the NCB is the same struct definition as DOS.
Should it be allocated with GlobalAlloc(), GlobalDOSAlloc() or what?

All I need is a bit of sample code with an NCB, a call, and a post routine,
just to see what the differences between DOS and Windows are.

We asked MS for this (either info or code) and they said "pass".
(PS We are Corporate Access customers, so I'm surprised!)

I have the DDK but not much joy there, either. That stuff is more for people
writing a network _driver_ for Win3.

Thanks in advance .... reply by mail if you like.
 
+-------------------+-----------------------------------------+
| Glenn Wallace     | Net: DRIFT@QUT.EDU.AU                   |
| Drift Project     | Fone: +61 7 837-7126 Fax: +61 7 221-0173|
| Telecom Australia | Snail: 11th Flr 144 Edward St.,         |
+-------------------+        Brisbane, Q4000 Australia        |
|                                                             |
| Disclaimer - The opinions expressed must be my own, because |
|              Telecom is a statuatory authority and as such, |
|              is not capable of having opinions.             |
+-------------------------------------------------------------+