OleAccCreateStdAccessibleObject Method

Creates an accessible object with the methods and properties of the specified type of system-provided user interface element.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("OleAcc.dll")]
public static HResult CreateStdAccessibleObject(
	IntPtr hWnd,
	int idObject,
	ref Guid refIid,
	out Object refObj
)

Parameters

hWnd  IntPtr
A window handle of the system-provided user interface element (a control) for which an accessible object is created.
idObject  Int32
Object ID. This value is usually OBJID_CLIENT, but it may be another object identifier.
refIid  Guid
Reference identifier of the requested interface.

This value is one of the following: IID_IAccessible, IID_IDispatch, IID_IEnumVARIANT, or IID_IUnknown.

refObj  Object
A variable that receives the address of the specified interface.

Return Value

HResult
If successful, returns S_OK.

If not successful, returns a HResult error code.

Remarks

See Also