Updated: October 28, 2024 |
Increment the hold counter for a control
#include <aoi.h> int32_t AoHold(const AOICtrl_t *ctrl);
This function increments the hold counter for a control. If the control was previously not held and it represents a DLL, the DLL is loaded and initialized if necessary. You should hold a control before trying to use any of its interfaces, and release it with AoRelease() when you're finished using its interfaces.
There's also a global hold counter, which ensures DLLs are kept in memory even if no application is holding them; see the AoHoldAll() and AoReleaseAll() references for details.
0 if successful, or -1 if an error occurred.
QNX Neutrino