Windows Ribbon Framework Tab Change Event

Arno Pienaar 1 Reputation point
2020-08-25T15:00:36.883+00:00

I'm struggling to find a sample or example code of how to implement and use the Eventing Manager for the Windows Ribbon Framework.

I would like this to use the OnEvent method in the Event Logger.

Would someone please be able to assist with this?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,422 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Rita Han - MSFT 2,161 Reputation points
    2020-08-26T03:29:45.267+00:00

    Hello,

    To receive ribbon event notifications from the Ribbon framework you can register an Event Tracing for Windows (ETW) listener. Event Trace consumer is for this purpose.

    Consumers can process events from a log file or in real time. The OpenTrace function opens a real-time trace session or log file for consuming. The name of the event tracing session (LoggerName / Session Name) for Windows Ribbon Framework is EventLog-Microsoft-Windows-UIRibbon-Diagnostic. Refer to Consuming Events for detailed information.

    Supported events for Tab as below:

    20374-20200826-1.png

    Refer to EtwConsumer official sample for how to use the ETW consumer APIs.

    Thank you!

    0 comments No comments

  2. harborsiem 1 Reputation point
    2020-11-22T18:36:59.74+00:00

    @Arno Pienaar
    Have a look to WindowsRibbon. There is a Windows Ribbon implementation for .NET WinForms which implements the EventingManager

    0 comments No comments