Available in LEADTOOLS Document and Medical Imaging toolkits.
L_AnnGetActiveState
L_AnnSetActiveState