--
Regards, Kai Reichert
Novell Support Connection SysOp
NetWare! Life is too short for reboots.
I'd say so but it doesn't seem to have any dependencies -- ie you can just unload it (at least on NW5.1)...
DevNet SysOp 4
http://developer-forums.novell.com/category/index.tpt
NDS Rules!
Yes, this is possible. Your application should try to import one of the
required symbols with ImportSymbol().
--
Dmitry Mityugov, DevNet SysOp 8
Member of the Novell SysOp Team
http://developer.novell.com/support/sysop/
I've just checked NSPDNS with NLMDUMP:
Module Name: NSPDNS.NLM
Description: NetWare Winsock 2.0 NSPDNS.NLM Name Service
Providers
Version: 6.00 (2001/11/16)
Copyright: Copyright 1995-2001 Novell, Inc. All rights
reserved.
File Format Version: 00000084 (compressed)
Module Type: Generic (0)
Code Start: 000001B2
Code Size: 00001E38 ( 7736)
Data Start: 00001FEA
Data Size: 00000184 ( 388)
Uninitialized Data Size: 00000000 ( 0)
Start Procedure: 00000000
Exit Procedure: 000001B6
Check Unload Procedure: 00000200
Flags: 00000000
CLIB Stack Size: 00000200 ( 512)
CLIB Thread Name: NSPDNS.NLM
CLIB Screen Name:
Exported Symbols: 0
Imported Symbols: 37
AllocateResourceTag (1 reference)
Alloc (8 references)
Free (5 references)
Press any key...
unfortunately NSPDNS doesnt export any symbols; so ImportSymbol() is not
possible.
Seems that NWGetNLMLoadedList() and loop until NSPDNS is found is the
only way...
http://developer.novell.com/ndk/doc/clib/srvr_enu/data/sdk362.html
http://developer.novell.com/support/sample/tids/nlmlst/nlmlst.htm
http://developer.novell.com/ndk/doc/clib/srvr_enu/data/sdk1473.html
Guenter.
> unfortunately NSPDNS doesnt export any symbols; so ImportSymbol() is not
> possible.
What if NSPDNS exports symbols dynamically with ExportSymbol() or a similar
function? ;-)
--
Dmitry Mityugov, DevNet SysOp 8
Member of the Novell SysOp Team
http://developer.novell.com/support/sysop/
I was going to suggest what Dmitry suggested, but with an additional note: the custom NLM must NOT call the functions exported by NSPDNS explictly but use the ImportSymbol calls to get at them -- so if the import fails, you try to load NSPDNS and import the symbol again ...