Share via


IRemoteToolDevice::Advise (Compact 2013)

3/26/2014

When called, this registers a callback to be called when the device connection status changes.

Syntax

HRESULT Advise([in] IRemoteToolDeviceSink* pDeviceSink, [out] DWORD_PTR* pContext)

Parameters

  • pDeviceSink
    Pointer to an implementation of IRemoteToolDeviceSink to be called when the device’s connection status changes.
  • pContext
    The index of the sink interface in the context of the associated device.

    This will be used when you call IRemoteToolDevice::UnAdvise.

Property Value/Return Value

E_INVALIDARG if pDeviceSink or pContext are NULL.

S_OK if success.

See Also

Reference

IRemoteToolDevice
IRemoteToolDeviceSink