Function _conUnRegisterF() Foundation

Unregisters C-API functions at runtime

Syntax
XPPAPIRET XPPAPIENTRY _conUnRegisterF(XppRegisterTable *tbl);
Parameters
XppRegisterTable *tbl
Information required for unregistration. It is provided by the function _ConRegisterF().
Return

The function returns a value > 0 when unregistration is successful.

Description

The function _conUnRegisterF() removes symbols of C-API functions from the symbol table that have been addded with the function _conRegisterF().

Examples
// ---------------------------------------------- 
// Xbase++ PRG code for dynamic unregistration of 
// C-API function symbols 
// 

  #include "DLL.CH" 


  DllCall( "F2BIN.DLL", DLL_CDECL, "my_unregister" ) 
  DllUnload( "F2BIN.DLL" ) 


// ------------------------------------------------ 
// C-API code for dynamic unregistration of symbols 

/* 
* Static structure that holds all information required 
* for unregistration. It is filled by _conRegisterF() 
*/ 
XppRegisterTable MyFuncsInfo; 

/* Function which encapsulates unregistration. It can be called 
* from the DLL startup routine or via DllCall(). 
*/ 
int my_unregister() { 
   return _conUnRegisterF(&MyFuncsInfo); 
} 

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.