This method provides the means to add a notification sink to a specified device. Through this sink, the device can send a notification to an application on a timed basis.
HRESULT IVIO_Device::SetNotify ( const LPVARIANT pParameterData, IVIO_EventSink *pEventSink, DWORD dwFreq );
One of the values described in the following table is returned.
Value |
Description |
S_OK | Notification sink was successfully added to the device. |
E_NOTIMPL | The SetNotify method is not implemented for the device component. This may result if only write access is available on the device component. |
E_POINTER | The pEventSink pointer is invalid. |
E_ACCESSDENIED | A notification sink is already in place for the device component, or the device has exclusive read access. |
E_UNEXPECTED | An unexpected error occurred while trying to add the notification sink to the device component. |