INameSpaceTreeControlEvents::OnBeforeContextMenu method
Called before a context menu is displayed; allows client to add additional menu entries.
Syntax
HRESULT OnBeforeContextMenu( [in, optional] IShellItem *psi, [in] REFIID riid, [out] void **ppv );
Parameters
- psi [in, optional]
-
Type: IShellItem*
A pointer to the IShellItem from which the context menu is generated. This value can be NULL.
- riid [in]
-
Type: REFIID
Reference to the IID of the context menu.
- ppv [out]
-
Type: void**
When this methods returns, contains the address of a pointer to the interface specified by riid.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|
See also
Show: