Compartilhar via


IRemoteToolStream::Advise (Compact 2013)

3/26/2014

Registers a callback to be called when a command is received from a device.

Syntax

HRESULT Advise([in] IRemoteToolCommandSink* pCommandSink, [out] DWORD_PTR* pContext)

Parameters

  • pCommandSink
    Pointer to an implementation of IRemoteToolCommandSink that is called when a command is received from a device.
  • pContext
    The index of the sink interface in the context of the associated device. This will be used when you call IRemoteToolStream::UnAdvise.

Return Value

E_INVALIDARG if pCommandSink or pContext are NULL.

S_OK if success.

See Also

Reference

IRemoteToolStream
ICcServer
ICcDatastore