Includng nb30.h and linking with netapi32.lib

Subject: Includng nb30.h and linking with netapi32.lib

Message:

Hi all,
I am trying to use the Netbios(…) function from the nb30.h.
I am linking my driver with netapi32.lib and I succeed to compile and
build it.
But then my driver fails to load, i.e., it’s DriverEntry routine isn’t
called at all…
I checked: the system32\drivers directory contains netapi32.dll.
I suspect that in my case I need some .sys file and not a .dll file.

If anoyne has experience with this netapi32, please share it.
I saw an example of code here:

http://www.codeguru.com/forum/archive/index.php/t-315868.html

But it is not said there if I need any extra .sys file or anything else.

Thanks,
Alex.

************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************

You are using a user space library in a driver, it is not going to work.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

“Tamir Offek” wrote in message news:xxxxx@ntdev…
Subject: Includng nb30.h and linking with netapi32.lib

Message:

Hi all,
I am trying to use the Netbios(…) function from the nb30.h.
I am linking my driver with netapi32.lib and I succeed to compile and
build it.
But then my driver fails to load, i.e., it’s DriverEntry routine isn’t
called at all…
I checked: the system32\drivers directory contains netapi32.dll.
I suspect that in my case I need some .sys file and not a .dll file.

If anoyne has experience with this netapi32, please share it.
I saw an example of code here:

http://www.codeguru.com/forum/archive/index.php/t-315868.html

But it is not said there if I need any extra .sys file or anything else.

Thanks,
Alex.


This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer
viruses.

NETAPI32.LIB (.DLL) is a user mode image. I believe the loader is
falling your driver because it links to images in user space. Even if
this is not it, I don’t see how calling any of these functions could
work.

MM

>> xxxxx@storeage.com 2005-12-05 10:19 >>>
Subject: Includng nb30.h and linking with netapi32.lib

Message:

Hi all,
I am trying to use the Netbios(…) function from the nb30.h.
I am linking my driver with netapi32.lib and I succeed to compile and
build it.
But then my driver fails to load, i.e., it’s DriverEntry routine isn’t
called at all…
I checked: the system32\drivers directory contains netapi32.dll.
I suspect that in my case I need some .sys file and not a .dll file.

If anoyne has experience with this netapi32, please share it.
I saw an example of code here:

http://www.codeguru.com/forum/archive/index.php/t-315868.html

But it is not said there if I need any extra .sys file or anything
else.

Thanks,
Alex.

************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************************


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com