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(
  [in]  HWND hwnd
);

Parameters

hwnd [in]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

See also

IInitializeWithWindow

 

 

Community Additions

ADD
Show:
© 2014 Microsoft