IRemoteToolStream::SendCommand (Compact 2013)
3/26/2014
Sends a command to the device.
The response from the device should be obtained asynchronously by using IRemoteToolCommandSink.
Syntax
HRESULT SendCommand([in] IRemoteToolCommand *pCommand)
Parameters
- pCommand
The command to send to the device.
Return Value
E_INVALIDARG if pCommand is NULL.
ERROR_INVALID_DATA if the stream has not been instantiated.
RT_ERROR_DISCONNECTED (0x80040001) if the stream is currently disconnected from the device.
E_OUTOFMEMORY if the desktop is in a low memory condition.
RT_ERROR_ALLOCATEDSIZETOOSMALL (0x80040005) if too much data was added to pCommand and cannot be sent to the device.
S_OK if success.
See Also
Reference
IRemoteToolStream
IRemoteToolCommandSink
IRemoteToolStream::SendCommand2