INameSpaceTreeAccessible::OnGetDefaultAccessibilityAction method (shobjidl.h)

Gets the default accessibility action for a Shell item.

Syntax

HRESULT OnGetDefaultAccessibilityAction(
  [in]  IShellItem *psi,
  [out] BSTR       *pbstrDefaultAction
);

Parameters

[in] psi

Type: IShellItem*

Pointer to the IShellItem.

[out] pbstrDefaultAction

Type: BSTR*

When this method returns, contains a BSTR that specifies the default, accessibility action.

Return value

Type: HRESULT

Returns S_OK if successful, or E_OUTOFMEMORY otherwise.

Remarks

This method is called when the default accessibility action for a Shell item is retrieved.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl.h