Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Registers an event handler for the DeviceArrival event.
Syntax
HRESULT add_DeviceArrival(
[in] DeviceControllerFinderHandler *handler,
[out, retval] EventRegistrationToken *token
);
Parameters
handler [in]
A DeviceControllerFinderHandler event handler function.token [out, retval]
Reference to a token that can be used to unregister the event handler.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
S_OK | The method succeeded. |
Remarks
To unregister the event handler that was registered by this method, pass the token value to the remove_DeviceArrival method.