---
name: "SHInvokeDefaultCommand"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/SHInvokeDefaultCommand"
---

# SHInvokeDefaultCommand(3w)

## NAME

**SHInvokeDefaultCommand** (SHLWAPI.279)

## SYNOPSIS

HRESULT SHInvokeDefaultCommand\
  (\
   HWND          *hWnd*,\
   IShellFolder\* *lpFolder*,\
   LPCITEMIDLIST *lpApidl*\
  )

## DESCRIPTION

Get and show a context menu from a shell folder.

## PARAMS

*hWnd* **\[In\]**  Window displaying the shell folder.

*lpFolder* **\[In\]**  **IShellFolder** interface.

*lpApidl* **\[In\]**  Id for the particular folder desired.

## RETURNS

**Success:** **S\_OK**.

**Failure:** An **HRESULT** error code indicating the error.

## IMPLEMENTATION

Exported by ordinal only. Use **[GetProcAddress(3w)](/GetProcAddress/3w.md)** to obtain a pointer to the function.

Implemented in **"dlls/shlwapi/ordinal.c"**.

Debug channel **"shell"**.
