ISystemMediaTransportControls::remove_ButtonPressed method
[The feature associated with this page, Media Transport Controls, is a legacy feature. It has been superseded by System Media Transport Controls. System Media Transport Controls has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use System Media Transport Controls instead of Media Transport Controls, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
Removes the specified event handler for the ButtonPressed event.
Syntax
HRESULT remove_ButtonPressed(
EventRegistrationToken token
);
Parameters
-
token
-
Type: EventRegistrationToken
The registration token for the event handler. The token is obtained from the add_ButtonPressed method.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Minimum supported client |
Windows 10 [desktop apps only] |
Minimum supported server |
Windows Server 2016 [desktop apps only] |
Header |
|
IDL |
|