Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kAssembly_AddUnloadHandler ( kCallbackFx  function,
kPointer  receiver 
)

Adds a callback to be notified just prior to unloading an assembly.

The callback will be notified just prior to unloading the assembly. The callback 'sender' argument will be the handle of the assembly that is being unloaded.

The static assembly lock (an internal, recursive, mutual exclusion structure) is held for the duration of callback invocation. Callback functions should be structured accordingly to avoid the potential for deadlock.

Parameters
functionCallback function.
receiverContext pointer for callback function.
Returns
Operation status.