## Window Messages

This section contains information on the following window message used by Active Accessibility API elements.

- WM_GETOBJECT

### WM_GETOBJECT

    wParam = (WPARAM)(DWORD) dwFlags;
    lParam = (LPARAM)(DWORD) dwObjId;

The oleacc.dll dynamic link library sends this message to an Active Accessibility server application to retrieve information about an accessible object it contains.

- Returns a value specifying the object's reference, a request for a standard object, or a COM error code otherwise. To return an object reference, use the LresultFromObject function. To request a standard accessible object, return zero. To fail the message, return a COM error code.

dwFlags
  Flag values providing additional information about the message. This value is passed to the LresultFromObject function, as the wParam parameter.
dwObjId
  Object identifier. This value can be one of the object identifier constants or a custom object identifier.

Oleacc.dll generates this message to retrieve object information in response to AccessibleObjectFromEvent, AccessibleObjectFromWindow or AccessibleObjectFromPoint function calls.

Applications should never send this message directly. It is sent only by oleacc.dll in response to AccessibleObjectFromPoint, AccessibleObjectFromEvent or AccessibleObjectFromWindow calls. However, server components must understand and handle it.

© 1997 Microsoft Corporation. All rights reserved. Legal Notices.