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

# IUnknown\_Exec(3w)

## NAME

**IUnknown\_Exec** (SHLWAPI.164)

## SYNOPSIS

HRESULT IUnknown\_Exec\
  (\
   IUnknown\* *lpUnknown*,\
   REFGUID   *pguidCmdGroup*,\
   DWORD     *nCmdID*,\
   DWORD     *nCmdexecopt*,\
   VARIANT\*  *pvaIn*,\
   VARIANT\*  *pvaOut*\
  )

## DESCRIPTION

Call **IOleCommandTarget\_Exec(3w)** on an object.

## PARAMS

*lpUnknown* **\[In\]**  Object supporting the **IOleCommandTarget** interface.

*pguidCmdGroup* **\[In\]**  **GUID** for the command group.

## RETURNS

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

**Failure:** **E\_FAIL**, if *lpUnknown* is **NULL**. **E\_NOINTERFACE**, if *lpUnknown* does not support IOleCommandTarget. Otherwise, an error code from **IOleCommandTarget\_Exec(3w)**.

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