Clients call the IAccClientDocMgr::GetFocused method to access a pointer for the document that has focus.
HRESULT GetFocused( REFIID riid, IUnknown* ppunk );
- [in] IID of the document being requested. This is usually IID_ITextStoreAnchor.
- [out] Interface pointer to the document being requested.
If successful, returns S_OK.
If the window that has focus is not a document that implements the ITextStore interface, ppunk will be NULL.
Servers might need to poll this method more than once before they receive a document. There can be a limited time lapse (approximately second) between when a document appears in the system and when it is registered with document services.
Windows NT/2000/XP/Server 2003: Included in Windows XP and Windows Server 2003.
Windows 95/98/Me: Unsupported.
Redistributable: Requires Active Accessibility 2.0 RDK on Windows NT 4.0 SP6 and Windows 98.
Header: Declared in Msaatext.h.