NOW LOADING

MidiServiceSessionInfo


Reporting information about a single open session in the MIDI Service
Namespace Microsoft.Windows.Devices.Midi2.Reporting
Type Name MidiServiceSessionInfo
Type WinRT Runtime Class
IDL MidiServiceSessionInfo.idl
Library Microsoft.Windows.Devices.Midi2.dll

This class represents an open Windows MIDI Services session.

Properties

Property Description
SessionId The generated internal GUID for the session
ProcessId The process id for the session
ProcessName The process name for the session, captured when the session was created
SessionName The name of the session provided through the API
StartTime The date and time the session was created
Connections A list of MidiServiceSessionConnectionInfo objects detailing the connections currently open for this session

Example

The Windows MIDI Services Console app uses the MidiServiceSessionInfo MidiServiceSessionConnectionInfo and the MidiReporting class to display active sessions.

Console midi enum sessions

In this case, you can see three open sessions. The process name and process id are on the left. The session name is in the text on the right, after the word “Session”, and the start time is the date and time in green. Finally, the list of connections for each session is underneath the session information.

Didn't find what you were looking for?

Windows MIDI Services is an open source project with all source available on GitHub. We have a great community on Discord as well. Between GitHub and Discord, you should find the information you are looking for.