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

# IUnknown\_EnableModeless(3w)

## NAME

**IUnknown\_EnableModeless** (SHLWAPI.355)

## SYNOPSIS

HRESULT IUnknown\_EnableModeless\
  (\
   IUnknown\* *lpUnknown*,\
   BOOL      *bModeless*\
  )

## DESCRIPTION

Change the modality of a shell object.

## PARAMS

*lpUnknown* **\[In\]**  Object to make modeless.

*bModeless* **\[In\]**  **TRUE**=Make modeless, **FALSE**=Make modal.

## RETURNS

**Success:** **S\_OK**. The modality *lpUnknown* is changed.

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

## NOTES

*lpUnknown* must support the **IOleInPlaceFrame** interface, the IInternetSecurityMgrSite interface, the **IShellBrowser** interface the **IDocHostUIHandler** interface, or the **IOleInPlaceActiveObject** interface, or this call will fail.

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