IMetroMode::Advise method

Applies to: desktop apps only

Registers an advise sink object to receive notification of changes to the display.

Syntax

HRESULT Advise(
  [in]   IImmersiveModeNotification *pCallback,
  [out]  DWORD *pdwCookie
);

Parameters

  • pCallback [in]
    The client's advise sink that receives outgoing calls from the connection point.

  • pdwCookie [out]
    A token that uniquely identifies this connection. Use this token to delete the connection by passing it to the Unadvise method.

Return value

This method can return one of these values.

Return code Description
E_INVALIDARG

pdwCookie is NULL.

 

Requirements

Minimum supported client

Windows 8 Release Preview

Minimum supported server

Windows Server 2012

Header

Shobjidl.h

IDL

Shobjidl.idl

See also

IMetroMode

 

 

Send comments about this topic to Microsoft

Build date: 7/3/2012