IInitializeWithWindow::Initialize method

Specifies an owner window to be used by a Windows Runtime object that is used in a desktop app.

Syntax

HRESULT Initialize(
  HWND hwnd
);

Parameters

hwnd

The handle of the window to be used as the owner window.

Return Value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
Windows version Windows 8 [desktop apps only] Windows Server 2012 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)

See Also

IInitializeWithWindow