ObjectFromLresult
The ObjectFromLresult function retrieves a requested interface pointer for an accessible object based on a previously generated object reference.
This function is designed for internal use by Active Accessibility and is documented for informational purposes only. Neither clients nor servers should call this function.
STDAPI ObjectFromLresult(
LRESULT lResult,REFIIDriid,WPARAMwParam,void** ppvObject);
Parameters
- lResult
[in] A 32-bit value returned by a previous successful call to the LresultFromObject function. - riid
[in] Reference identifier of the interface to be retrieved. This is IID_IAccessible. - wParam
[in] Additional information is provided in the associated wParam parameter of the WM_GETOBJECT message. - ppvObject
[out] Receives the address of the interface pointer to return to the client.
Return Values
If successful, returns S_OK.
If not successful, returns one of the following standard COM error codes.
Error | Description |
---|---|
E_INVALIDARG | One or more arguments are invalid. This occurs when the lResult parameter specified is not a value obtained by a call to LresultFromObject, or when lResult is a value used on a previous call to ObjectFromLresult. |
E_NOINTERFACE | The object does not support the interface specified by the riid parameter. |
E_UNEXPECTED | An unexpected error occurred. |
Requirements
** 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 Oleacc.h.
** Library:** Use Oleacc.lib.