12.5 Obtaining Information about Loaded NLMs

The library.h file contains functions which help you to obtain information about a loaded NLM such as its address, name, and the location of its file system executable. Sometimes, when a thread enters your library, you need to know a little more about the NLM that owns the thread before servicing the request. These functions allow you to obtain that information.

Function

Description

findnlmhandle

Returns the handle of the NLM that corresponds to the specified name.

getaddressspace

Returns the address space of the NLM owning the calling thread.

getaddressspacename

Returns the name of the specified address space.

getnativethread

Returns the thread of the current process.

getnlmhandle

Returns the name of the NLM owning the calling thread.

getnlmhandlefromthread

Returns the NLM handle for the specified thread.

getnlmloadpath

Returns the file system path of the executable for the NLM owning the calling thread.

getnlmname

Returns the name of the NLM specified by the NLM handle.

getthreadid

Returns the ID of the current thread.

getthreadname

Returns the name of the specified thread.

nlmisloadedprotected

Returns whether the owning thread belongs to an NLM that is loaded in a protected address space.

uname2

Returns information about LibC, the NetWare operation system, and the calling NLM.