Export (0) Print
Expand All

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 Microsoft Active Accessibility and is documented for informational purposes only. Neither clients nor servers should call this function.

Syntax


STDAPI ObjectFromLresult(
  _In_   LRESULT lResult,
  _In_   REFIID riid,
  _In_   WPARAM wParam,
  _Out_  void **ppvObject
);

Parameters

lResult [in]

Type: LRESULT

A 32-bit value returned by a previous successful call to the LresultFromObject function.

riid [in]

Type: REFIID

Reference identifier of the interface to be retrieved. This is IID_IAccessible.

wParam [in]

Type: WPARAM

Value sent by the associated WM_GETOBJECT message in its wParam parameter.

ppvObject [out]

Type: void**

Receives the address of the IAccessible interface on the object that corresponds to the WM_GETOBJECT message.

Return value

Type: STDAPI

If successful, returns S_OK.

If not successful, returns one of the following standard COM error codes.

Return codeDescription
E_INVALIDARG

One or more arguments are not valid. 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 specified in the ppvObject parameter does not support the interface specified by the riid parameter.

E_OUTOFMEMORY

Insufficient memory to store the object reference.

E_UNEXPECTED

An unexpected error occurred.

 

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Redistributable

Active Accessibility 2.0 RDK on Windows NT 4.0 with SP6 and later and Windows 98

Header

Oleacc.h

Library

Oleacc.lib

DLL

Oleacc.dll

See also

WM_GETOBJECT Window Message

 

 

Community Additions

ADD
Show:
© 2014 Microsoft