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

# IUnknown\_GetWindow(3w)

## NAME

**IUnknown\_GetWindow** (SHLWAPI.172)

## SYNOPSIS

HRESULT IUnknown\_GetWindow\
  (\
   IUnknown\* *lpUnknown*,\
   HWND\*     *lphWnd*\
  )

## DESCRIPTION

Get the window handle of an object.

## PARAMS

*lpUnknown* **\[In\]**  Object to get the window handle of.

*lphWnd* **\[Out\]**  Destination for window handle.

## RETURNS

**Success:** **S\_OK**. *lphWnd* contains the objects window handle.

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

## NOTES

*lpUnknown* is expected to support one of the following interfaces: IOleWindow(), **IInternetSecurityMgrSite(3w)**, or **IShellView(3w)**.

## IMPLEMENTATION

Declared in **"shlwapi.h"**.

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

Debug channel **"shell"**.
