AccessibleWrap* accWrapObj = new AccessibleWrap(); if (accWrapObj->IsDefunct()) { // Object is no longer available to use printf("The Object is Defunct"); } else { // Object is still valid to use printf("The Object is Valid"); } delete accWrapObj;
AccessibleWrap* accWrapObj = new AccessibleWrap (hwnd); if (accWrapObj == NULL) { // Object is defunct printf("The Object is Defunct"); } else { // Object is still valid to use printf("The Object is Valid"); } delete accWrapObj;This package library is a part of the Microsoft Active Accessibility (MSAA) API. The AccessibleWrap class provides a wrapper around the underlying IAccessible interface that is used by the MSAA API to expose the properties and behavior of the controls to accessibility clients.