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

Adds a callback to be notified when a new assembly is loaded.

The callback will be notified immediately after the assembly is loaded. The callback 'sender' argument will be the handle of the loaded assembly.

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.