GetDataAreaPtr
Returns a previously saved data area pointer for the current NLM
#include <nwlib.h>
void *GetDataAreaPtr (
LONG libraryHandle);
This function returns the data area pointer if successful. If a library has called SetNLMID before calling GetDataAreaPtr, this function can return NULL.
If an error occurs, it returns EFAILURE and sets errno to:
GetDataAreaPtr returns the data area pointer saved by a previous SaveDataAreaPtr call for the current NLM (usually the NLM calling the library; however, see GetNLMID and SetNLMID) and for the specified library (specified by the libraryHandle parameter).
GetNLMID (NDK: NLM Threads Management), SaveDataAreaPtr, SetNLMID (NDK: NLM Threads Management)
#include <nwlib.h> ClientStruct *dataAreaPtr; LONG libraryHandle; dataAreaPtr = GetDataAreaPtr (libraryHandle);