Export (0) Print
Expand All

IAccPropServices::DecomposeHwndIdentityString method

Use this method to determine the HWND, object ID, and child ID for the accessible element identified by the identity string.

Syntax


HRESULT DecomposeHwndIdentityString(
  [in]   const BYTE *pIDString,
  [in]   DWORD dwIDStringLen,
  [out]  HWND *phwnd,
  [out]  DWORD *pidObject,
  [out]  DWORD *pidChild
);

Parameters

pIDString [in]

Type: const BYTE*

Pointer to a buffer containing identity string of an HWND-based accessible element.

dwIDStringLen [in]

Type: DWORD

Specifies the length of the identity string specified by pIDString.

phwnd [out]

Type: HWND*

Pointer to a buffer that receives the HWND of the accessible element.

pidObject [out]

Type: DWORD*

Pointer to a buffer that receives the object ID of the accessible element.

pidChild [out]

Type: DWORD*

Pointer to a buffer that receives the child ID of the accessible element.

Return value

Type: HRESULT

If successful, returns S_OK.

Returns E_INVALIDARG if phwnd, pidObject, or pidChild are not valid, or if the given identity string is not a HWND-based identity string.

May return other error codes under exceptional error conditions such as low memory.

Remarks

This method succeeds only if the provided identity string is a HWND-based identity string. This method is useful when used in an IAccPropServer callback server that was registered with ANNO_CONTAINER scope because it allows the server to determine, from the given identity string, the child element (idChild) for which the client is calling the server.

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 (include OleAcc.h Include Initguid.h first.)

DLL

Oleacc.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft