Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
Registers an event handler for the DeviceArrival event.
Syntax
HRESULT add_DeviceArrival(
[in] ABI::Windows::Media::Streaming::IDeviceControllerFinderHandler *handler,
[out, retval] EventRegistrationToken *token
);
Parameters
[in] handler
A DeviceControllerFinderHandler event handler function.
[out, retval] token
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 |
|---|---|
|
The method succeeded. |
Remarks
To unregister the event handler that was registered by this method, pass the token value to the remove_DeviceArrival method.
Requirements
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | windows.media.streaming.h |