OleAccCreateStdAccessibleObject Method
Creates an accessible object with the methods and properties of the specified type of system-provided user interface element.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("OleAcc.dll">]
Public Shared Function CreateStdAccessibleObject (
hWnd As IntPtr,
idObject As Integer,
ByRef refIid As Guid,
<OutAttribute> ByRef refObj As Object
) As HResult
Dim hWnd As IntPtr
Dim idObject As Integer
Dim refIid As Guid
Dim refObj As Object
Dim returnValue As HResult
returnValue = OleAcc.CreateStdAccessibleObject(hWnd,
idObject, refIid, refObj)
public:
[DllImportAttribute(L"OleAcc.dll")]
static HResult CreateStdAccessibleObject(
IntPtr hWnd,
int idObject,
Guid% refIid,
[OutAttribute] Object^% refObj
)
[<DllImportAttribute("OleAcc.dll")>]
static member CreateStdAccessibleObject :
hWnd : IntPtr *
idObject : int *
refIid : Guid byref *
refObj : Object byref -> HResult
No code example is currently available or this language may not be supported.
- 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.
HResult
If successful, returns
S_OK.
If not successful, returns a
HResult error code.