-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #277 from microsoft/pete-dev
Message metadata processing updates
- Loading branch information
Showing
43 changed files
with
660 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<Include> | ||
<?define SetupVersionName="Developer Preview 5" ?> | ||
<?define SetupVersionNumber="1.0.24044.2146" ?> | ||
<?define SetupVersionNumber="1.0.24045.0225" ?> | ||
</Include> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.Windows.CppWinRT" version="2.0.230706.1" targetFramework="native" /> | ||
<package id="Windows.Devices.Midi2" version="1.0.0-preview.3-0129" targetFramework="native" /> | ||
<package id="Microsoft.Windows.CppWinRT" version="2.0.240111.5" targetFramework="native" /> | ||
<package id="Windows.Devices.Midi2" version="1.0.0-preview.3-0157" targetFramework="native" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.Windows.CppWinRT" version="2.0.240111.5" targetFramework="native" /> | ||
<package id="Windows.Devices.Midi2" version="1.0.0-preview.3-0156" targetFramework="native" /> | ||
<package id="Windows.Devices.Midi2" version="1.0.0-preview.3-0157" targetFramework="native" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
src/api/Abstraction/BleMidiAbstraction/Midi2.BluetoothMidiConfigurationManager.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License | ||
// ============================================================================ | ||
// This is part of the Windows MIDI Services App API and should be used | ||
// in your Windows application via an official binary distribution. | ||
// Further information: https://github.com/microsoft/MIDI/ | ||
// ============================================================================ | ||
|
||
#pragma once | ||
|
||
#include "pch.h" | ||
|
||
_Use_decl_annotations_ | ||
HRESULT | ||
CMidi2BluetoothMidiConfigurationManager::Initialize( | ||
GUID AbstractionId, | ||
IUnknown* MidiDeviceManager) | ||
{ | ||
TraceLoggingWrite( | ||
MidiBluetoothMidiAbstractionTelemetryProvider::Provider(), | ||
__FUNCTION__, | ||
TraceLoggingLevel(WINEVENT_LEVEL_INFO), | ||
TraceLoggingPointer(this, "this") | ||
); | ||
|
||
RETURN_HR_IF_NULL(E_INVALIDARG, MidiDeviceManager); | ||
RETURN_IF_FAILED(MidiDeviceManager->QueryInterface(__uuidof(IMidiDeviceManagerInterface), (void**)&m_MidiDeviceManager)); | ||
|
||
m_abstractionId = AbstractionId; | ||
|
||
return S_OK; | ||
} | ||
|
||
_Use_decl_annotations_ | ||
HRESULT | ||
CMidi2BluetoothMidiConfigurationManager::UpdateConfiguration( | ||
LPCWSTR ConfigurationJsonSection, | ||
BOOL IsFromConfigurationFile, | ||
BSTR* Response) | ||
{ | ||
TraceLoggingWrite( | ||
MidiBluetoothMidiAbstractionTelemetryProvider::Provider(), | ||
__FUNCTION__, | ||
TraceLoggingLevel(WINEVENT_LEVEL_INFO), | ||
TraceLoggingPointer(this, "this") | ||
); | ||
|
||
|
||
UNREFERENCED_PARAMETER(ConfigurationJsonSection); | ||
UNREFERENCED_PARAMETER(IsFromConfigurationFile); | ||
UNREFERENCED_PARAMETER(Response); | ||
|
||
return E_FAIL; | ||
} | ||
|
||
_Use_decl_annotations_ | ||
HRESULT | ||
CMidi2BluetoothMidiConfigurationManager::Cleanup() | ||
{ | ||
TraceLoggingWrite( | ||
MidiBluetoothMidiAbstractionTelemetryProvider::Provider(), | ||
__FUNCTION__, | ||
TraceLoggingLevel(WINEVENT_LEVEL_INFO), | ||
TraceLoggingPointer(this, "this") | ||
); | ||
|
||
|
||
return S_OK; | ||
} |
27 changes: 27 additions & 0 deletions
27
src/api/Abstraction/BleMidiAbstraction/Midi2.BluetoothMidiConfigurationManager.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License | ||
// ============================================================================ | ||
// This is part of the Windows MIDI Services App API and should be used | ||
// in your Windows application via an official binary distribution. | ||
// Further information: https://github.com/microsoft/MIDI/ | ||
// ============================================================================ | ||
|
||
#pragma once | ||
|
||
|
||
class CMidi2BluetoothMidiConfigurationManager : | ||
public Microsoft::WRL::RuntimeClass< | ||
Microsoft::WRL::RuntimeClassFlags<Microsoft::WRL::ClassicCom>, | ||
IMidiAbstractionConfigurationManager> | ||
|
||
{ | ||
public: | ||
STDMETHOD(Initialize(_In_ GUID AbstractionId, _In_ IUnknown* MidiDeviceManager)); | ||
STDMETHOD(UpdateConfiguration(_In_ LPCWSTR ConfigurationJsonSection, _In_ BOOL IsFromConfigurationFile, _Out_ BSTR* Response)); | ||
STDMETHOD(Cleanup)(); | ||
|
||
private: | ||
wil::com_ptr_nothrow<IMidiDeviceManagerInterface> m_MidiDeviceManager; | ||
|
||
GUID m_abstractionId; // kept for convenience | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.