Accessibility ============= First of all you need to link the accessibility libraries and the com support (in this order!): #pragma comment (lib, "oleacc.lib") #include #include AccessibleObjectFromPoint ( POINT ptScreen, IAccessible** ppacc, VARIANT* pvarChild ); AccessibleObjectFromWindow ( HWND hwnd, DWORD dwObjectID, REFIID riid, void** ppvObject ); AccessibleObjectFromEvent ( HWND hwnd, DWORD dwObjectID, DWORD dwChildID, IAccessible** ppacc, VARIANT* pvarChild ); - Functions to retrieve the IAccessible interface WindowFromAccessibleObject ( IAccessible* pacc, HWND* phwnd ); - Function to retrieve the HWND from an instance of IAccessible RegisterWindowMessage( LPCTSTR lpString ); LRESULT SendMessageTimeout ( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, UINT fuFlags, UINT uTimeout, PDWORD_PTR lpdwResult ); - Use theese functions to get the id (LRESULT) of a window LRESULT LresultFromObject ( REFIID riid, WPARAM wParam, LPUNKNOWN pAcc ); - Returns a reference (handle) to the specified object ObjectFromLresult ( LRESULT lResult, REFIID riid, WPARAM wParam, void** ppvObject ); - Retrieves a requested interface pointer for an accessible object based on a LresultFromObject return value IAccessible: ----------- Navigation and Hierarchy ------------------------ accNavigate ( long, VARIANT, VARIANT* ); get_accChild ( VARIANT, IDispatch** ); get_accChildCount ( long* ); get_accParent ( IDispatch** ); Descriptive Properties and Methods ---------------------------------- accDoDefaultAction ( VARIANT ); get_accDefaultAction ( VARIANT, BSTR* ); get_accDescription ( VARIANT, BSTR* ); get_accHelp ( VARIANT, BSTR* ); get_accHelpTopic ( BSTR*, VARIANT, long* ); get_accKeyboardShortcut ( VARIANT, BSTR* ); get_accName ( VARIANT, BSTR* ); get_accRole ( VARIANT, VARIANT* ); get_accState ( VARIANT, VARIANT* ); get_accValue ( VARIANT, BSTR* ); Selection and Focus ------------------- accSelect ( long, VARIANT ); get_accFocus ( VARIANT* ); get_accSelection ( VARIANT * ); Spatial Mapping --------------- accLocation ( long*, long*, long* long*, VARIANT); accHitTest ( long, long, VARIANT* );