There's no sample for using the COM extensions for sending/receiving messages. This test, however, shows how to use them https://github.com/microsoft/MIDI/blob/main/src/app-sdk/tests/Service.integrationtests/MidiComExtensionsTests.cpp