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

# SHRemoveAllSubMenus(3w)

## NAME

**SHRemoveAllSubMenus** (SHLWAPI.180)

## SYNOPSIS

DWORD SHRemoveAllSubMenus\
  (\
   HMENU *hMenu*\
  )

## DESCRIPTION

Remove all sub-menus from a menu.

## PARAMS

*hMenu* **\[In\]**  Menu to remove sub-menus from.

## RETURNS

**Success:** **0.** All sub-menus under *hMenu* are removed

**Failure:** **-1**, if any parameter is invalid

## 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"**.
