diff --git a/.gitignore b/.gitignore index def29b61f..19c706f4d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,16 @@ ## ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore +# binaries for staging builds +build/staging/app-sdk/* +build/dependencies/*.exe +build/dependencies/*.msi + + +# annoying that these solution-level nuget restores create folders at the root and not /packages +/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.*/* +/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.*/* + # Dump files *.etl *.dmp @@ -29,12 +39,17 @@ x64/ x86/ [Aa][Rr][Mm]/ [Aa][Rr][Mm]64/ +[Aa][Rr][Mm]64[Ee][Cc]/ bld/ [Bb]in/ [Oo]bj/ [Ll]og/ [Ll]ogs/ +# WinRT Build results +*.winmd +*.pri + # Visual Studio 2015/2017 cache/options directory .vs/ # Uncomment if you have tasks that create the project's static files in wwwroot @@ -359,3 +374,4 @@ build/dependencies/winui/WindowsAppRuntimeInstall-x64.exe build/dependencies/winui/WindowsAppRuntimeInstall-arm64.exe *.zip *.debugtarget +*.winmd diff --git a/.nuke/build.schema.json b/.nuke/build.schema.json index 34c49f24f..1415c0364 100644 --- a/.nuke/build.schema.json +++ b/.nuke/build.schema.json @@ -68,10 +68,12 @@ "BuildAndPublishAll", "BuildAppSdkRuntimeInstaller", "BuildConsoleApp", + "BuildConsoleAppInstaller", "BuildCppSamples", "BuildServiceAndPlugins", "BuildServiceAndPluginsInstaller", "BuildSettingsApp", + "BuildUserToolsSharedComponents", "Prerequisites" ] } @@ -86,10 +88,12 @@ "BuildAndPublishAll", "BuildAppSdkRuntimeInstaller", "BuildConsoleApp", + "BuildConsoleAppInstaller", "BuildCppSamples", "BuildServiceAndPlugins", "BuildServiceAndPluginsInstaller", "BuildSettingsApp", + "BuildUserToolsSharedComponents", "Prerequisites" ] } diff --git a/build/nuke_build/Build.cs b/build/nuke_build/Build.cs index ceb556e00..d3b342212 100644 --- a/build/nuke_build/Build.cs +++ b/build/nuke_build/Build.cs @@ -37,17 +37,18 @@ class Build : NukeBuild string NuGetVersionName => "preview.6"; // we set these here, especially the time, so it's the same for all platforms in the single build - string SetupBuildMajorMinor => "1.0"; - - - string SetupBuildDateNumber => DateTime.Now.ToString("yy") + DateTime.Now.DayOfYear.ToString("000"); // YYddd where ddd is the day number for the year - string SetupBuildTimeNumber => DateTime.Now.ToString("HHmm"); // HHmm + string SetupBuildMajorMinor = "1.0"; + string SetupBuildDateNumber = DateTime.Now.ToString("yy") + DateTime.Now.DayOfYear.ToString("000"); // YYddd where ddd is the day number for the year + string SetupBuildTimeNumber = DateTime.Now.ToString("HHmm"); // HHmm string NugetFullVersionString => SetupBuildMajorMinor + "." + SetupBuildDateNumber + "." + SetupBuildTimeNumber + "-" + NuGetVersionName; string NugetFullPackageId => "Microsoft.Windows.Devices.Midi2"; + AbsolutePath _thisReleaseFolder; + + // =========================================================== // directories @@ -63,6 +64,9 @@ class Build : NukeBuild AbsolutePath ReleaseRootFolder => BuildRootFolder / "release"; AbsolutePath AppSdkNugetOutputFolder => ReleaseRootFolder / "nuget"; + AbsolutePath ThisReleaseFolder => _thisReleaseFolder; + + AbsolutePath AppSdkImplementationInstallerReleaseFolder => BuildRootFolder / "app-sdk-impl"; AbsolutePath SourceRootFolder => NukeBuild.RootDirectory / "src"; @@ -70,6 +74,7 @@ class Build : NukeBuild AbsolutePath ApiSolutionFolder => SourceRootFolder / "api"; AbsolutePath InBoxComponentsSetupSolutionFolder => SourceRootFolder / "oob-setup"; + AbsolutePath ApiReferenceFolder => SourceRootFolder / "shared" / "api-ref"; @@ -78,15 +83,16 @@ class Build : NukeBuild AbsolutePath MidiConsoleSolutionFolder => UserToolsRootFolder / "midi-console"; AbsolutePath MidiConsoleStagingFolder => StagingRootFolder / "midi-console"; + AbsolutePath ConsoleSetupSolutionFolder => UserToolsRootFolder / "midi-console-setup"; AbsolutePath MidiSettingsSolutionFolder => UserToolsRootFolder / "midi-settings"; AbsolutePath MidiSettingsStagingFolder => StagingRootFolder / "midi-settings"; + AbsolutePath MidiSettingsSetupSolutionFolder => UserToolsRootFolder / "midi-settings-setup"; // AbsolutePath RustWinRTSamplesRootFolder => SamplesRootFolder / "rust-winrt"; // AbsolutePath ElectronJSSamplesRootFolder => SamplesRootFolder / "electron-js"; - AbsolutePath SetupBundleInfoIncludeFile => StagingRootFolder / "version" / "BundleInfo.wxi"; @@ -96,8 +102,8 @@ class Build : NukeBuild AbsolutePath SamplesCSWinRTSolutionFolder => SamplesRootFolder / "csharp-net"; - string[] AllPlatforms => new string[] { "Arm64", "Arm64EC", "x64" }; - string[] ServicePlatforms => new string[] { "Arm64", "x64" }; + string[] InProcPlatforms => new string[] { "Arm64", "Arm64EC", "x64" }; + string[] OutOfProcPlatforms => new string[] { "Arm64", "x64" }; public static int Main () => Execute(x => x.BuildAndPublishAll); @@ -113,7 +119,7 @@ class Build : NukeBuild Environment.SetEnvironmentVariable("MIDI_REPO_ROOT", NukeBuild.RootDirectory); } - + _thisReleaseFolder = $"{ReleaseRootFolder / SetupVersionName} ({DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss")})"; }); @@ -122,7 +128,7 @@ class Build : NukeBuild .DependsOn(Prerequisites) .Executes(() => { - foreach (var platform in ServicePlatforms) + foreach (var platform in OutOfProcPlatforms) { string solutionDir = ApiSolutionFolder.ToString() + @"\"; @@ -184,7 +190,7 @@ class Build : NukeBuild var intermediateFolder = ApiSolutionFolder / "vsfiles" / "intermediate"; - foreach (var platform in AllPlatforms) + foreach (var platform in InProcPlatforms) { var referenceFiles = new List(); @@ -213,7 +219,7 @@ class Build : NukeBuild .DependsOn(BuildServiceAndPlugins) .Executes(() => { - foreach (var platform in AllPlatforms) + foreach (var platform in InProcPlatforms) { string solutionDir = AppSdkSolutionFolder.ToString() + @"\"; @@ -243,7 +249,7 @@ class Build : NukeBuild var sdkOutputRootFolder = AppSdkSolutionFolder / "vsfiles" / "out"; - foreach (var platform in AllPlatforms) + foreach (var platform in InProcPlatforms) { var sdkBinaries = new List(); @@ -284,7 +290,11 @@ class Build : NukeBuild FileSystemTasks.CopyFileToDirectory(file, AppSdkStagingFolder / platform, FileExistsPolicy.Overwrite, true); } + // MIDI diagnostics app FileSystemTasks.CopyFileToDirectory(sdkOutputRootFolder / "mididiag" / platform / Configuration.Release / $"mididiag.exe", AppSdkStagingFolder / platform, FileExistsPolicy.Overwrite, true); + + // sample manifest + FileSystemTasks.CopyFileToDirectory(AppSdkSolutionFolder / "MyMidiApp.exe.manifest", AppSdkStagingFolder / platform, FileExistsPolicy.Overwrite, true); } }); @@ -297,7 +307,7 @@ class Build : NukeBuild .Executes(() => { // we build for Arm64 and x64. No EC required here - foreach (var platform in ServicePlatforms) + foreach (var platform in OutOfProcPlatforms) { UpdateSetupBundleInfoIncludeFile(platform); @@ -331,7 +341,7 @@ class Build : NukeBuild FileSystemTasks.CopyFile( setupSolutionFolder / "main-bundle" / "bin" / platform / Configuration.Release / "WindowsMidiServicesSdkRuntimeSetup.exe", - ReleaseRootFolder / $"Windows MIDI Services (App SDK Runtime) - {fullSetupVersionString}-{platform.ToLower()}.exe"); + ThisReleaseFolder / $"Windows MIDI Services (App SDK Runtime) - {fullSetupVersionString}-{platform.ToLower()}.exe"); } @@ -356,7 +366,7 @@ void UpdateSetupBundleInfoIncludeFile(string platform) .Executes(() => { // we build for Arm64 and x64. No EC required here - foreach (var platform in ServicePlatforms) + foreach (var platform in OutOfProcPlatforms) { UpdateSetupBundleInfoIncludeFile(platform); @@ -388,15 +398,24 @@ void UpdateSetupBundleInfoIncludeFile(string platform) // do this copy if a new setup file was created. Maybe do a before/after date/time check? FileSystemTasks.CopyFile( InBoxComponentsSetupSolutionFolder / "main-bundle" / "bin" / platform / Configuration.Release / "WindowsMidiServicesInBoxComponentsSetup.exe", - ReleaseRootFolder / $"Windows MIDI Services (In-Box Service) - {fullSetupVersionString}-{platform.ToLower()}.exe"); + ThisReleaseFolder / $"Windows MIDI Services (In-Box Service) - {fullSetupVersionString}-{platform.ToLower()}.exe"); } }); + Target BuildUserToolsSharedComponents => _ => _ + .DependsOn(Prerequisites) + .DependsOn(BuildAndPackAllAppSDKs) + .Executes(() => + { + // build x64 and Arm64 + }); + Target BuildSettingsApp => _ => _ .DependsOn(Prerequisites) .DependsOn(BuildAndPackAllAppSDKs) + .DependsOn(BuildUserToolsSharedComponents) .Executes(() => { // update nuget packages @@ -407,11 +426,160 @@ void UpdateSetupBundleInfoIncludeFile(string platform) Target BuildConsoleApp => _ => _ .DependsOn(Prerequisites) .DependsOn(BuildAndPackAllAppSDKs) + .DependsOn(BuildUserToolsSharedComponents) .Executes(() => { - // update nuget packages + var solution = MidiConsoleSolutionFolder / "midi-console.sln"; + + // for the MIDI nuget package + NuGetTasks.NuGetInstall(_ => _ + .SetProcessWorkingDirectory(MidiConsoleSolutionFolder) + .SetPreRelease(true) + .SetSource(AppSdkNugetOutputFolder) + .SetPackageID(NugetFullPackageId) + ); + + NuGetTasks.NuGetRestore(_ => _ + .SetProcessWorkingDirectory(MidiConsoleSolutionFolder) + .SetSolutionDirectory(MidiConsoleSolutionFolder) + .SetSource(AppSdkNugetOutputFolder) + ); + + // build x64 and Arm64, no Arm64EC + foreach (var platform in OutOfProcPlatforms) + { + string solutionDir = MidiConsoleSolutionFolder.ToString() + @"\"; + + string rid = platform.ToLower() == "arm64" ? "win-arm64" : "win-x64"; + + + //var msbuildProperties = new Dictionary(); + //msbuildProperties.Add("Platform", platform); + //msbuildProperties.Add("SolutionDir", solutionDir); // to include trailing slash + //msbuildProperties.Add("RuntimeIdentifier", rid); + ////msbuildProperties.Add("NoWarn", "MSB3271"); // winmd and dll platform mismatch with Arm64EC + + //Console.Out.WriteLine($"----------------------------------------------------------------------"); + //Console.Out.WriteLine($"Solution: {solution}"); + //Console.Out.WriteLine($"SolutionDir: {solutionDir}"); + //Console.Out.WriteLine($"Platform: {platform}"); + //Console.Out.WriteLine($"RID: {rid}"); + + + DotNetTasks.DotNetBuild(_ => _ + .SetProjectFile(MidiConsoleSolutionFolder / "Midi" / "Midi.csproj") + .SetConfiguration(Configuration.Release) + .SetPublishSingleFile(false) + .SetPublishTrimmed(false) + .SetSelfContained(false) + .SetRuntime(rid) + ); + + // copy output to staging folder + + // TODO: This doesn't deal with any localization content + + var consoleOutputFolder = MidiConsoleSolutionFolder / "Midi" / "bin" / Configuration.Release / "net8.0-windows10.0.20348.0" / rid ; + //var runtimesFolder = consoleOutputFolder / "runtimes" / rid / "native"; + var runtimesFolder = consoleOutputFolder; + + var stagingFolder = MidiConsoleStagingFolder / platform; + + FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "midi.exe", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "midi.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "midi.deps.json", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "midi.runtimeconfig.json", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "midi.exe.manifest", stagingFolder, FileExistsPolicy.Overwrite, true); + + FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "WinRT.Runtime.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + + FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "Microsoft.Windows.Devices.Midi2.NetProjection.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "Microsoft.Windows.SDK.NET.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + + FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "Spectre.Console.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "Spectre.Console.Cli.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + + FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "System.CodeDom.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "System.Diagnostics.EventLog.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "System.Diagnostics.EventLog.Messages.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "System.Management.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "System.ServiceProcess.ServiceController.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.ServiceConfig.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.ClientPlugins.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.Diagnostics.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.Messages.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.Initialization.dll", stagingFolder, FileExistsPolicy.Overwrite, true); + + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.pri", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.ServiceConfig.pri", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.ClientPlugins.pri", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.Diagnostics.pri", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.Messages.pri", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri", stagingFolder, FileExistsPolicy.Overwrite, true); + FileSystemTasks.CopyFileToDirectory(runtimesFolder / "Microsoft.Windows.Devices.Midi2.Initialization.pri", stagingFolder, FileExistsPolicy.Overwrite, true); + + //FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "Microsoft.Windows.Devices.Midi2.winmd", stagingFolder, FileExistsPolicy.Overwrite, true); + //FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd", stagingFolder, FileExistsPolicy.Overwrite, true); + //FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd", stagingFolder, FileExistsPolicy.Overwrite, true); + //FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd", stagingFolder, FileExistsPolicy.Overwrite, true); + //FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "Microsoft.Windows.Devices.Midi2.Diagnostics.winmd", stagingFolder, FileExistsPolicy.Overwrite, true); + //FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "Microsoft.Windows.Devices.Midi2.Messages.winmd", stagingFolder, FileExistsPolicy.Overwrite, true); + //FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd", stagingFolder, FileExistsPolicy.Overwrite, true); + //FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd", stagingFolder, FileExistsPolicy.Overwrite, true); + //FileSystemTasks.CopyFileToDirectory(consoleOutputFolder / "Microsoft.Windows.Devices.Midi2.Initialization.winmd", stagingFolder, FileExistsPolicy.Overwrite, true); + + } + + }); + + Target BuildConsoleAppInstaller => _ => _ + .DependsOn(BuildConsoleApp) + .DependsOn(BuildServiceAndPluginsInstaller) + .Executes(() => + { + // we build for Arm64 and x64. No EC required here + foreach (var platform in OutOfProcPlatforms) + { + //UpdateSetupBundleInfoIncludeFile(platform); // happens as part of service installer + + string fullSetupVersionString = $"{SetupVersionName} {SetupBuildMajorMinor}.{SetupBuildDateNumber}.{SetupBuildTimeNumber}"; + + string solutionDir = ConsoleSetupSolutionFolder.ToString() + @"\"; + + var msbuildProperties = new Dictionary(); + msbuildProperties.Add("Platform", platform); + msbuildProperties.Add("SolutionDir", solutionDir); // to include trailing slash + + Console.Out.WriteLine($"----------------------------------------------------------------------"); + Console.Out.WriteLine($"SolutionDir: {solutionDir}"); + Console.Out.WriteLine($"Platform: {platform.ToLower()}"); + + var output = MSBuildTasks.MSBuild(_ => _ + .SetTargetPath(ConsoleSetupSolutionFolder / "midi-console-setup.sln") + .SetMaxCpuCount(14) + /*.SetOutDir(outputFolder) */ + /*.SetProcessWorkingDirectory(ApiSolutionFolder)*/ + /*.SetTargets("Build") */ + .SetProperties(msbuildProperties) + .SetConfiguration(Configuration.Release) + .EnableNodeReuse() + ); + + + // todo: it would be better to see if any of the sdk files have changed and only + // do this copy if a new setup file was created. Maybe do a before/after date/time check? + FileSystemTasks.CopyFile( + ConsoleSetupSolutionFolder / "console-main-bundle" / "bin" / platform / Configuration.Release / "WindowsMidiServicesConsoleSetup.exe", + ThisReleaseFolder / $"Windows MIDI Services (Console) - {fullSetupVersionString}-{platform.ToLower()}.exe"); + } - // build x64 and Arm64 }); @@ -458,7 +626,7 @@ void UpdateSetupBundleInfoIncludeFile(string platform) // make sure they compile - foreach (var platform in AllPlatforms) + foreach (var platform in InProcPlatforms) { string solutionDir = AppSdkSolutionFolder.ToString() + @"\"; @@ -485,6 +653,9 @@ void UpdateSetupBundleInfoIncludeFile(string platform) .EnableNodeReuse() ); + + + } }); @@ -498,7 +669,9 @@ void UpdateSetupBundleInfoIncludeFile(string platform) .DependsOn(BuildAppSdkRuntimeInstaller) .DependsOn(BuildCppSamples) .DependsOn(BuildSettingsApp) + /*.DependsOn(BuildSettingsAppInstaller) */ .DependsOn(BuildConsoleApp) + .DependsOn(BuildConsoleAppInstaller) .Executes(() => { }); diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll index cd32f5924..1cc720d82 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd index 1330d4afb..91a745841 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll index 91b731c8a..043b34b5e 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd index 3ec3bf415..1d1da5c49 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.dll b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.dll index 661b603cb..1e9d71bd9 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.dll and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.dll differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd index a6672a0fe..456141e42 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll index 410c2ca87..c96b3cc5f 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd index 686535059..4a1df3c25 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll index 7f8530a07..4cb33dd71 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd index 61a87865f..25902b2f3 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll index 3e71dd3a7..e70941e5f 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd index 15faccfac..da543c245 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.dll b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.dll index 7f0c748e1..c177a296e 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.dll and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.dll differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd index 626d4a166..1b43a7f2b 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll index b89b99675..13279bf97 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd index 7dc39cedd..808beb7ca 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.dll b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.dll index dbf0e5ff9..0772f8326 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.dll and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.dll differ diff --git a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd index cc0b45d34..1360d5740 100644 Binary files a/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd and b/build/staging/app-sdk/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd differ diff --git a/build/staging/app-sdk/Arm64EC/mididiag.exe b/build/staging/app-sdk/Arm64EC/mididiag.exe index 321cbebfa..6e829a9a2 100644 Binary files a/build/staging/app-sdk/Arm64EC/mididiag.exe and b/build/staging/app-sdk/Arm64EC/mididiag.exe differ diff --git a/build/staging/version/BundleInfo.wxi b/build/staging/version/BundleInfo.wxi index e50981ccd..295715c9e 100644 --- a/build/staging/version/BundleInfo.wxi +++ b/build/staging/version/BundleInfo.wxi @@ -1,4 +1,4 @@ - + diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h deleted file mode 100644 index 225cbc82e..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h +++ /dev/null @@ -1,516 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::PreferredMidiProtocol() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_PreferredMidiProtocol(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::RequestEndpointTransmitJitterReductionTimestamps() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_RequestEndpointTransmitJitterReductionTimestamps(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::RequestEndpointReceiveJitterReductionTimestamps() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_RequestEndpointReceiveJitterReductionTimestamps(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::DeviceEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_DeviceEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::ClientEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_ClientEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::FunctionBlocks() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_FunctionBlocks(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::UpdateFunctionBlock(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock const& block) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->UpdateFunctionBlock(*(void**)(&block), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::UpdateEndpointName(param::hstring const& name) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->UpdateEndpointName(*(void**)(&name), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::SuppressHandledMessages() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_SuppressHandledMessages(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::SuppressHandledMessages(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->put_SuppressHandledMessages(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->add_StreamConfigRequestReceived(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, StreamConfigRequestReceived(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->remove_StreamConfigRequestReceived(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Name(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Name(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Description() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Description(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Description(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Description(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Manufacturer() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Manufacturer(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Manufacturer(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Manufacturer(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredDeviceIdentity() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_DeclaredDeviceIdentity(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredDeviceIdentity(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_DeclaredDeviceIdentity(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredEndpointInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_DeclaredEndpointInfo(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredEndpointInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_DeclaredEndpointInfo(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::UserSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_UserSuppliedInfo(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::UserSuppliedInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_UserSuppliedInfo(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::FunctionBlocks() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_FunctionBlocks(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance2(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance2(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), impl::bind_in(declaredDeviceIdentity), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance3(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance3(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), impl::bind_in(declaredDeviceIdentity), impl::bind_in(userSuppliedInfo), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::IsTransportAvailable() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->get_IsTransportAvailable(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::AbstractionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->get_AbstractionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationResult result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->CreateVirtualDevice(*(void**)(&creationConfig), put_abi(result))); - return result; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreferredMidiProtocol(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreferredMidiProtocol()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RequestEndpointTransmitJitterReductionTimestamps(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RequestEndpointTransmitJitterReductionTimestamps()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RequestEndpointReceiveJitterReductionTimestamps(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RequestEndpointReceiveJitterReductionTimestamps()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_DeviceEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ClientEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ClientEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FunctionBlocks(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().FunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateFunctionBlock(void* block, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateFunctionBlock(*reinterpret_cast(&block))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateEndpointName(void* name, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateEndpointName(*reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_SuppressHandledMessages(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SuppressHandledMessages()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_SuppressHandledMessages(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().SuppressHandledMessages(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall add_StreamConfigRequestReceived(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().StreamConfigRequestReceived(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_StreamConfigRequestReceived(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().StreamConfigRequestReceived(*reinterpret_cast(&token)); - return 0; - } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Name(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Name(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Description(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Description()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Description(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Description(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Manufacturer(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Manufacturer()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Manufacturer(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Manufacturer(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredDeviceIdentity()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DeclaredDeviceIdentity(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredEndpointInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DeclaredEndpointInfo(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().UserSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().UserSuppliedInfo(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FunctionBlocks(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().FunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity declaredDeviceIdentity, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo), *reinterpret_cast(&declaredDeviceIdentity))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity declaredDeviceIdentity, struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo userSuppliedInfo, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo), *reinterpret_cast(&declaredDeviceIdentity), *reinterpret_cast(&userSuppliedInfo))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsTransportAvailable(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsTransportAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AbstractionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AbstractionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateVirtualDevice(void* creationConfig, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiVirtualDeviceCreationResult* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateVirtualDevice(*reinterpret_cast(&creationConfig))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance(name, description, manufacturer, declaredEndpointInfo); })) - { - } - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance2(name, description, manufacturer, declaredEndpointInfo, declaredDeviceIdentity); })) - { - } - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance3(name, description, manufacturer, declaredEndpointInfo, declaredDeviceIdentity, userSuppliedInfo); })) - { - } - inline auto MidiVirtualDeviceManager::IsTransportAvailable() - { - return impl::call_factory_cast([](IMidiVirtualDeviceManagerStatics const& f) { return f.IsTransportAvailable(); }); - } - inline auto MidiVirtualDeviceManager::AbstractionId() - { - return impl::call_factory_cast([](IMidiVirtualDeviceManagerStatics const& f) { return f.AbstractionId(); }); - } - inline auto MidiVirtualDeviceManager::CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) - { - return impl::call_factory([&](IMidiVirtualDeviceManagerStatics const& f) { return f.CreateVirtualDevice(creationConfig); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h deleted file mode 100644 index f8dcd9c51..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h +++ /dev/null @@ -1,3689 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/impl/Windows.Devices.Enumeration.2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::Index() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->get_Index(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::Index(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->put_Index(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::DisplayValue() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->get_DisplayValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory::CreateInstance(uint8_t index) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelFactory)->CreateInstance(index, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiChannel{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::IsValidIndex(uint8_t index) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->IsValidIndex(index, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::Now() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_Now(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::TimestampConstantSendImmediately() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_TimestampConstantSendImmediately(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::TimestampFrequency() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_TimestampFrequency(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToNanoseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToMicroseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToMilliseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToSeconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToSeconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByTicks(timestampValue, offsetTicks, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampBySeconds(timestampValue, offsetSeconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::ConnectionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_ConnectionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::ConnectedEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_ConnectedEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Tag() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_Tag(&value)); - return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Tag(winrt::Windows::Foundation::IInspectable const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->put_Tag(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::LogMessageDataValidationErrorDetails() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_LogMessageDataValidationErrorDetails(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::LogMessageDataValidationErrorDetails(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->put_LogMessageDataValidationErrorDetails(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Settings() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_Settings(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::IsOpen() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_IsOpen(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Open() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->Open(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::IsAutoReconnectEnabled() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_IsAutoReconnectEnabled(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::MessageProcessingPlugins() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_MessageProcessingPlugins(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::AddMessageProcessingPlugin(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin const& plugin) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->AddMessageProcessingPlugin(*(void**)(&plugin))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::RemoveMessageProcessingPlugin(winrt::guid const& id) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->RemoveMessageProcessingPlugin(impl::bind_in(id))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessagePacket(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket const& message) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessagePacket(*(void**)(&message), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageStruct(timestamp, wordCount, impl::bind_in(message), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, array_view words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWordArray(timestamp, startIndex, wordCount, words.size(), get_abi(words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords(timestamp, word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords2(timestamp, word0, word1, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords3(timestamp, word0, word1, word2, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords4(timestamp, word0, word1, word2, word3, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageBuffer(timestamp, byteOffset, byteCount, *(void**)(&buffer), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesWordList(uint64_t timestamp, param::iterable const& words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesWordList(timestamp, *(void**)(&words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, array_view words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesWordArray(timestamp, startIndex, wordCount, words.size(), get_abi(words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesPacketList(param::iterable const& messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesPacketList(*(void**)(&messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesStructList(uint64_t timestamp, param::iterable const& messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesStructList(timestamp, *(void**)(&messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, array_view messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesStructArray(timestamp, startIndex, messageCount, messages.size(), get_abi(messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesBuffer(timestamp, byteOffset, byteCount, *(void**)(&buffer), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings::SettingsJson() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings)->get_SettingsJson(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->add_EndpointDeviceDisconnected(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EndpointDeviceDisconnected(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->remove_EndpointDeviceDisconnected(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->add_EndpointDeviceReconnected(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EndpointDeviceReconnected(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->remove_EndpointDeviceReconnected(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::GetDeviceSelector() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->GetDeviceSelector(&result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->SendMessageSucceeded(static_cast(sendResult), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->SendMessageFailed(static_cast(sendResult), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::ContainerId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_ContainerId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeviceInstanceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeviceInstanceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::EndpointPurpose() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDevicePurpose value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_EndpointPurpose(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredEndpointInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredEndpointInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredEndpointInfoLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredEndpointInfoLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredDeviceIdentity() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredDeviceIdentity(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredDeviceIdentityLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredDeviceIdentityLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredStreamConfiguration() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredStreamConfiguration result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredStreamConfiguration(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredStreamConfigurationLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredStreamConfigurationLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredFunctionBlocks() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredFunctionBlocks(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredFunctionBlocksLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredFunctionBlocksLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetGroupTerminalBlocks() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetGroupTerminalBlocks(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetUserSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetUserSuppliedInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetTransportSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointTransportSuppliedInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetTransportSuppliedInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetParentDeviceInformation() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetParentDeviceInformation(&result)); - return winrt::Windows::Devices::Enumeration::DeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetContainerDeviceInformation() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetContainerDeviceInformation(&result)); - return winrt::Windows::Devices::Enumeration::DeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::Properties() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_Properties(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs::AddedDevice() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs)->get_AddedDevice(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs::DeviceInformationUpdate() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs)->get_DeviceInformationUpdate(&value)); - return winrt::Windows::Devices::Enumeration::DeviceInformationUpdate{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->CreateFromEndpointDeviceId(*(void**)(&endpointDeviceId), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll2(static_cast(sortOrder), &result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll3(static_cast(sortOrder), static_cast(endpointFilters), &result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::EndpointInterfaceClass() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->get_EndpointInterfaceClass(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::GetAdditionalPropertiesList() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->GetAdditionalPropertiesList(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->DeviceMatchesFilter(*(void**)(&deviceInformation), static_cast(endpointFilters), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsNameUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsNameUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsEndpointInformationUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsEndpointInformationUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsDeviceIdentityUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsDeviceIdentityUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsStreamConfigurationUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsStreamConfigurationUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::AreFunctionBlocksUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_AreFunctionBlocksUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsUserMetadataUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsUserMetadataUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::AreAdditionalCapabilitiesUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_AreAdditionalCapabilitiesUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::DeviceInformationUpdate() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_DeviceInformationUpdate(&value)); - return winrt::Windows::Devices::Enumeration::DeviceInformationUpdate{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Start() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->Start()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stop() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->Stop()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumeratedEndpointDevices() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->get_EnumeratedEndpointDevices(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Status() const - { - winrt::Windows::Devices::Enumeration::DeviceWatcherStatus value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->get_Status(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Added(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Added(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Added(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Removed(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Removed(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Removed(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Updated(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Updated(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Updated(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_EnumerationCompleted(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EnumerationCompleted(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_EnumerationCompleted(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Stopped(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Stopped(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Stopped(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics::Create() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcherStatics)->Create(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceWatcher{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics::Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcherStatics)->Create2(static_cast(endpointFilters), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceWatcher{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Id() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_Id(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Name(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_Name(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Tag() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_Tag(&value)); - return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Tag(winrt::Windows::Foundation::IInspectable const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_Tag(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::IsEnabled() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_IsEnabled(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::IsEnabled(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_IsEnabled(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Initialize(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource const& endpointConnection) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->Initialize(*(void**)(&endpointConnection))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::OnEndpointConnectionOpened() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->OnEndpointConnectionOpened()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::ProcessIncomingMessage(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageReceivedEventArgs const& args, bool& skipFurtherListeners, bool& skipMainMessageReceivedEvent) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->ProcessIncomingMessage(*(void**)(&args), &skipFurtherListeners, &skipMainMessageReceivedEvent)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Cleanup() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->Cleanup()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsReadOnly() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_IsReadOnly(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Number() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Number(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Number(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Number(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Name(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Name(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsActive() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_IsActive(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsActive(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_IsActive(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Direction() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Direction(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Direction(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Direction(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::UIHint() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_UIHint(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::UIHint(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_UIHint(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::RepresentsMidi10Connection() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_RepresentsMidi10Connection(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::RepresentsMidi10Connection(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_RepresentsMidi10Connection(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::FirstGroupIndex() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_FirstGroupIndex(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::FirstGroupIndex(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_FirstGroupIndex(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::GroupCount() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_GroupCount(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::GroupCount(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_GroupCount(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->IncludesGroup(*(void**)(&group), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MidiCIMessageVersionFormat() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_MidiCIMessageVersionFormat(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MidiCIMessageVersionFormat(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_MidiCIMessageVersionFormat(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MaxSystemExclusive8Streams() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_MaxSystemExclusive8Streams(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MaxSystemExclusive8Streams(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_MaxSystemExclusive8Streams(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::Index() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->get_Index(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::Index(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->put_Index(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::DisplayValue() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->get_DisplayValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory::CreateInstance(uint8_t index) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupFactory)->CreateInstance(index, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::IsValidIndex(uint8_t index) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->IsValidIndex(index, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Number() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Number(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Direction() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiGroupTerminalBlockDirection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Direction(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Protocol() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiGroupTerminalBlockProtocol value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Protocol(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::FirstGroupIndex() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_FirstGroupIndex(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::GroupCount() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_GroupCount(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->IncludesGroup(*(void**)(&group), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::MaxDeviceInputBandwidthIn4KBitsPerSecondUnits() const - { - uint16_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits() const - { - uint16_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::CalculatedMaxDeviceInputBandwidthBitsPerSecond() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::CalculatedMaxDeviceOutputBandwidthBitsPerSecond() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::AsEquivalentFunctionBlock() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->AsEquivalentFunctionBlock(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word2() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word2(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word3() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word3(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word3(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word3(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance2(timestamp, word0, word1, word2, word3, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Factory)->CreateInstance2(timestamp, word0, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance2(timestamp, word0, word1, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word2() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word2(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance2(timestamp, word0, word1, word2, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::PacketType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_PacketType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::MessageType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_MessageType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::PeekFirstWord() const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->PeekFirstWord(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::GetMessagePacket() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->GetMessagePacket(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillWords(uint32_t& word0, uint32_t& word1, uint32_t& word2, uint32_t& word3) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillWords(&word0, &word1, &word2, &word3, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessageStruct(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct& message) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessageStruct(impl::bind_out(message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage32(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage32(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage64(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage64(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage96(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage96(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage128(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage128(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillWordArray(uint32_t startIndex, array_view words) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillWordArray(startIndex, words.size(), put_abi(words), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillByteArray(uint32_t startIndex, array_view bytes) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillByteArray(startIndex, bytes.size(), put_abi(bytes), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillBuffer(byteOffset, *(void**)(&buffer), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::AppendWordsToList(param::vector const& wordList) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->AppendWordsToList(*(void**)(&wordList), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventSource)->add_MessageReceived(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, MessageReceived(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventSource)->remove_MessageReceived(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::SessionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_SessionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::IsOpen() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_IsOpen(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::Connections() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_Connections(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection(*(void**)(&endpointDeviceId), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection2(*(void**)(&endpointDeviceId), autoReconnect, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect, winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings const& settings) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection3(*(void**)(&endpointDeviceId), autoReconnect, *(void**)(&settings), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::DisconnectEndpointConnection(winrt::guid const& endpointConnectionId) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->DisconnectEndpointConnection(impl::bind_in(endpointConnectionId))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::UpdateName(param::hstring const& newName) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->UpdateName(*(void**)(&newName), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics::Create(param::hstring const& sessionName) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSessionStatics)->Create(*(void**)(&sessionName), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiSession{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::Timestamp(uint64_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->put_Timestamp(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::MessageType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_MessageType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::MessageType(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->put_MessageType(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::PacketType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_PacketType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::PeekFirstWord() const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->PeekFirstWord(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::GetAllWords() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->GetAllWords(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::AppendAllMessageWordsToList(param::vector const& targetList) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->AppendAllMessageWordsToList(*(void**)(&targetList), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->FillBuffer(byteOffset, *(void**)(&buffer), &result)); - return result; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Index(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Index()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Index(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Index(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DisplayValue(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DisplayValue()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint8_t index, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsValidIndex(uint8_t index, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsValidIndex(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Now(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Now()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TimestampConstantSendImmediately(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TimestampConstantSendImmediately()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TimestampFrequency(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TimestampFrequency()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToNanoseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToNanoseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToMicroseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToMicroseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToMilliseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToMilliseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToSeconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToSeconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByTicks(timestampValue, offsetTicks)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampBySeconds(timestampValue, offsetSeconds)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ConnectionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ConnectionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ConnectedEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ConnectedEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Tag(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Tag()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Tag(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Tag(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LogMessageDataValidationErrorDetails(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LogMessageDataValidationErrorDetails()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_LogMessageDataValidationErrorDetails(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().LogMessageDataValidationErrorDetails(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Settings(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Settings()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsOpen(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsOpen()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Open(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Open()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsAutoReconnectEnabled(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsAutoReconnectEnabled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageProcessingPlugins(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().MessageProcessingPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AddMessageProcessingPlugin(void* plugin) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AddMessageProcessingPlugin(*reinterpret_cast(&plugin)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall RemoveMessageProcessingPlugin(winrt::guid id) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().RemoveMessageProcessingPlugin(*reinterpret_cast(&id)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessagePacket(void* message, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessagePacket(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct const& message, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageStruct(timestamp, wordCount, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, uint32_t __wordsSize, uint32_t* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWordArray(timestamp, startIndex, wordCount, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords3(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1, word2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords4(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1, word2, word3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, void* buffer, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageBuffer(timestamp, byteOffset, byteCount, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesWordList(uint64_t timestamp, void* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesWordList(timestamp, *reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, uint32_t __wordsSize, uint32_t* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesWordArray(timestamp, startIndex, wordCount, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesPacketList(void* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesPacketList(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesStructList(uint64_t timestamp, void* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesStructList(timestamp, *reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, uint32_t __messagesSize, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesStructArray(timestamp, startIndex, messageCount, array_view(reinterpret_cast(messages), reinterpret_cast(messages) + __messagesSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, void* buffer, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesBuffer(timestamp, byteOffset, byteCount, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_SettingsJson(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SettingsJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; - template - struct produce : produce_base - { - int32_t __stdcall add_EndpointDeviceDisconnected(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EndpointDeviceDisconnected(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EndpointDeviceDisconnected(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDeviceDisconnected(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_EndpointDeviceReconnected(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EndpointDeviceReconnected(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EndpointDeviceReconnected(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDeviceReconnected(*reinterpret_cast(&token)); - return 0; - } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall GetDeviceSelector(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeviceSelector()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMessageSucceeded(uint32_t sendResult, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMessageSucceeded(*reinterpret_cast(&sendResult))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMessageFailed(uint32_t sendResult, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMessageFailed(*reinterpret_cast(&sendResult))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ContainerId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ContainerId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInstanceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInstanceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointPurpose(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointPurpose()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredEndpointInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredEndpointInfoLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredEndpointInfoLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredDeviceIdentity()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredDeviceIdentityLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredDeviceIdentityLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredStreamConfiguration(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredStreamConfiguration()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredStreamConfigurationLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredStreamConfigurationLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredFunctionBlocks(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetDeclaredFunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredFunctionBlocksLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredFunctionBlocksLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetGroupTerminalBlocks(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetGroupTerminalBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetUserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetUserSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetTransportSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetTransportSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetParentDeviceInformation(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetParentDeviceInformation()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetContainerDeviceInformation(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetContainerDeviceInformation()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Properties(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Properties()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AddedDevice(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AddedDevice()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInformationUpdate(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInformationUpdate()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromEndpointDeviceId(void* endpointDeviceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromEndpointDeviceId(*reinterpret_cast(&endpointDeviceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll2(int32_t sortOrder, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll(*reinterpret_cast(&sortOrder))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll3(int32_t sortOrder, uint32_t endpointFilters, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll(*reinterpret_cast(&sortOrder), *reinterpret_cast(&endpointFilters))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointInterfaceClass(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointInterfaceClass()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetAdditionalPropertiesList(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetAdditionalPropertiesList()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall DeviceMatchesFilter(void* deviceInformation, uint32_t endpointFilters, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().DeviceMatchesFilter(*reinterpret_cast(&deviceInformation), *reinterpret_cast(&endpointFilters))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsNameUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsNameUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsEndpointInformationUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsEndpointInformationUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsDeviceIdentityUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsDeviceIdentityUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsStreamConfigurationUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsStreamConfigurationUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AreFunctionBlocksUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AreFunctionBlocksUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsUserMetadataUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsUserMetadataUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AreAdditionalCapabilitiesUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AreAdditionalCapabilitiesUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInformationUpdate(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInformationUpdate()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Start() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Start(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Stop() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Stop(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EnumeratedEndpointDevices(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().EnumeratedEndpointDevices()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Status(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Status()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall add_Added(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Added(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Added(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Added(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Removed(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Removed(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Removed(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Removed(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Updated(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Updated(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Updated(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Updated(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_EnumerationCompleted(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EnumerationCompleted(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EnumerationCompleted(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EnumerationCompleted(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Stopped(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Stopped(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Stopped(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Stopped(*reinterpret_cast(&token)); - return 0; - } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Create(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Create2(uint32_t endpointFilters, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create(*reinterpret_cast(&endpointFilters))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_Id(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Id()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Name(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Name(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Tag(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Tag()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Tag(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Tag(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsEnabled(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsEnabled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IsEnabled(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IsEnabled(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Initialize(void* endpointConnection) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Initialize(*reinterpret_cast(&endpointConnection)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OnEndpointConnectionOpened() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().OnEndpointConnectionOpened(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ProcessIncomingMessage(void* args, bool* skipFurtherListeners, bool* skipMainMessageReceivedEvent) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().ProcessIncomingMessage(*reinterpret_cast(&args), *skipFurtherListeners, *skipMainMessageReceivedEvent); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Cleanup() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Cleanup(); - return 0; - } - catch (...) { return to_hresult(); } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsReadOnly(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsReadOnly()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Number(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Number()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Number(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Number(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Name(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Name(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsActive(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsActive()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IsActive(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IsActive(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Direction(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Direction()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Direction(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Direction(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_UIHint(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().UIHint()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_UIHint(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().UIHint(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RepresentsMidi10Connection(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RepresentsMidi10Connection()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_RepresentsMidi10Connection(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().RepresentsMidi10Connection(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FirstGroupIndex(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FirstGroupIndex()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_FirstGroupIndex(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().FirstGroupIndex(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_GroupCount(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().GroupCount()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_GroupCount(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().GroupCount(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IncludesGroup(void* group, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IncludesGroup(*reinterpret_cast(&group))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MidiCIMessageVersionFormat(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MidiCIMessageVersionFormat()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MidiCIMessageVersionFormat(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MidiCIMessageVersionFormat(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxSystemExclusive8Streams(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxSystemExclusive8Streams()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MaxSystemExclusive8Streams(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MaxSystemExclusive8Streams(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Index(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Index()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Index(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Index(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DisplayValue(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DisplayValue()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint8_t index, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsValidIndex(uint8_t index, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsValidIndex(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Number(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Number()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Direction(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Direction()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Protocol(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Protocol()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FirstGroupIndex(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FirstGroupIndex()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_GroupCount(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().GroupCount()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IncludesGroup(void* group, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IncludesGroup(*reinterpret_cast(&group))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(uint16_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxDeviceInputBandwidthIn4KBitsPerSecondUnits()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(uint16_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CalculatedMaxDeviceInputBandwidthBitsPerSecond()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CalculatedMaxDeviceOutputBandwidthBitsPerSecond()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AsEquivalentFunctionBlock(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AsEquivalentFunctionBlock()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word2(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word2(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word2(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word3(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word3()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word3(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word3(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, word2, word3, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word2(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word2(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word2(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, word2, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PacketType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PacketType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PeekFirstWord(uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PeekFirstWord()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessagePacket(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessagePacket()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillWords(uint32_t* word0, uint32_t* word1, uint32_t* word2, uint32_t* word3, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillWords(*word0, *word1, *word2, *word3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessageStruct(struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct* message, uint8_t* result) noexcept final try - { - zero_abi(message); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessageStruct(*reinterpret_cast(message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage32(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage32(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage64(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage64(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage96(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage96(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage128(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage128(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillWordArray(uint32_t startIndex, uint32_t __wordsSize, uint32_t* words, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillWordArray(startIndex, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillByteArray(uint32_t startIndex, uint32_t __bytesSize, uint8_t* bytes, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillByteArray(startIndex, array_view(reinterpret_cast(bytes), reinterpret_cast(bytes) + __bytesSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillBuffer(uint32_t byteOffset, void* buffer, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillBuffer(byteOffset, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AppendWordsToList(void* wordList, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AppendWordsToList(*reinterpret_cast const*>(&wordList))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall add_MessageReceived(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().MessageReceived(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_MessageReceived(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().MessageReceived(*reinterpret_cast(&token)); - return 0; - } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_SessionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsOpen(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsOpen()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Connections(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Connections()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection(void* endpointDeviceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection2(void* endpointDeviceId, bool autoReconnect, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId), autoReconnect)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection3(void* endpointDeviceId, bool autoReconnect, void* settings, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId), autoReconnect, *reinterpret_cast(&settings))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall DisconnectEndpointConnection(winrt::guid endpointConnectionId) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DisconnectEndpointConnection(*reinterpret_cast(&endpointConnectionId)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateName(void* newName, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateName(*reinterpret_cast(&newName))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Create(void* sessionName, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create(*reinterpret_cast(&sessionName))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Timestamp(uint64_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Timestamp(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MessageType(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MessageType(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PacketType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PacketType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PeekFirstWord(uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PeekFirstWord()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetAllWords(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetAllWords()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AppendAllMessageWordsToList(void* targetList, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AppendAllMessageWordsToList(*reinterpret_cast const*>(&targetList))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillBuffer(uint32_t byteOffset, void* buffer, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillBuffer(byteOffset, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - }; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - constexpr auto operator|(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiEndpointDeviceInformationFilters const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left ^ right; - return left; - } - constexpr auto operator|(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiSendMessageResults const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left ^ right; - return left; - } - inline MidiChannel::MidiChannel(uint8_t index) : - MidiChannel(impl::call_factory([&](IMidiChannelFactory const& f) { return f.CreateInstance(index); })) - { - } - inline auto MidiChannel::ShortLabel() - { - return impl::call_factory_cast([](IMidiChannelStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiChannel::LongLabel() - { - return impl::call_factory_cast([](IMidiChannelStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiChannel::IsValidIndex(uint8_t index) - { - return impl::call_factory([&](IMidiChannelStatics const& f) { return f.IsValidIndex(index); }); - } - inline auto MidiClock::Now() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.Now(); }); - } - inline auto MidiClock::TimestampConstantSendImmediately() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.TimestampConstantSendImmediately(); }); - } - inline auto MidiClock::TimestampFrequency() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.TimestampFrequency(); }); - } - inline auto MidiClock::ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToNanoseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToMicroseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToMilliseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToSeconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToSeconds(timestampValue); }); - } - inline auto MidiClock::OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByTicks(timestampValue, offsetTicks); }); - } - inline auto MidiClock::OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds); }); - } - inline auto MidiClock::OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds); }); - } - inline auto MidiClock::OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampBySeconds(timestampValue, offsetSeconds); }); - } - inline auto MidiEndpointConnection::GetDeviceSelector() - { - return impl::call_factory_cast([](IMidiEndpointConnectionStatics const& f) { return f.GetDeviceSelector(); }); - } - inline auto MidiEndpointConnection::SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) - { - return impl::call_factory([&](IMidiEndpointConnectionStatics const& f) { return f.SendMessageSucceeded(sendResult); }); - } - inline auto MidiEndpointConnection::SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) - { - return impl::call_factory([&](IMidiEndpointConnectionStatics const& f) { return f.SendMessageFailed(sendResult); }); - } - inline auto MidiEndpointDeviceInformation::CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.CreateFromEndpointDeviceId(endpointDeviceId); }); - } - inline auto MidiEndpointDeviceInformation::FindAll() - { - return impl::call_factory_cast(*)(IMidiEndpointDeviceInformationStatics const&), MidiEndpointDeviceInformation, IMidiEndpointDeviceInformationStatics>([](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(); }); - } - inline auto MidiEndpointDeviceInformation::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(sortOrder); }); - } - inline auto MidiEndpointDeviceInformation::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(sortOrder, endpointFilters); }); - } - inline auto MidiEndpointDeviceInformation::EndpointInterfaceClass() - { - return impl::call_factory_cast([](IMidiEndpointDeviceInformationStatics const& f) { return f.EndpointInterfaceClass(); }); - } - inline auto MidiEndpointDeviceInformation::GetAdditionalPropertiesList() - { - return impl::call_factory_cast(*)(IMidiEndpointDeviceInformationStatics const&), MidiEndpointDeviceInformation, IMidiEndpointDeviceInformationStatics>([](IMidiEndpointDeviceInformationStatics const& f) { return f.GetAdditionalPropertiesList(); }); - } - inline auto MidiEndpointDeviceInformation::DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.DeviceMatchesFilter(deviceInformation, endpointFilters); }); - } - inline auto MidiEndpointDeviceWatcher::Create() - { - return impl::call_factory_cast([](IMidiEndpointDeviceWatcherStatics const& f) { return f.Create(); }); - } - inline auto MidiEndpointDeviceWatcher::Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) - { - return impl::call_factory([&](IMidiEndpointDeviceWatcherStatics const& f) { return f.Create(endpointFilters); }); - } - inline MidiFunctionBlock::MidiFunctionBlock() : - MidiFunctionBlock(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiGroup::MidiGroup(uint8_t index) : - MidiGroup(impl::call_factory([&](IMidiGroupFactory const& f) { return f.CreateInstance(index); })) - { - } - inline auto MidiGroup::ShortLabel() - { - return impl::call_factory_cast([](IMidiGroupStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiGroup::LongLabel() - { - return impl::call_factory_cast([](IMidiGroupStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiGroup::IsValidIndex(uint8_t index) - { - return impl::call_factory([&](IMidiGroupStatics const& f) { return f.IsValidIndex(index); }); - } - inline MidiMessage128::MidiMessage128() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage128::MidiMessage128(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, word2, word3, baseInterface, innerInterface); }); - } - inline MidiMessage128::MidiMessage128(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage128::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage128Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage32::MidiMessage32() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage32Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage32::MidiMessage32(uint64_t timestamp, uint32_t word0) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage32Factory const& f) { return f.CreateInstance2(timestamp, word0, baseInterface, innerInterface); }); - } - inline auto MidiMessage32::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage32Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage64::MidiMessage64() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage64::MidiMessage64(uint64_t timestamp, uint32_t word0, uint32_t word1) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, baseInterface, innerInterface); }); - } - inline MidiMessage64::MidiMessage64(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage64::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage64Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage96::MidiMessage96() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage96::MidiMessage96(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, word2, baseInterface, innerInterface); }); - } - inline MidiMessage96::MidiMessage96(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage96::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage96Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline auto MidiSession::Create(param::hstring const& sessionName) - { - return impl::call_factory([&](IMidiSessionStatics const& f) { return f.Create(sessionName); }); - } - template - struct MidiMessage128T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage128; - protected: - MidiMessage128T() - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage128T(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, word2, word3, *this, this->m_inner); }); - } - MidiMessage128T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; - template - struct MidiMessage32T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage32; - protected: - MidiMessage32T() - { - impl::call_factory([&](IMidiMessage32Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage32T(uint64_t timestamp, uint32_t word0) - { - impl::call_factory([&](IMidiMessage32Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, *this, this->m_inner); }); - } - }; - template - struct MidiMessage64T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage64; - protected: - MidiMessage64T() - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage64T(uint64_t timestamp, uint32_t word0, uint32_t word1) - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, *this, this->m_inner); }); - } - MidiMessage64T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; - template - struct MidiMessage96T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage96; - protected: - MidiMessage96T() - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage96T(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, word2, *this, this->m_inner); }); - } - MidiMessage96T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h deleted file mode 100644 index 08e41736d..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h +++ /dev/null @@ -1,1524 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_0_H -WINRT_EXPORT namespace winrt::Windows::Devices::Enumeration -{ - struct DeviceInformation; - struct DeviceInformationUpdate; - enum class DeviceWatcherStatus : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct EventRegistrationToken; - struct IMemoryBuffer; - template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; -} -WINRT_EXPORT namespace winrt::Windows::Foundation::Collections -{ - template struct WINRT_IMPL_EMPTY_BASES IIterable; - template struct WINRT_IMPL_EMPTY_BASES IVector; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - enum class MidiEndpointDeviceInformationFilters : uint32_t - { - IncludeClientUmpFormatNative = 0x1, - IncludeClientByteFormatNative = 0x2, - IncludeVirtualDeviceResponder = 0x100, - IncludeDiagnosticLoopback = 0x10000, - IncludeDiagnosticPing = 0x20000, - AllTypicalEndpoints = 0x3, - }; - enum class MidiEndpointDeviceInformationSortOrder : int32_t - { - None = 0, - Name = 1, - EndpointDeviceId = 2, - DeviceInstanceId = 3, - ContainerThenName = 11, - ContainerThenEndpointDeviceId = 12, - ContainerThenDeviceInstanceId = 13, - TransportMnemonicThenName = 21, - TransportMnemonicThenEndpointDeviceId = 22, - TransportMnemonicThenDeviceInstanceId = 23, - }; - enum class MidiEndpointDevicePurpose : int32_t - { - NormalMessageEndpoint = 0, - VirtualDeviceResponder = 100, - InBoxGeneralMidiSynth = 400, - DiagnosticLoopback = 500, - DiagnosticPing = 510, - }; - enum class MidiEndpointNativeDataFormat : int32_t - { - Unknown = 0, - ByteStream = 1, - UniversalMidiPacket = 2, - }; - enum class MidiFunctionBlockDirection : int32_t - { - Undefined = 0, - BlockInput = 1, - BlockOutput = 2, - Bidirectional = 3, - }; - enum class MidiFunctionBlockRepresentsMidi10Connection : int32_t - { - Not10 = 0, - YesBandwidthUnrestricted = 1, - YesBandwidthRestricted = 2, - Reserved = 3, - }; - enum class MidiFunctionBlockUIHint : int32_t - { - Unknown = 0, - Receiver = 1, - Sender = 2, - Bidirectional = 3, - }; - enum class MidiGroupTerminalBlockDirection : int32_t - { - Bidirectional = 0, - BlockInput = 1, - BlockOutput = 2, - }; - enum class MidiGroupTerminalBlockProtocol : int32_t - { - Unknown = 0, - Midi1Message64 = 1, - Midi1Message64WithJitterReduction = 2, - Midi1Message128 = 3, - Midi1Message128WithJitterReduction = 4, - Midi2 = 17, - Midi2WithJitterReduction = 18, - }; - enum class MidiMessageType : int32_t - { - UtilityMessage32 = 0, - SystemCommon32 = 1, - Midi1ChannelVoice32 = 2, - DataMessage64 = 3, - Midi2ChannelVoice64 = 4, - DataMessage128 = 5, - FutureReserved632 = 6, - FutureReserved732 = 7, - FutureReserved864 = 8, - FutureReserved964 = 9, - FutureReservedA64 = 10, - FutureReservedB96 = 11, - FutureReservedC96 = 12, - FlexData128 = 13, - FutureReservedE128 = 14, - Stream128 = 15, - }; - enum class MidiPacketType : int32_t - { - UnknownOrInvalid = 0, - UniversalMidiPacket32 = 1, - UniversalMidiPacket64 = 2, - UniversalMidiPacket96 = 3, - UniversalMidiPacket128 = 4, - }; - enum class MidiProtocol : int32_t - { - Default = 0, - Midi1 = 1, - Midi2 = 2, - }; - enum class MidiSendMessageResults : uint32_t - { - Succeeded = 0x80000000, - Failed = 0x10000000, - BufferFull = 0x10000, - EndpointConnectionClosedOrInvalid = 0x40000, - InvalidMessageTypeForWordCount = 0x100000, - InvalidMessageOther = 0x200000, - DataIndexOutOfRange = 0x400000, - TimestampOutOfRange = 0x800000, - MessageListPartiallyProcessed = 0xf00000, - }; - struct IMidiChannel; - struct IMidiChannelFactory; - struct IMidiChannelStatics; - struct IMidiClock; - struct IMidiClockStatics; - struct IMidiEndpointConnection; - struct IMidiEndpointConnectionSettings; - struct IMidiEndpointConnectionSource; - struct IMidiEndpointConnectionStatics; - struct IMidiEndpointDeviceInformation; - struct IMidiEndpointDeviceInformationAddedEventArgs; - struct IMidiEndpointDeviceInformationRemovedEventArgs; - struct IMidiEndpointDeviceInformationStatics; - struct IMidiEndpointDeviceInformationUpdatedEventArgs; - struct IMidiEndpointDeviceWatcher; - struct IMidiEndpointDeviceWatcherStatics; - struct IMidiEndpointMessageProcessingPlugin; - struct IMidiFunctionBlock; - struct IMidiGroup; - struct IMidiGroupFactory; - struct IMidiGroupStatics; - struct IMidiGroupTerminalBlock; - struct IMidiMessage128; - struct IMidiMessage128Factory; - struct IMidiMessage128Statics; - struct IMidiMessage32; - struct IMidiMessage32Factory; - struct IMidiMessage32Statics; - struct IMidiMessage64; - struct IMidiMessage64Factory; - struct IMidiMessage64Statics; - struct IMidiMessage96; - struct IMidiMessage96Factory; - struct IMidiMessage96Statics; - struct IMidiMessageReceivedEventArgs; - struct IMidiMessageReceivedEventSource; - struct IMidiSession; - struct IMidiSessionStatics; - struct IMidiUniversalPacket; - struct MidiChannel; - struct MidiClock; - struct MidiEndpointConnection; - struct MidiEndpointDeviceInformation; - struct MidiEndpointDeviceInformationAddedEventArgs; - struct MidiEndpointDeviceInformationRemovedEventArgs; - struct MidiEndpointDeviceInformationUpdatedEventArgs; - struct MidiEndpointDeviceWatcher; - struct MidiFunctionBlock; - struct MidiGroup; - struct MidiGroupTerminalBlock; - struct MidiMessage128; - struct MidiMessage32; - struct MidiMessage64; - struct MidiMessage96; - struct MidiMessageReceivedEventArgs; - struct MidiSession; - struct MidiDeclaredDeviceIdentity; - struct MidiDeclaredEndpointInfo; - struct MidiDeclaredStreamConfiguration; - struct MidiEndpointTransportSuppliedInfo; - struct MidiEndpointUserSuppliedInfo; - struct MidiMessageStruct; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiChannel"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiClock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointConnection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformation"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationAddedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationRemovedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationUpdatedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceWatcher"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroup"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage128"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage32"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage64"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage96"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiSession"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationFilters"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationSortOrder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDevicePurpose"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointNativeDataFormat"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockDirection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockRepresentsMidi10Connection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockUIHint"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlockDirection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlockProtocol"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageType"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiPacketType"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiProtocol"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiSendMessageResults"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredDeviceIdentity"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredEndpointInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredStreamConfiguration"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointTransportSuppliedInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointUserSuppliedInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageStruct"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannel"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannelFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannelStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiClock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiClockStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionSettings"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionSource"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformation"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationAddedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationRemovedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationUpdatedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceWatcher"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceWatcherStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointMessageProcessingPlugin"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiFunctionBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroup"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupTerminalBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessageReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessageReceivedEventSource"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiSession"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiSessionStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiUniversalPacket"; - template <> inline constexpr guid guid_v{ 0x34DC7F81,0xF0C2,0x50D4,{ 0xBE,0xDF,0x42,0xFA,0xB9,0xA1,0xCE,0xF8 } }; // 34DC7F81-F0C2-50D4-BEDF-42FAB9A1CEF8 - template <> inline constexpr guid guid_v{ 0x02A0FF18,0xFE96,0x5193,{ 0x98,0xEF,0xD9,0x67,0x58,0xCD,0x68,0xD4 } }; // 02A0FF18-FE96-5193-98EF-D96758CD68D4 - template <> inline constexpr guid guid_v{ 0xEC86B553,0xADB5,0x5330,{ 0x99,0x60,0x1D,0x8B,0x3A,0x35,0xB0,0xC6 } }; // EC86B553-ADB5-5330-9960-1D8B3A35B0C6 - template <> inline constexpr guid guid_v{ 0xF065F78B,0xE4DC,0x55A7,{ 0x96,0x97,0x63,0x59,0xD0,0xEC,0xD7,0x3A } }; // F065F78B-E4DC-55A7-9697-6359D0ECD73A - template <> inline constexpr guid guid_v{ 0xF672B9EB,0xD41D,0x5CDD,{ 0xAF,0x7B,0x64,0x29,0x94,0x0B,0xE3,0xE7 } }; // F672B9EB-D41D-5CDD-AF7B-6429940BE3E7 - template <> inline constexpr guid guid_v{ 0x452EECE5,0x4FB8,0x5C0C,{ 0xB8,0xDA,0x46,0x70,0x30,0xBD,0xAC,0xE2 } }; // 452EECE5-4FB8-5C0C-B8DA-467030BDACE2 - template <> inline constexpr guid guid_v{ 0x65736736,0x35F3,0x421C,{ 0xA6,0x83,0x3A,0x03,0x4A,0xD0,0xDC,0xC2 } }; // 65736736-35F3-421C-A683-3A034AD0DCC2 - template <> inline constexpr guid guid_v{ 0x44385CDD,0xB64C,0x4195,{ 0x8F,0xAA,0x8A,0x61,0xFC,0x95,0x2A,0x23 } }; // 44385CDD-B64C-4195-8FAA-8A61FC952A23 - template <> inline constexpr guid guid_v{ 0x99355145,0xBC11,0x5B85,{ 0x9B,0x23,0x1B,0x58,0x26,0x6F,0x46,0x30 } }; // 99355145-BC11-5B85-9B23-1B58266F4630 - template <> inline constexpr guid guid_v{ 0xFB4A1253,0x4429,0x5765,{ 0x99,0xDE,0xFF,0x76,0xBB,0xED,0x58,0x8B } }; // FB4A1253-4429-5765-99DE-FF76BBED588B - template <> inline constexpr guid guid_v{ 0xECF028D0,0xEECC,0x5F99,{ 0x8A,0xDF,0x8F,0x29,0xB7,0x0B,0x29,0x6C } }; // ECF028D0-EECC-5F99-8ADF-8F29B70B296C - template <> inline constexpr guid guid_v{ 0x84D3DDE4,0xE6F8,0x5BA5,{ 0x97,0xB4,0xB8,0xD4,0xC5,0x0A,0xFD,0x9F } }; // 84D3DDE4-E6F8-5BA5-97B4-B8D4C50AFD9F - template <> inline constexpr guid guid_v{ 0x1D2C9C0A,0x428E,0x5F75,{ 0x89,0xD5,0x00,0xC3,0xA3,0x79,0x4D,0x88 } }; // 1D2C9C0A-428E-5F75-89D5-00C3A3794D88 - template <> inline constexpr guid guid_v{ 0xAA4B1E3A,0x04B6,0x5560,{ 0xBC,0x2B,0xCF,0xD1,0x64,0xC0,0xF1,0xDE } }; // AA4B1E3A-04B6-5560-BC2B-CFD164C0F1DE - template <> inline constexpr guid guid_v{ 0x5CBF4CAC,0x3409,0x5A57,{ 0x9C,0x47,0xFC,0xA8,0x3C,0x69,0xDB,0xE3 } }; // 5CBF4CAC-3409-5A57-9C47-FCA83C69DBE3 - template <> inline constexpr guid guid_v{ 0xF28F646C,0x6BE6,0x5E13,{ 0x8A,0x78,0x7F,0xD1,0xB8,0x5A,0x7E,0x95 } }; // F28F646C-6BE6-5E13-8A78-7FD1B85A7E95 - template <> inline constexpr guid guid_v{ 0x198D5EF2,0x313F,0x41AF,{ 0x92,0x59,0xA4,0x29,0x97,0xE0,0x60,0xF0 } }; // 198D5EF2-313F-41AF-9259-A42997E060F0 - template <> inline constexpr guid guid_v{ 0xEB43C123,0x5382,0x5C71,{ 0x8D,0x1B,0x22,0x3B,0x8F,0x76,0xC2,0x3B } }; // EB43C123-5382-5C71-8D1B-223B8F76C23B - template <> inline constexpr guid guid_v{ 0xD2FE009D,0x8542,0x5AE7,{ 0xA8,0xF8,0x4F,0x28,0x14,0x5E,0x3A,0x8F } }; // D2FE009D-8542-5AE7-A8F8-4F28145E3A8F - template <> inline constexpr guid guid_v{ 0xEC11AC98,0x616B,0x545C,{ 0xA0,0x6C,0x95,0xB3,0x91,0x5A,0xDB,0x41 } }; // EC11AC98-616B-545C-A06C-95B3915ADB41 - template <> inline constexpr guid guid_v{ 0x08071F7E,0xBA0B,0x5020,{ 0x8E,0x23,0xBC,0x81,0x9B,0x24,0xA4,0xE2 } }; // 08071F7E-BA0B-5020-8E23-BC819B24A4E2 - template <> inline constexpr guid guid_v{ 0x3DBA035F,0xE298,0x5F22,{ 0xB0,0x0B,0x51,0xC7,0x2D,0xCF,0xF7,0x1F } }; // 3DBA035F-E298-5F22-B00B-51C72DCFF71F - template <> inline constexpr guid guid_v{ 0xEFB9C9BB,0x4397,0x538A,{ 0xB1,0x7F,0xBC,0x83,0x00,0x12,0xE1,0xEA } }; // EFB9C9BB-4397-538A-B17F-BC830012E1EA - template <> inline constexpr guid guid_v{ 0x6FB629DF,0xE277,0x5EE8,{ 0xB7,0xB8,0x13,0xA3,0x52,0x8B,0xA2,0x55 } }; // 6FB629DF-E277-5EE8-B7B8-13A3528BA255 - template <> inline constexpr guid guid_v{ 0x722B7533,0x8EFB,0x5CA9,{ 0x93,0x99,0x74,0xEE,0x2D,0x8D,0x53,0x8C } }; // 722B7533-8EFB-5CA9-9399-74EE2D8D538C - template <> inline constexpr guid guid_v{ 0x1C2EC0A7,0xE093,0x5FF0,{ 0xA0,0x9B,0x77,0x68,0x6A,0x75,0x64,0x18 } }; // 1C2EC0A7-E093-5FF0-A09B-77686A756418 - template <> inline constexpr guid guid_v{ 0x47D7FD0F,0x7945,0x5283,{ 0xB1,0x1B,0xA4,0xF5,0xCF,0xBB,0xF6,0xF2 } }; // 47D7FD0F-7945-5283-B11B-A4F5CFBBF6F2 - template <> inline constexpr guid guid_v{ 0x52D01ECA,0x60AC,0x5229,{ 0xAA,0xC2,0xAF,0xA7,0x2E,0xF1,0x40,0x45 } }; // 52D01ECA-60AC-5229-AAC2-AFA72EF14045 - template <> inline constexpr guid guid_v{ 0x62885C57,0x325C,0x5A7C,{ 0xB1,0x8F,0xDE,0x36,0x0A,0xC3,0x77,0xBD } }; // 62885C57-325C-5A7C-B18F-DE360AC377BD - template <> inline constexpr guid guid_v{ 0x10B85E46,0xC6B8,0x593A,{ 0x93,0x85,0x11,0xAE,0x2F,0xCE,0xB9,0xF1 } }; // 10B85E46-C6B8-593A-9385-11AE2FCEB9F1 - template <> inline constexpr guid guid_v{ 0xA75E98A2,0xC6AC,0x5333,{ 0x89,0x65,0x97,0xCD,0xA8,0x80,0x85,0x2E } }; // A75E98A2-C6AC-5333-8965-97CDA880852E - template <> inline constexpr guid guid_v{ 0x82B6C4F8,0xC292,0x50DA,{ 0xBD,0xDF,0xC1,0x18,0x6D,0x3B,0x9E,0xE6 } }; // 82B6C4F8-C292-50DA-BDDF-C1186D3B9EE6 - template <> inline constexpr guid guid_v{ 0x4AC4FE62,0x41C9,0x5605,{ 0x9D,0xB8,0xDE,0xD7,0xCB,0x44,0xB8,0x59 } }; // 4AC4FE62-41C9-5605-9DB8-DED7CB44B859 - template <> inline constexpr guid guid_v{ 0x80451AFD,0xE703,0x5790,{ 0x9C,0xF7,0x4A,0x17,0xAD,0x1E,0x47,0x3B } }; // 80451AFD-E703-5790-9CF7-4A17AD1E473B - template <> inline constexpr guid guid_v{ 0x190C0204,0x845B,0x5A20,{ 0xB9,0x5E,0x91,0x78,0xA8,0xDD,0xAF,0xC6 } }; // 190C0204-845B-5A20-B95E-9178A8DDAFC6 - template <> inline constexpr guid guid_v{ 0x101CEB4B,0xCCA4,0x48A1,{ 0xB9,0x1E,0x60,0x02,0xB9,0x28,0x61,0x3C } }; // 101CEB4B-CCA4-48A1-B91E-6002B928613C - template <> inline constexpr guid guid_v{ 0x47D3E2F0,0xB352,0x5D13,{ 0x88,0x37,0xE4,0x8F,0xF4,0x84,0x5F,0xA0 } }; // 47D3E2F0-B352-5D13-8837-E48FF4845FA0 - template <> inline constexpr guid guid_v{ 0x8678C907,0x163D,0x5D86,{ 0xBF,0xC7,0xFE,0x80,0x04,0x63,0x61,0x86 } }; // 8678C907-163D-5D86-BFC7-FE8004636186 - template <> inline constexpr guid guid_v{ 0x2EB5DF8A,0xD751,0x4997,{ 0xBF,0x96,0xBA,0x9A,0x53,0x1F,0xD5,0xFF } }; // 2EB5DF8A-D751-4997-BF96-BA9A531FD5FF - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiClock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiSession; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Index(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Index(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_DisplayValue(uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall IsValidIndex(uint8_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Now(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_TimestampConstantSendImmediately(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_TimestampFrequency(uint64_t*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToNanoseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToMicroseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToMilliseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToSeconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByTicks(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByMicroseconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByMilliseconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampBySeconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ConnectionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_ConnectedEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_Tag(void**) noexcept = 0; - virtual int32_t __stdcall put_Tag(void*) noexcept = 0; - virtual int32_t __stdcall get_LogMessageDataValidationErrorDetails(bool*) noexcept = 0; - virtual int32_t __stdcall put_LogMessageDataValidationErrorDetails(bool) noexcept = 0; - virtual int32_t __stdcall get_Settings(void**) noexcept = 0; - virtual int32_t __stdcall get_IsOpen(bool*) noexcept = 0; - virtual int32_t __stdcall Open(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsAutoReconnectEnabled(bool*) noexcept = 0; - virtual int32_t __stdcall get_MessageProcessingPlugins(void**) noexcept = 0; - virtual int32_t __stdcall AddMessageProcessingPlugin(void*) noexcept = 0; - virtual int32_t __stdcall RemoveMessageProcessingPlugin(winrt::guid) noexcept = 0; - virtual int32_t __stdcall SendSingleMessagePacket(void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageStruct(uint64_t, uint8_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct const&, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWordArray(uint64_t, uint32_t, uint8_t, uint32_t, uint32_t*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords(uint64_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords2(uint64_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords3(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords4(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageBuffer(uint64_t, uint32_t, uint8_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesWordList(uint64_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesWordArray(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesPacketList(void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesStructList(uint64_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesStructArray(uint64_t, uint32_t, uint32_t, uint32_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesBuffer(uint64_t, uint32_t, uint32_t, void*, uint32_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SettingsJson(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall add_EndpointDeviceDisconnected(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EndpointDeviceDisconnected(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_EndpointDeviceReconnected(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EndpointDeviceReconnected(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall GetDeviceSelector(void**) noexcept = 0; - virtual int32_t __stdcall SendMessageSucceeded(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall SendMessageFailed(uint32_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_ContainerId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_DeviceInstanceId(void**) noexcept = 0; - virtual int32_t __stdcall get_EndpointPurpose(int32_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredEndpointInfoLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredDeviceIdentityLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredStreamConfiguration(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredStreamConfigurationLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredFunctionBlocks(void**) noexcept = 0; - virtual int32_t __stdcall get_DeclaredFunctionBlocksLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetGroupTerminalBlocks(void**) noexcept = 0; - virtual int32_t __stdcall GetUserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall GetTransportSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall GetParentDeviceInformation(void**) noexcept = 0; - virtual int32_t __stdcall GetContainerDeviceInformation(void**) noexcept = 0; - virtual int32_t __stdcall get_Properties(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AddedDevice(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_DeviceInformationUpdate(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromEndpointDeviceId(void*, void**) noexcept = 0; - virtual int32_t __stdcall FindAll(void**) noexcept = 0; - virtual int32_t __stdcall FindAll2(int32_t, void**) noexcept = 0; - virtual int32_t __stdcall FindAll3(int32_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall get_EndpointInterfaceClass(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall GetAdditionalPropertiesList(void**) noexcept = 0; - virtual int32_t __stdcall DeviceMatchesFilter(void*, uint32_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_IsNameUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsEndpointInformationUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsDeviceIdentityUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsStreamConfigurationUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_AreFunctionBlocksUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsUserMetadataUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_AreAdditionalCapabilitiesUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_DeviceInformationUpdate(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Start() noexcept = 0; - virtual int32_t __stdcall Stop() noexcept = 0; - virtual int32_t __stdcall get_EnumeratedEndpointDevices(void**) noexcept = 0; - virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; - virtual int32_t __stdcall add_Added(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Added(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Removed(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Removed(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Updated(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Updated(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_EnumerationCompleted(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EnumerationCompleted(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Stopped(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Stopped(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Create(void**) noexcept = 0; - virtual int32_t __stdcall Create2(uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Id(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall put_Name(void*) noexcept = 0; - virtual int32_t __stdcall get_Tag(void**) noexcept = 0; - virtual int32_t __stdcall put_Tag(void*) noexcept = 0; - virtual int32_t __stdcall get_IsEnabled(bool*) noexcept = 0; - virtual int32_t __stdcall put_IsEnabled(bool) noexcept = 0; - virtual int32_t __stdcall Initialize(void*) noexcept = 0; - virtual int32_t __stdcall OnEndpointConnectionOpened() noexcept = 0; - virtual int32_t __stdcall ProcessIncomingMessage(void*, bool*, bool*) noexcept = 0; - virtual int32_t __stdcall Cleanup() noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsReadOnly(bool*) noexcept = 0; - virtual int32_t __stdcall get_Number(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Number(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall put_Name(void*) noexcept = 0; - virtual int32_t __stdcall get_IsActive(bool*) noexcept = 0; - virtual int32_t __stdcall put_IsActive(bool) noexcept = 0; - virtual int32_t __stdcall get_Direction(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_Direction(int32_t) noexcept = 0; - virtual int32_t __stdcall get_UIHint(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_UIHint(int32_t) noexcept = 0; - virtual int32_t __stdcall get_RepresentsMidi10Connection(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_RepresentsMidi10Connection(int32_t) noexcept = 0; - virtual int32_t __stdcall get_FirstGroupIndex(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_FirstGroupIndex(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_GroupCount(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_GroupCount(uint8_t) noexcept = 0; - virtual int32_t __stdcall IncludesGroup(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_MidiCIMessageVersionFormat(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_MidiCIMessageVersionFormat(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_MaxSystemExclusive8Streams(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_MaxSystemExclusive8Streams(uint8_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Index(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Index(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_DisplayValue(uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall IsValidIndex(uint8_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Number(uint8_t*) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_Direction(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_Protocol(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_FirstGroupIndex(uint8_t*) noexcept = 0; - virtual int32_t __stdcall get_GroupCount(uint8_t*) noexcept = 0; - virtual int32_t __stdcall IncludesGroup(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(uint16_t*) noexcept = 0; - virtual int32_t __stdcall get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(uint16_t*) noexcept = 0; - virtual int32_t __stdcall get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(uint32_t*) noexcept = 0; - virtual int32_t __stdcall get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(uint32_t*) noexcept = 0; - virtual int32_t __stdcall AsEquivalentFunctionBlock(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word2(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word2(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word3(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word3(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word2(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word2(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_PacketType(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_MessageType(int32_t*) noexcept = 0; - virtual int32_t __stdcall PeekFirstWord(uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetMessagePacket(void**) noexcept = 0; - virtual int32_t __stdcall FillWords(uint32_t*, uint32_t*, uint32_t*, uint32_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillMessageStruct(struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillMessage32(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage64(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage96(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage128(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillWordArray(uint32_t, uint32_t, uint32_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillByteArray(uint32_t, uint32_t, uint8_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillBuffer(uint32_t, void*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall AppendWordsToList(void*, uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall add_MessageReceived(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_MessageReceived(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SessionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_IsOpen(bool*) noexcept = 0; - virtual int32_t __stdcall get_Connections(void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection(void*, void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection2(void*, bool, void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection3(void*, bool, void*, void**) noexcept = 0; - virtual int32_t __stdcall DisconnectEndpointConnection(winrt::guid) noexcept = 0; - virtual int32_t __stdcall UpdateName(void*, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Create(void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall put_Timestamp(uint64_t) noexcept = 0; - virtual int32_t __stdcall get_MessageType(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_MessageType(int32_t) noexcept = 0; - virtual int32_t __stdcall get_PacketType(int32_t*) noexcept = 0; - virtual int32_t __stdcall PeekFirstWord(uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetAllWords(void**) noexcept = 0; - virtual int32_t __stdcall AppendAllMessageWordsToList(void*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillBuffer(uint32_t, void*, uint8_t*) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannel - { - [[nodiscard]] auto Index() const; - auto Index(uint8_t value) const; - [[nodiscard]] auto DisplayValue() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannel; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory - { - auto CreateInstance(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto IsValidIndex(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiClock - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiClock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics - { - [[nodiscard]] auto Now() const; - [[nodiscard]] auto TimestampConstantSendImmediately() const; - [[nodiscard]] auto TimestampFrequency() const; - auto ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToSeconds(uint64_t timestampValue) const; - auto OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) const; - auto OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) const; - auto OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) const; - auto OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection - { - [[nodiscard]] auto ConnectionId() const; - [[nodiscard]] auto ConnectedEndpointDeviceId() const; - [[nodiscard]] auto Tag() const; - auto Tag(winrt::Windows::Foundation::IInspectable const& value) const; - [[nodiscard]] auto LogMessageDataValidationErrorDetails() const; - auto LogMessageDataValidationErrorDetails(bool value) const; - [[nodiscard]] auto Settings() const; - [[nodiscard]] auto IsOpen() const; - auto Open() const; - [[nodiscard]] auto IsAutoReconnectEnabled() const; - [[nodiscard]] auto MessageProcessingPlugins() const; - auto AddMessageProcessingPlugin(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin const& plugin) const; - auto RemoveMessageProcessingPlugin(winrt::guid const& id) const; - auto SendSingleMessagePacket(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket const& message) const; - auto SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - auto SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, array_view words) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) const; - auto SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - auto SendMultipleMessagesWordList(uint64_t timestamp, param::iterable const& words) const; - auto SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, array_view words) const; - auto SendMultipleMessagesPacketList(param::iterable const& messages) const; - auto SendMultipleMessagesStructList(uint64_t timestamp, param::iterable const& messages) const; - auto SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, array_view messages) const; - auto SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings - { - [[nodiscard]] auto SettingsJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource - { - auto EndpointDeviceDisconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EndpointDeviceDisconnected_revoker = impl::event_revoker::remove_EndpointDeviceDisconnected>; - [[nodiscard]] auto EndpointDeviceDisconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EndpointDeviceDisconnected(winrt::event_token const& token) const noexcept; - auto EndpointDeviceReconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EndpointDeviceReconnected_revoker = impl::event_revoker::remove_EndpointDeviceReconnected>; - [[nodiscard]] auto EndpointDeviceReconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EndpointDeviceReconnected(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics - { - auto GetDeviceSelector() const; - auto SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const; - auto SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto ContainerId() const; - [[nodiscard]] auto DeviceInstanceId() const; - [[nodiscard]] auto EndpointPurpose() const; - auto GetDeclaredEndpointInfo() const; - [[nodiscard]] auto DeclaredEndpointInfoLastUpdateTime() const; - auto GetDeclaredDeviceIdentity() const; - [[nodiscard]] auto DeclaredDeviceIdentityLastUpdateTime() const; - auto GetDeclaredStreamConfiguration() const; - [[nodiscard]] auto DeclaredStreamConfigurationLastUpdateTime() const; - auto GetDeclaredFunctionBlocks() const; - [[nodiscard]] auto DeclaredFunctionBlocksLastUpdateTime() const; - auto GetGroupTerminalBlocks() const; - auto GetUserSuppliedInfo() const; - auto GetTransportSuppliedInfo() const; - auto GetParentDeviceInformation() const; - auto GetContainerDeviceInformation() const; - [[nodiscard]] auto Properties() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs - { - [[nodiscard]] auto AddedDevice() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto DeviceInformationUpdate() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics - { - auto CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) const; - auto FindAll() const; - auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) const; - auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const; - [[nodiscard]] auto EndpointInterfaceClass() const; - auto GetAdditionalPropertiesList() const; - auto DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto IsNameUpdated() const; - [[nodiscard]] auto IsEndpointInformationUpdated() const; - [[nodiscard]] auto IsDeviceIdentityUpdated() const; - [[nodiscard]] auto IsStreamConfigurationUpdated() const; - [[nodiscard]] auto AreFunctionBlocksUpdated() const; - [[nodiscard]] auto IsUserMetadataUpdated() const; - [[nodiscard]] auto AreAdditionalCapabilitiesUpdated() const; - [[nodiscard]] auto DeviceInformationUpdate() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher - { - auto Start() const; - auto Stop() const; - [[nodiscard]] auto EnumeratedEndpointDevices() const; - [[nodiscard]] auto Status() const; - auto Added(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Added_revoker = impl::event_revoker::remove_Added>; - [[nodiscard]] auto Added(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Added(winrt::event_token const& token) const noexcept; - auto Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Removed_revoker = impl::event_revoker::remove_Removed>; - [[nodiscard]] auto Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Removed(winrt::event_token const& token) const noexcept; - auto Updated(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Updated_revoker = impl::event_revoker::remove_Updated>; - [[nodiscard]] auto Updated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Updated(winrt::event_token const& token) const noexcept; - auto EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EnumerationCompleted_revoker = impl::event_revoker::remove_EnumerationCompleted>; - [[nodiscard]] auto EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EnumerationCompleted(winrt::event_token const& token) const noexcept; - auto Stopped(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Stopped_revoker = impl::event_revoker::remove_Stopped>; - [[nodiscard]] auto Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Stopped(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics - { - auto Create() const; - auto Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin - { - [[nodiscard]] auto Id() const; - [[nodiscard]] auto Name() const; - auto Name(param::hstring const& value) const; - [[nodiscard]] auto Tag() const; - auto Tag(winrt::Windows::Foundation::IInspectable const& value) const; - [[nodiscard]] auto IsEnabled() const; - auto IsEnabled(bool value) const; - auto Initialize(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource const& endpointConnection) const; - auto OnEndpointConnectionOpened() const; - auto ProcessIncomingMessage(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageReceivedEventArgs const& args, bool& skipFurtherListeners, bool& skipMainMessageReceivedEvent) const; - auto Cleanup() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock - { - [[nodiscard]] auto IsReadOnly() const; - [[nodiscard]] auto Number() const; - auto Number(uint8_t value) const; - [[nodiscard]] auto Name() const; - auto Name(param::hstring const& value) const; - [[nodiscard]] auto IsActive() const; - auto IsActive(bool value) const; - [[nodiscard]] auto Direction() const; - auto Direction(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& value) const; - [[nodiscard]] auto UIHint() const; - auto UIHint(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& value) const; - [[nodiscard]] auto RepresentsMidi10Connection() const; - auto RepresentsMidi10Connection(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& value) const; - [[nodiscard]] auto FirstGroupIndex() const; - auto FirstGroupIndex(uint8_t value) const; - [[nodiscard]] auto GroupCount() const; - auto GroupCount(uint8_t value) const; - auto IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const; - [[nodiscard]] auto MidiCIMessageVersionFormat() const; - auto MidiCIMessageVersionFormat(uint8_t value) const; - [[nodiscard]] auto MaxSystemExclusive8Streams() const; - auto MaxSystemExclusive8Streams(uint8_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroup - { - [[nodiscard]] auto Index() const; - auto Index(uint8_t value) const; - [[nodiscard]] auto DisplayValue() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroup; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory - { - auto CreateInstance(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto IsValidIndex(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock - { - [[nodiscard]] auto Number() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto Direction() const; - [[nodiscard]] auto Protocol() const; - [[nodiscard]] auto FirstGroupIndex() const; - [[nodiscard]] auto GroupCount() const; - auto IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const; - [[nodiscard]] auto MaxDeviceInputBandwidthIn4KBitsPerSecondUnits() const; - [[nodiscard]] auto MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits() const; - [[nodiscard]] auto CalculatedMaxDeviceInputBandwidthBitsPerSecond() const; - [[nodiscard]] auto CalculatedMaxDeviceOutputBandwidthBitsPerSecond() const; - auto AsEquivalentFunctionBlock() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - [[nodiscard]] auto Word2() const; - auto Word2(uint32_t value) const; - [[nodiscard]] auto Word3() const; - auto Word3(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - [[nodiscard]] auto Word2() const; - auto Word2(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs - { - [[nodiscard]] auto Timestamp() const; - [[nodiscard]] auto PacketType() const; - [[nodiscard]] auto MessageType() const; - auto PeekFirstWord() const; - auto GetMessagePacket() const; - auto FillWords(uint32_t& word0, uint32_t& word1, uint32_t& word2, uint32_t& word3) const; - auto FillMessageStruct(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct& message) const; - auto FillMessage32(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32 const& message) const; - auto FillMessage64(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64 const& message) const; - auto FillMessage96(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96 const& message) const; - auto FillMessage128(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128 const& message) const; - auto FillWordArray(uint32_t startIndex, array_view words) const; - auto FillByteArray(uint32_t startIndex, array_view bytes) const; - auto FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - auto AppendWordsToList(param::vector const& wordList) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource - { - auto MessageReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using MessageReceived_revoker = impl::event_revoker::remove_MessageReceived>; - [[nodiscard]] auto MessageReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto MessageReceived(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiSession - { - [[nodiscard]] auto SessionId() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto IsOpen() const; - [[nodiscard]] auto Connections() const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId) const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect) const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect, winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings const& settings) const; - auto DisconnectEndpointConnection(winrt::guid const& endpointConnectionId) const; - auto UpdateName(param::hstring const& newName) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiSession; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics - { - auto Create(param::hstring const& sessionName) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket - { - [[nodiscard]] auto Timestamp() const; - auto Timestamp(uint64_t value) const; - [[nodiscard]] auto MessageType() const; - auto MessageType(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& value) const; - [[nodiscard]] auto PacketType() const; - auto PeekFirstWord() const; - auto GetAllWords() const; - auto AppendAllMessageWordsToList(param::vector const& targetList) const; - auto FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity - { - uint8_t SystemExclusiveIdByte1; - uint8_t SystemExclusiveIdByte2; - uint8_t SystemExclusiveIdByte3; - uint8_t DeviceFamilyLsb; - uint8_t DeviceFamilyMsb; - uint8_t DeviceFamilyModelNumberLsb; - uint8_t DeviceFamilyModelNumberMsb; - uint8_t SoftwareRevisionLevelByte1; - uint8_t SoftwareRevisionLevelByte2; - uint8_t SoftwareRevisionLevelByte3; - uint8_t SoftwareRevisionLevelByte4; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo - { - void* Name; - void* ProductInstanceId; - bool SupportsMidi10Protocol; - bool SupportsMidi20Protocol; - bool SupportsReceivingJitterReductionTimestamps; - bool SupportsSendingJitterReductionTimestamps; - bool HasStaticFunctionBlocks; - uint8_t DeclaredFunctionBlockCount; - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration - { - int32_t Protocol; - bool ReceiveJitterReductionTimestamps; - bool SendJitterReductionTimestamps; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo - { - void* Name; - void* Description; - void* SerialNumber; - uint16_t VendorId; - uint16_t ProductId; - void* ManufacturerName; - bool SupportsMultiClient; - int32_t NativeDataFormat; - winrt::guid TransportId; - void* TransportAbbreviation; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo - { - void* Name; - void* Description; - void* LargeImagePath; - void* SmallImagePath; - bool RequiresNoteOffTranslation; - uint16_t RecommendedControlChangeAutomationIntervalMilliseconds; - bool SupportsMidiPolyphonicExpression; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct - { - uint32_t Word0; - uint32_t Word1; - uint32_t Word2; - uint32_t Word3; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h deleted file mode 100644 index 268cc0479..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h +++ /dev/null @@ -1,261 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_2_H -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiDeclaredDeviceIdentity - { - uint8_t SystemExclusiveIdByte1; - uint8_t SystemExclusiveIdByte2; - uint8_t SystemExclusiveIdByte3; - uint8_t DeviceFamilyLsb; - uint8_t DeviceFamilyMsb; - uint8_t DeviceFamilyModelNumberLsb; - uint8_t DeviceFamilyModelNumberMsb; - uint8_t SoftwareRevisionLevelByte1; - uint8_t SoftwareRevisionLevelByte2; - uint8_t SoftwareRevisionLevelByte3; - uint8_t SoftwareRevisionLevelByte4; - }; - inline bool operator==(MidiDeclaredDeviceIdentity const& left, MidiDeclaredDeviceIdentity const& right) noexcept - { - return left.SystemExclusiveIdByte1 == right.SystemExclusiveIdByte1 && left.SystemExclusiveIdByte2 == right.SystemExclusiveIdByte2 && left.SystemExclusiveIdByte3 == right.SystemExclusiveIdByte3 && left.DeviceFamilyLsb == right.DeviceFamilyLsb && left.DeviceFamilyMsb == right.DeviceFamilyMsb && left.DeviceFamilyModelNumberLsb == right.DeviceFamilyModelNumberLsb && left.DeviceFamilyModelNumberMsb == right.DeviceFamilyModelNumberMsb && left.SoftwareRevisionLevelByte1 == right.SoftwareRevisionLevelByte1 && left.SoftwareRevisionLevelByte2 == right.SoftwareRevisionLevelByte2 && left.SoftwareRevisionLevelByte3 == right.SoftwareRevisionLevelByte3 && left.SoftwareRevisionLevelByte4 == right.SoftwareRevisionLevelByte4; - } - inline bool operator!=(MidiDeclaredDeviceIdentity const& left, MidiDeclaredDeviceIdentity const& right) noexcept - { - return !(left == right); - } - struct MidiDeclaredEndpointInfo - { - hstring Name; - hstring ProductInstanceId; - bool SupportsMidi10Protocol; - bool SupportsMidi20Protocol; - bool SupportsReceivingJitterReductionTimestamps; - bool SupportsSendingJitterReductionTimestamps; - bool HasStaticFunctionBlocks; - uint8_t DeclaredFunctionBlockCount; - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - }; - inline bool operator==(MidiDeclaredEndpointInfo const& left, MidiDeclaredEndpointInfo const& right) noexcept - { - return left.Name == right.Name && left.ProductInstanceId == right.ProductInstanceId && left.SupportsMidi10Protocol == right.SupportsMidi10Protocol && left.SupportsMidi20Protocol == right.SupportsMidi20Protocol && left.SupportsReceivingJitterReductionTimestamps == right.SupportsReceivingJitterReductionTimestamps && left.SupportsSendingJitterReductionTimestamps == right.SupportsSendingJitterReductionTimestamps && left.HasStaticFunctionBlocks == right.HasStaticFunctionBlocks && left.DeclaredFunctionBlockCount == right.DeclaredFunctionBlockCount && left.SpecificationVersionMajor == right.SpecificationVersionMajor && left.SpecificationVersionMinor == right.SpecificationVersionMinor; - } - inline bool operator!=(MidiDeclaredEndpointInfo const& left, MidiDeclaredEndpointInfo const& right) noexcept - { - return !(left == right); - } - struct MidiDeclaredStreamConfiguration - { - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol Protocol; - bool ReceiveJitterReductionTimestamps; - bool SendJitterReductionTimestamps; - }; - inline bool operator==(MidiDeclaredStreamConfiguration const& left, MidiDeclaredStreamConfiguration const& right) noexcept - { - return left.Protocol == right.Protocol && left.ReceiveJitterReductionTimestamps == right.ReceiveJitterReductionTimestamps && left.SendJitterReductionTimestamps == right.SendJitterReductionTimestamps; - } - inline bool operator!=(MidiDeclaredStreamConfiguration const& left, MidiDeclaredStreamConfiguration const& right) noexcept - { - return !(left == right); - } - struct MidiEndpointTransportSuppliedInfo - { - hstring Name; - hstring Description; - hstring SerialNumber; - uint16_t VendorId; - uint16_t ProductId; - hstring ManufacturerName; - bool SupportsMultiClient; - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointNativeDataFormat NativeDataFormat; - winrt::guid TransportId; - hstring TransportAbbreviation; - }; - inline bool operator==(MidiEndpointTransportSuppliedInfo const& left, MidiEndpointTransportSuppliedInfo const& right) noexcept - { - return left.Name == right.Name && left.Description == right.Description && left.SerialNumber == right.SerialNumber && left.VendorId == right.VendorId && left.ProductId == right.ProductId && left.ManufacturerName == right.ManufacturerName && left.SupportsMultiClient == right.SupportsMultiClient && left.NativeDataFormat == right.NativeDataFormat && left.TransportId == right.TransportId && left.TransportAbbreviation == right.TransportAbbreviation; - } - inline bool operator!=(MidiEndpointTransportSuppliedInfo const& left, MidiEndpointTransportSuppliedInfo const& right) noexcept - { - return !(left == right); - } - struct MidiEndpointUserSuppliedInfo - { - hstring Name; - hstring Description; - hstring LargeImagePath; - hstring SmallImagePath; - bool RequiresNoteOffTranslation; - uint16_t RecommendedControlChangeAutomationIntervalMilliseconds; - bool SupportsMidiPolyphonicExpression; - }; - inline bool operator==(MidiEndpointUserSuppliedInfo const& left, MidiEndpointUserSuppliedInfo const& right) noexcept - { - return left.Name == right.Name && left.Description == right.Description && left.LargeImagePath == right.LargeImagePath && left.SmallImagePath == right.SmallImagePath && left.RequiresNoteOffTranslation == right.RequiresNoteOffTranslation && left.RecommendedControlChangeAutomationIntervalMilliseconds == right.RecommendedControlChangeAutomationIntervalMilliseconds && left.SupportsMidiPolyphonicExpression == right.SupportsMidiPolyphonicExpression; - } - inline bool operator!=(MidiEndpointUserSuppliedInfo const& left, MidiEndpointUserSuppliedInfo const& right) noexcept - { - return !(left == right); - } - struct MidiMessageStruct - { - uint32_t Word0; - uint32_t Word1; - uint32_t Word2; - uint32_t Word3; - }; - inline bool operator==(MidiMessageStruct const& left, MidiMessageStruct const& right) noexcept - { - return left.Word0 == right.Word0 && left.Word1 == right.Word1 && left.Word2 == right.Word2 && left.Word3 == right.Word3; - } - inline bool operator!=(MidiMessageStruct const& left, MidiMessageStruct const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiChannel : winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel - { - MidiChannel(std::nullptr_t) noexcept {} - MidiChannel(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel(ptr, take_ownership_from_abi) {} - explicit MidiChannel(uint8_t index); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto IsValidIndex(uint8_t index); - }; - struct WINRT_IMPL_EMPTY_BASES MidiClock : winrt::Microsoft::Windows::Devices::Midi2::IMidiClock - { - MidiClock(std::nullptr_t) noexcept {} - MidiClock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiClock(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto Now(); - [[nodiscard]] static auto TimestampConstantSendImmediately(); - [[nodiscard]] static auto TimestampFrequency(); - static auto ConvertTimestampTicksToNanoseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToMicroseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToMilliseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToSeconds(uint64_t timestampValue); - static auto OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks); - static auto OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds); - static auto OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds); - static auto OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointConnection : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection, - impl::require - { - MidiEndpointConnection(std::nullptr_t) noexcept {} - MidiEndpointConnection(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection(ptr, take_ownership_from_abi) {} - static auto GetDeviceSelector(); - static auto SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult); - static auto SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformation : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation - { - MidiEndpointDeviceInformation(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation(ptr, take_ownership_from_abi) {} - static auto CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId); - static auto FindAll(); - static auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder); - static auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters); - [[nodiscard]] static auto EndpointInterfaceClass(); - static auto GetAdditionalPropertiesList(); - static auto DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationAddedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs - { - MidiEndpointDeviceInformationAddedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationAddedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationRemovedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs - { - MidiEndpointDeviceInformationRemovedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationRemovedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationUpdatedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs - { - MidiEndpointDeviceInformationUpdatedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationUpdatedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceWatcher : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher - { - MidiEndpointDeviceWatcher(std::nullptr_t) noexcept {} - MidiEndpointDeviceWatcher(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher(ptr, take_ownership_from_abi) {} - static auto Create(); - static auto Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters); - }; - struct WINRT_IMPL_EMPTY_BASES MidiFunctionBlock : winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock - { - MidiFunctionBlock(std::nullptr_t) noexcept {} - MidiFunctionBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock(ptr, take_ownership_from_abi) {} - MidiFunctionBlock(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroup : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup - { - MidiGroup(std::nullptr_t) noexcept {} - MidiGroup(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup(ptr, take_ownership_from_abi) {} - explicit MidiGroup(uint8_t index); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto IsValidIndex(uint8_t index); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroupTerminalBlock : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock - { - MidiGroupTerminalBlock(std::nullptr_t) noexcept {} - MidiGroupTerminalBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage128 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128, - impl::require - { - MidiMessage128(std::nullptr_t) noexcept {} - MidiMessage128(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128(ptr, take_ownership_from_abi) {} - MidiMessage128(); - MidiMessage128(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3); - MidiMessage128(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage32 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32, - impl::require - { - MidiMessage32(std::nullptr_t) noexcept {} - MidiMessage32(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32(ptr, take_ownership_from_abi) {} - MidiMessage32(); - MidiMessage32(uint64_t timestamp, uint32_t word0); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage64 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64, - impl::require - { - MidiMessage64(std::nullptr_t) noexcept {} - MidiMessage64(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64(ptr, take_ownership_from_abi) {} - MidiMessage64(); - MidiMessage64(uint64_t timestamp, uint32_t word0, uint32_t word1); - MidiMessage64(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage96 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96, - impl::require - { - MidiMessage96(std::nullptr_t) noexcept {} - MidiMessage96(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96(ptr, take_ownership_from_abi) {} - MidiMessage96(); - MidiMessage96(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2); - MidiMessage96(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessageReceivedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs - { - MidiMessageReceivedEventArgs(std::nullptr_t) noexcept {} - MidiMessageReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiSession : winrt::Microsoft::Windows::Devices::Midi2::IMidiSession, - impl::require - { - MidiSession(std::nullptr_t) noexcept {} - MidiSession(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiSession(ptr, take_ownership_from_abi) {} - static auto Create(param::hstring const& sessionName); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h deleted file mode 100644 index 2d6bba913..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h +++ /dev/null @@ -1,242 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiDeclaredDeviceIdentity; - struct MidiDeclaredEndpointInfo; - struct MidiEndpointUserSuppliedInfo; - struct MidiFunctionBlock; - enum class MidiProtocol : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct EventRegistrationToken; - template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct IMidiStreamConfigRequestReceivedEventArgs; - struct IMidiVirtualDevice; - struct IMidiVirtualDeviceCreationConfig; - struct IMidiVirtualDeviceCreationConfigFactory; - struct IMidiVirtualDeviceManager; - struct IMidiVirtualDeviceManagerStatics; - struct MidiStreamConfigRequestReceivedEventArgs; - struct MidiVirtualDevice; - struct MidiVirtualDeviceCreationConfig; - struct MidiVirtualDeviceManager; - struct MidiStreamConfigRequestedSettings; - struct MidiVirtualDeviceCreationResult; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiStreamConfigRequestReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDevice"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDeviceCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDeviceManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiStreamConfigRequestedSettings"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDeviceCreationResult"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiStreamConfigRequestReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDevice"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceCreationConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceManagerStatics"; - template <> inline constexpr guid guid_v{ 0x95E66544,0x7629,0x50AF,{ 0x9E,0xEE,0x0B,0x10,0x99,0x40,0x8E,0xD6 } }; // 95E66544-7629-50AF-9EEE-0B1099408ED6 - template <> inline constexpr guid guid_v{ 0x2DFFD69C,0x79E9,0x5155,{ 0xBA,0x19,0x55,0x45,0x4E,0x1A,0xDF,0x6D } }; // 2DFFD69C-79E9-5155-BA19-55454E1ADF6D - template <> inline constexpr guid guid_v{ 0xF6B40477,0x006F,0x575B,{ 0xBE,0xEA,0xFD,0x72,0x9E,0x84,0xDD,0xF7 } }; // F6B40477-006F-575B-BEEA-FD729E84DDF7 - template <> inline constexpr guid guid_v{ 0x6B3BFE63,0x5C8F,0x57D8,{ 0x8C,0xBA,0x20,0x8C,0x93,0x8F,0x08,0x34 } }; // 6B3BFE63-5C8F-57D8-8CBA-208C938F0834 - template <> inline constexpr guid guid_v{ 0x4235E62B,0xDF65,0x5B6C,{ 0x93,0x0F,0x64,0x0D,0xA2,0xF5,0x64,0x9C } }; // 4235E62B-DF65-5B6C-930F-640DA2F5649C - template <> inline constexpr guid guid_v{ 0x07B07404,0x03A3,0x59A4,{ 0xAB,0x49,0xFD,0x22,0x11,0xBC,0x38,0x04 } }; // 07B07404-03A3-59A4-AB49-FD2211BC3804 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_PreferredMidiProtocol(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_RequestEndpointTransmitJitterReductionTimestamps(bool*) noexcept = 0; - virtual int32_t __stdcall get_RequestEndpointReceiveJitterReductionTimestamps(bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_DeviceEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_ClientEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_FunctionBlocks(void**) noexcept = 0; - virtual int32_t __stdcall UpdateFunctionBlock(void*, bool*) noexcept = 0; - virtual int32_t __stdcall UpdateEndpointName(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_SuppressHandledMessages(bool*) noexcept = 0; - virtual int32_t __stdcall put_SuppressHandledMessages(bool) noexcept = 0; - virtual int32_t __stdcall add_StreamConfigRequestReceived(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_StreamConfigRequestReceived(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall put_Name(void*) noexcept = 0; - virtual int32_t __stdcall get_Description(void**) noexcept = 0; - virtual int32_t __stdcall put_Description(void*) noexcept = 0; - virtual int32_t __stdcall get_Manufacturer(void**) noexcept = 0; - virtual int32_t __stdcall put_Manufacturer(void*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity*) noexcept = 0; - virtual int32_t __stdcall put_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity) noexcept = 0; - virtual int32_t __stdcall get_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo*) noexcept = 0; - virtual int32_t __stdcall put_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo) noexcept = 0; - virtual int32_t __stdcall get_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall put_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo) noexcept = 0; - virtual int32_t __stdcall get_FunctionBlocks(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity, struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsTransportAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall get_AbstractionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall CreateVirtualDevice(void*, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiVirtualDeviceCreationResult*) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs - { - [[nodiscard]] auto Timestamp() const; - [[nodiscard]] auto PreferredMidiProtocol() const; - [[nodiscard]] auto RequestEndpointTransmitJitterReductionTimestamps() const; - [[nodiscard]] auto RequestEndpointReceiveJitterReductionTimestamps() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice - { - [[nodiscard]] auto DeviceEndpointDeviceId() const; - [[nodiscard]] auto ClientEndpointDeviceId() const; - [[nodiscard]] auto FunctionBlocks() const; - auto UpdateFunctionBlock(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock const& block) const; - auto UpdateEndpointName(param::hstring const& name) const; - [[nodiscard]] auto SuppressHandledMessages() const; - auto SuppressHandledMessages(bool value) const; - auto StreamConfigRequestReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using StreamConfigRequestReceived_revoker = impl::event_revoker::remove_StreamConfigRequestReceived>; - [[nodiscard]] auto StreamConfigRequestReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto StreamConfigRequestReceived(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig - { - [[nodiscard]] auto Name() const; - auto Name(param::hstring const& value) const; - [[nodiscard]] auto Description() const; - auto Description(param::hstring const& value) const; - [[nodiscard]] auto Manufacturer() const; - auto Manufacturer(param::hstring const& value) const; - [[nodiscard]] auto DeclaredDeviceIdentity() const; - auto DeclaredDeviceIdentity(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& value) const; - [[nodiscard]] auto DeclaredEndpointInfo() const; - auto DeclaredEndpointInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& value) const; - [[nodiscard]] auto UserSuppliedInfo() const; - auto UserSuppliedInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& value) const; - [[nodiscard]] auto FunctionBlocks() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory - { - auto CreateInstance(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) const; - auto CreateInstance2(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) const; - auto CreateInstance3(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManager - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManager; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics - { - [[nodiscard]] auto IsTransportAvailable() const; - [[nodiscard]] auto AbstractionId() const; - auto CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiStreamConfigRequestedSettings - { - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - int32_t PreferredMidiProtocol; - bool RequestEndpointTransmitJitterReductionTimestamps; - bool RequestEndpointReceiveJitterReductionTimestamps; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiStreamConfigRequestedSettings; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiVirtualDeviceCreationResult - { - bool Success; - void* DeviceSideEndpointDeviceId; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiVirtualDeviceCreationResult; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h deleted file mode 100644 index 1377c3c57..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h +++ /dev/null @@ -1,69 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct MidiStreamConfigRequestedSettings - { - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol PreferredMidiProtocol; - bool RequestEndpointTransmitJitterReductionTimestamps; - bool RequestEndpointReceiveJitterReductionTimestamps; - }; - inline bool operator==(MidiStreamConfigRequestedSettings const& left, MidiStreamConfigRequestedSettings const& right) noexcept - { - return left.SpecificationVersionMajor == right.SpecificationVersionMajor && left.SpecificationVersionMinor == right.SpecificationVersionMinor && left.PreferredMidiProtocol == right.PreferredMidiProtocol && left.RequestEndpointTransmitJitterReductionTimestamps == right.RequestEndpointTransmitJitterReductionTimestamps && left.RequestEndpointReceiveJitterReductionTimestamps == right.RequestEndpointReceiveJitterReductionTimestamps; - } - inline bool operator!=(MidiStreamConfigRequestedSettings const& left, MidiStreamConfigRequestedSettings const& right) noexcept - { - return !(left == right); - } - struct MidiVirtualDeviceCreationResult - { - bool Success; - hstring DeviceSideEndpointDeviceId; - }; - inline bool operator==(MidiVirtualDeviceCreationResult const& left, MidiVirtualDeviceCreationResult const& right) noexcept - { - return left.Success == right.Success && left.DeviceSideEndpointDeviceId == right.DeviceSideEndpointDeviceId; - } - inline bool operator!=(MidiVirtualDeviceCreationResult const& left, MidiVirtualDeviceCreationResult const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiStreamConfigRequestReceivedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs - { - MidiStreamConfigRequestReceivedEventArgs(std::nullptr_t) noexcept {} - MidiStreamConfigRequestReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDevice : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice, - impl::require - { - MidiVirtualDevice(std::nullptr_t) noexcept {} - MidiVirtualDevice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDeviceCreationConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig, - impl::require - { - MidiVirtualDeviceCreationConfig(std::nullptr_t) noexcept {} - MidiVirtualDeviceCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig(ptr, take_ownership_from_abi) {} - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo); - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity); - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo); - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDeviceManager : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager - { - MidiVirtualDeviceManager(std::nullptr_t) noexcept {} - MidiVirtualDeviceManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto IsTransportAvailable(); - [[nodiscard]] static auto AbstractionId(); - static auto CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 1fa35ceac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 12a8de124..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index 6dcb9b9bd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index e97d295dd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index fa9a0361d..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 15faccfac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 885759693..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 5fc5dd99b..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index 28ec69100..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 1a508bd3e..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 1fa35ceac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 12a8de124..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index 6dcb9b9bd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index e97d295dd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index fa9a0361d..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 15faccfac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 885759693..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 5fc5dd99b..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index 28ec69100..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 13ddb6a25..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index cb529386b..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index fb3647fa5..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 1a508bd3e..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 13ddb6a25..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index cb529386b..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index fb3647fa5..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/README.md b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/README.md deleted file mode 100644 index 112ed6921..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Microsoft.Windows.Devices.Midi2 - -Note. This package is currently in developer preview. Please see release notes - -https://aka.ms/midi diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props deleted file mode 100644 index b77844b02..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - $(MSBuildThisFileDirectory)..\..\ - - - - - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Messages.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd - - - $$(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Diagnostics.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd - - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Initialization.winmd - - - - - \ No newline at end of file diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets deleted file mode 100644 index 2cdea5d13..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h deleted file mode 100644 index 1d0756148..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h +++ /dev/null @@ -1,293 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte1() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte1(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte2() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte2(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte3() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte3(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte3(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte3(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte4() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte4(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte4(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte4(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::AsCombined28BitValue() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_AsCombined28BitValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::IsBroadcast() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_IsBroadcast(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::IsReserved() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_IsReserved(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory::CreateInstance(uint32_t combined28BitValue) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdFactory)->CreateInstance(combined28BitValue, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory::CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdFactory)->CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::CreateBroadcast() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->CreateBroadcast(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::CreateRandom() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->CreateRandom(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Byte1(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte1(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte2(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte2(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte2(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte3(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte3()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte3(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte3(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte4(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte4()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte4(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte4(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AsCombined28BitValue(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AsCombined28BitValue()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsBroadcast(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsBroadcast()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsReserved(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsReserved()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint32_t combined28BitValue, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(combined28BitValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateBroadcast(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateBroadcast()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateRandom(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateRandom()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - inline MidiUniqueId::MidiUniqueId() : - MidiUniqueId(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiUniqueId::MidiUniqueId(uint32_t combined28BitValue) : - MidiUniqueId(impl::call_factory([&](IMidiUniqueIdFactory const& f) { return f.CreateInstance(combined28BitValue); })) - { - } - inline MidiUniqueId::MidiUniqueId(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) : - MidiUniqueId(impl::call_factory([&](IMidiUniqueIdFactory const& f) { return f.CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4); })) - { - } - inline auto MidiUniqueId::ShortLabel() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiUniqueId::LongLabel() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiUniqueId::CreateBroadcast() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.CreateBroadcast(); }); - } - inline auto MidiUniqueId::CreateRandom() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.CreateRandom(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h deleted file mode 100644 index ddc7ab50a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h +++ /dev/null @@ -1,273 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedGroup() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_IncludedGroup(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_IncludedGroup(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedChannels() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_IncludedChannels(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::IncludedGroups() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_IncludedGroups(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::IncludedMessageTypes() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_IncludedMessageTypes(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedGroup(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IncludedGroup()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IncludedGroup(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IncludedGroup(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IncludedChannels(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedChannels()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedGroups(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedGroups()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedMessageTypes(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedMessageTypes()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - inline MidiChannelEndpointListener::MidiChannelEndpointListener() : - MidiChannelEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiGroupEndpointListener::MidiGroupEndpointListener() : - MidiGroupEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiMessageTypeEndpointListener::MidiMessageTypeEndpointListener() : - MidiMessageTypeEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h deleted file mode 100644 index 1eaad3621..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h +++ /dev/null @@ -1,333 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::DiagnosticsLoopbackAEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->get_DiagnosticsLoopbackAEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::DiagnosticsLoopbackBEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->get_DiagnosticsLoopbackBEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::PingService(uint8_t pingCount) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->PingService(pingCount, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::MidiServicePingResponseSummary{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->PingService2(pingCount, timeoutMilliseconds, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::MidiServicePingResponseSummary{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetInstalledTransportPlugins() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetInstalledTransportPlugins(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetInstalledMessageProcessingPlugins() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetInstalledMessageProcessingPlugins(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetActiveSessions() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetActiveSessions(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::Success() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_Success(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::FailureReason() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_FailureReason(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::TotalPingRoundTripMidiClock() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_TotalPingRoundTripMidiClock(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::AveragePingRoundTripMidiClock() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_AveragePingRoundTripMidiClock(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::Responses() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_Responses(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::SessionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_SessionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::ProcessId() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_ProcessId(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::ProcessName() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_ProcessName(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::SessionName() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_SessionName(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::StartTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_StartTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::Connections() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_Connections(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_DiagnosticsLoopbackAEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DiagnosticsLoopbackAEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DiagnosticsLoopbackBEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DiagnosticsLoopbackBEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PingService(uint8_t pingCount, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PingService(pingCount)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PingService2(uint8_t pingCount, uint32_t timeoutMilliseconds, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PingService(pingCount, timeoutMilliseconds)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall GetInstalledTransportPlugins(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetInstalledTransportPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetInstalledMessageProcessingPlugins(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetInstalledMessageProcessingPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetActiveSessions(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetActiveSessions()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Success(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Success()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FailureReason(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FailureReason()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TotalPingRoundTripMidiClock(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TotalPingRoundTripMidiClock()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AveragePingRoundTripMidiClock(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AveragePingRoundTripMidiClock()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Responses(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Responses()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_SessionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ProcessId(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ProcessId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ProcessName(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ProcessName()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_SessionName(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionName()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_StartTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().StartTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Connections(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Connections()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - inline auto MidiDiagnostics::DiagnosticsLoopbackAEndpointDeviceId() - { - return impl::call_factory_cast([](IMidiDiagnosticsStatics const& f) { return f.DiagnosticsLoopbackAEndpointDeviceId(); }); - } - inline auto MidiDiagnostics::DiagnosticsLoopbackBEndpointDeviceId() - { - return impl::call_factory_cast([](IMidiDiagnosticsStatics const& f) { return f.DiagnosticsLoopbackBEndpointDeviceId(); }); - } - inline auto MidiDiagnostics::PingService(uint8_t pingCount) - { - return impl::call_factory([&](IMidiDiagnosticsStatics const& f) { return f.PingService(pingCount); }); - } - inline auto MidiDiagnostics::PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) - { - return impl::call_factory([&](IMidiDiagnosticsStatics const& f) { return f.PingService(pingCount, timeoutMilliseconds); }); - } - inline auto MidiReporting::GetInstalledTransportPlugins() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetInstalledTransportPlugins(); }); - } - inline auto MidiReporting::GetInstalledMessageProcessingPlugins() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetInstalledMessageProcessingPlugins(); }); - } - inline auto MidiReporting::GetActiveSessions() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetActiveSessions(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h deleted file mode 100644 index 4122a5f63..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h +++ /dev/null @@ -1,277 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::AssociationId(winrt::guid const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_AssociationId(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionA() const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_EndpointDefinitionA(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionA(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_EndpointDefinitionA(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionB() const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_EndpointDefinitionB(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionB(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_EndpointDefinitionB(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory::CreateInstance(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfigFactory)->CreateInstance(impl::bind_in(associationId), impl::bind_in(endpointDefinitionA), impl::bind_in(endpointDefinitionB), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig::AssociationId(winrt::guid const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig)->put_AssociationId(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory::CreateInstance(winrt::guid const& associationId) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfigFactory)->CreateInstance(impl::bind_in(associationId), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::IsTransportAvailable() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->get_IsTransportAvailable(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::AbstractionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->get_AbstractionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationResult result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->CreateTransientLoopbackEndpoints(*(void**)(&creationConfig), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->RemoveTransientLoopbackEndpoints(*(void**)(&deletionConfig), &result)); - return result; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_AssociationId(winrt::guid value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AssociationId(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDefinitionA()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDefinitionA(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDefinitionB()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDefinitionB(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(winrt::guid associationId, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition endpointDefinitionA, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition endpointDefinitionB, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&associationId), *reinterpret_cast(&endpointDefinitionA), *reinterpret_cast(&endpointDefinitionB))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_AssociationId(winrt::guid value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AssociationId(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(winrt::guid associationId, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&associationId))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsTransportAvailable(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsTransportAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AbstractionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AbstractionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateTransientLoopbackEndpoints(void* creationConfig, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateTransientLoopbackEndpoints(*reinterpret_cast(&creationConfig))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall RemoveTransientLoopbackEndpoints(void* deletionConfig, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().RemoveTransientLoopbackEndpoints(*reinterpret_cast(&deletionConfig))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - inline MidiLoopbackEndpointCreationConfig::MidiLoopbackEndpointCreationConfig() : - MidiLoopbackEndpointCreationConfig(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiLoopbackEndpointCreationConfig::MidiLoopbackEndpointCreationConfig(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) : - MidiLoopbackEndpointCreationConfig(impl::call_factory([&](IMidiLoopbackEndpointCreationConfigFactory const& f) { return f.CreateInstance(associationId, endpointDefinitionA, endpointDefinitionB); })) - { - } - inline MidiLoopbackEndpointDeletionConfig::MidiLoopbackEndpointDeletionConfig(winrt::guid const& associationId) : - MidiLoopbackEndpointDeletionConfig(impl::call_factory([&](IMidiLoopbackEndpointDeletionConfigFactory const& f) { return f.CreateInstance(associationId); })) - { - } - inline auto MidiLoopbackEndpointManager::IsTransportAvailable() - { - return impl::call_factory_cast([](IMidiLoopbackEndpointManagerStatics const& f) { return f.IsTransportAvailable(); }); - } - inline auto MidiLoopbackEndpointManager::AbstractionId() - { - return impl::call_factory_cast([](IMidiLoopbackEndpointManagerStatics const& f) { return f.AbstractionId(); }); - } - inline auto MidiLoopbackEndpointManager::CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) - { - return impl::call_factory([&](IMidiLoopbackEndpointManagerStatics const& f) { return f.CreateTransientLoopbackEndpoints(creationConfig); }); - } - inline auto MidiLoopbackEndpointManager::RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) - { - return impl::call_factory([&](IMidiLoopbackEndpointManagerStatics const& f) { return f.RemoveTransientLoopbackEndpoints(deletionConfig); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h deleted file mode 100644 index ebc82f88f..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h +++ /dev/null @@ -1,502 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::PreferredMidiProtocol() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_PreferredMidiProtocol(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::RequestEndpointTransmitJitterReductionTimestamps() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_RequestEndpointTransmitJitterReductionTimestamps(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::RequestEndpointReceiveJitterReductionTimestamps() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_RequestEndpointReceiveJitterReductionTimestamps(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::DeviceEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_DeviceEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::FunctionBlocks() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_FunctionBlocks(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::UpdateFunctionBlock(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock const& block) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->UpdateFunctionBlock(*(void**)(&block), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::UpdateEndpointName(param::hstring const& name) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->UpdateEndpointName(*(void**)(&name), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::SuppressHandledMessages() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_SuppressHandledMessages(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::SuppressHandledMessages(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->put_SuppressHandledMessages(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->add_StreamConfigRequestReceived(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, StreamConfigRequestReceived(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->remove_StreamConfigRequestReceived(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Name(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Name(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Description() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Description(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Description(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Description(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Manufacturer() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Manufacturer(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Manufacturer(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Manufacturer(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredDeviceIdentity() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_DeclaredDeviceIdentity(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredDeviceIdentity(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_DeclaredDeviceIdentity(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredEndpointInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_DeclaredEndpointInfo(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredEndpointInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_DeclaredEndpointInfo(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::UserSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_UserSuppliedInfo(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::UserSuppliedInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_UserSuppliedInfo(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::FunctionBlocks() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_FunctionBlocks(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance2(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance2(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), impl::bind_in(declaredDeviceIdentity), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance3(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance3(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), impl::bind_in(declaredDeviceIdentity), impl::bind_in(userSuppliedInfo), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::IsTransportAvailable() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->get_IsTransportAvailable(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::AbstractionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->get_AbstractionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->CreateVirtualDevice(*(void**)(&creationConfig), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDevice{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreferredMidiProtocol(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreferredMidiProtocol()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RequestEndpointTransmitJitterReductionTimestamps(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RequestEndpointTransmitJitterReductionTimestamps()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RequestEndpointReceiveJitterReductionTimestamps(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RequestEndpointReceiveJitterReductionTimestamps()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_DeviceEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FunctionBlocks(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().FunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateFunctionBlock(void* block, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateFunctionBlock(*reinterpret_cast(&block))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateEndpointName(void* name, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateEndpointName(*reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_SuppressHandledMessages(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SuppressHandledMessages()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_SuppressHandledMessages(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().SuppressHandledMessages(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall add_StreamConfigRequestReceived(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().StreamConfigRequestReceived(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_StreamConfigRequestReceived(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().StreamConfigRequestReceived(*reinterpret_cast(&token)); - return 0; - } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Name(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Name(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Description(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Description()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Description(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Description(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Manufacturer(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Manufacturer()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Manufacturer(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Manufacturer(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredDeviceIdentity()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DeclaredDeviceIdentity(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredEndpointInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DeclaredEndpointInfo(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().UserSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().UserSuppliedInfo(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FunctionBlocks(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().FunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity declaredDeviceIdentity, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo), *reinterpret_cast(&declaredDeviceIdentity))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity declaredDeviceIdentity, struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo userSuppliedInfo, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo), *reinterpret_cast(&declaredDeviceIdentity), *reinterpret_cast(&userSuppliedInfo))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsTransportAvailable(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsTransportAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AbstractionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AbstractionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateVirtualDevice(void* creationConfig, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateVirtualDevice(*reinterpret_cast(&creationConfig))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance(name, description, manufacturer, declaredEndpointInfo); })) - { - } - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance2(name, description, manufacturer, declaredEndpointInfo, declaredDeviceIdentity); })) - { - } - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance3(name, description, manufacturer, declaredEndpointInfo, declaredDeviceIdentity, userSuppliedInfo); })) - { - } - inline auto MidiVirtualDeviceManager::IsTransportAvailable() - { - return impl::call_factory_cast([](IMidiVirtualDeviceManagerStatics const& f) { return f.IsTransportAvailable(); }); - } - inline auto MidiVirtualDeviceManager::AbstractionId() - { - return impl::call_factory_cast([](IMidiVirtualDeviceManagerStatics const& f) { return f.AbstractionId(); }); - } - inline auto MidiVirtualDeviceManager::CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) - { - return impl::call_factory([&](IMidiVirtualDeviceManagerStatics const& f) { return f.CreateVirtualDevice(creationConfig); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h deleted file mode 100644 index 3fec6b2d9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h +++ /dev/null @@ -1,162 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::IsOperatingSystemSupported() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->IsOperatingSystemSupported(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::EnsureServiceAvailable() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->EnsureServiceAvailable(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::InitializeSdkRuntime() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->InitializeSdkRuntime(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::IsCompatibleDesktopAppSdkRuntimeInstalled() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->IsCompatibleDesktopAppSdkRuntimeInstalled(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestRuntimeReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestRuntimeReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestSettingsAppReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestSettingsAppReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestConsoleAppReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestConsoleAppReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall IsOperatingSystemSupported(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsOperatingSystemSupported()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall EnsureServiceAvailable(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().EnsureServiceAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall InitializeSdkRuntime(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().InitializeSdkRuntime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsCompatibleDesktopAppSdkRuntimeInstalled(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsCompatibleDesktopAppSdkRuntimeInstalled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestRuntimeReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestRuntimeReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestSettingsAppReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestSettingsAppReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestConsoleAppReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestConsoleAppReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - inline auto MidiServicesInitializer::IsOperatingSystemSupported() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.IsOperatingSystemSupported(); }); - } - inline auto MidiServicesInitializer::EnsureServiceAvailable() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.EnsureServiceAvailable(); }); - } - inline auto MidiServicesInitializer::InitializeSdkRuntime() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.InitializeSdkRuntime(); }); - } - inline auto MidiServicesInitializer::IsCompatibleDesktopAppSdkRuntimeInstalled() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.IsCompatibleDesktopAppSdkRuntimeInstalled(); }); - } - inline auto MidiServicesInitializer::GetLatestRuntimeReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestRuntimeReleaseInstallerUri(); }); - } - inline auto MidiServicesInitializer::GetLatestSettingsAppReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestSettingsAppReleaseInstallerUri(); }); - } - inline auto MidiServicesInitializer::GetLatestConsoleAppReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestConsoleAppReleaseInstallerUri(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h deleted file mode 100644 index dc6388835..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h +++ /dev/null @@ -1,1341 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Windows.Devices.Midi.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildUtilityMessage(timestamp, status, dataOrReserved, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemMessage(timestamp, *(void**)(&group), status, midi1Byte2, midi1Byte3, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMidi1ChannelVoiceMessage(timestamp, *(void**)(&group), static_cast(status), *(void**)(&channel), byte3, byte4, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemExclusive7Message(timestamp, *(void**)(&group), status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMidi2ChannelVoiceMessage(timestamp, *(void**)(&group), static_cast(status), *(void**)(&channel), index, data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemExclusive8Message(timestamp, *(void**)(&group), static_cast(status), numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMixedDataSetChunkHeaderMessage(timestamp, *(void**)(&group), mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMixedDataSetChunkDataMessage(timestamp, *(void**)(&group), mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildFlexDataMessage(timestamp, *(void**)(&group), form, address, *(void**)(&channel), statusBank, status, word1Data, word2Data, word3Data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message(timestamp, *(void**)(&group), statusByte, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message2(timestamp, *(void**)(&group), statusByte, dataByte1, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message3(timestamp, *(void**)(&group), statusByte, dataByte1, dataByte2, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ChannelPressureMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1NoteOffMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1NoteOnMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1PitchBendChangeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1PolyphonicKeyPressureMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ProgramChangeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TimeCodeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SongPositionPointerMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SongSelectMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TuneRequestMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TimingClockMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1StartMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ContinueMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1StopMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ActiveSensingMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SystemResetMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage32MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage32MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage64MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage64MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage96MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage96MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage128MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage128MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetMessageTypeFromMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetMessageTypeFromMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetPacketTypeFromMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetPacketTypeFromMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->MessageTypeHasGroupField(static_cast(messageType), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ReplaceGroupInMessageFirstWord(word0, *(void**)(&newGroup), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetGroupFromMessageFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetGroupFromMessageFirstWord(word0, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromUtilityMessage(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromUtilityMessage(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromMidi1ChannelVoiceMessage(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusBankFromFlexDataMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromFlexDataMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromFlexDataMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromSystemCommonMessage(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromSystemCommonMessage(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromDataMessage64FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromDataMessage64FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetNumberOfBytesFromDataMessage64FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromDataMessage128FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromDataMessage128FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetNumberOfBytesFromDataMessage128FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->MessageTypeHasChannelField(static_cast(messageType), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ReplaceChannelInMessageFirstWord(word0, *(void**)(&newChannel), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetChannelFromMessageFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetChannelFromMessageFirstWord(word0, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiChannel{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetFormFromStreamMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetFormFromStreamMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromStreamMessageFirstWord(uint32_t word0) const - { - uint16_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromStreamMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetMessageDisplayNameFromFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetMessageDisplayNameFromFirstWord(word0, &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetPacketListFromWordList(timestamp, *(void**)(&words), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetWordListFromPacketList(param::iterable const& words) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetWordListFromPacketList(*(void**)(&words), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, static_cast(request), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointNameNotificationMessages(timestamp, *(void**)(&name), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildProductInstanceIdNotificationMessages(timestamp, *(void**)(&productInstanceId), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseEndpointNameNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseEndpointNameNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseProductInstanceIdNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseProductInstanceIdNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, static_cast(requestFlags), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, static_cast(uiHint), static_cast(midi10), static_cast(direction), firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, *(void**)(&name), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseFunctionBlockNameNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildUtilityMessage(timestamp, status, dataOrReserved)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemMessage(uint64_t timestamp, void* group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemMessage(timestamp, *reinterpret_cast(&group), status, midi1Byte2, midi1Byte3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMidi1ChannelVoiceMessage(uint64_t timestamp, void* group, int32_t status, void* channel, uint8_t byte3, uint8_t byte4, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMidi1ChannelVoiceMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), *reinterpret_cast(&channel), byte3, byte4)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemExclusive7Message(uint64_t timestamp, void* group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemExclusive7Message(timestamp, *reinterpret_cast(&group), status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMidi2ChannelVoiceMessage(uint64_t timestamp, void* group, int32_t status, void* channel, uint16_t index, uint32_t data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMidi2ChannelVoiceMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), *reinterpret_cast(&channel), index, data)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemExclusive8Message(uint64_t timestamp, void* group, int32_t status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemExclusive8Message(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, void* group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMixedDataSetChunkHeaderMessage(timestamp, *reinterpret_cast(&group), mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMixedDataSetChunkDataMessage(uint64_t timestamp, void* group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMixedDataSetChunkDataMessage(timestamp, *reinterpret_cast(&group), mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFlexDataMessage(uint64_t timestamp, void* group, uint8_t form, uint8_t address, void* channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFlexDataMessage(timestamp, *reinterpret_cast(&group), form, address, *reinterpret_cast(&channel), statusBank, status, word1Data, word2Data, word3Data)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall ConvertMidi1Message(uint64_t timestamp, void* group, uint8_t statusByte, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1Message2(uint64_t timestamp, void* group, uint8_t statusByte, uint8_t dataByte1, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte, dataByte1)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1Message3(uint64_t timestamp, void* group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte, dataByte1, dataByte2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ChannelPressureMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ChannelPressureMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1NoteOffMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1NoteOffMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1NoteOnMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1NoteOnMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1PitchBendChangeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1PolyphonicKeyPressureMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ProgramChangeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ProgramChangeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TimeCodeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TimeCodeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SongPositionPointerMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SongSelectMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SongSelectMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TuneRequestMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TuneRequestMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TimingClockMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TimingClockMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1StartMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1StartMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ContinueMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ContinueMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1StopMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1StopMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ActiveSensingMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ActiveSensingMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SystemResetMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SystemResetMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall ValidateMessage32MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage32MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage64MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage64MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage96MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage96MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage128MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage128MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessageTypeFromMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessageTypeFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetPacketTypeFromMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetPacketTypeFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall MessageTypeHasGroupField(int32_t messageType, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().MessageTypeHasGroupField(*reinterpret_cast(&messageType))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ReplaceGroupInMessageFirstWord(uint32_t word0, void* newGroup, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ReplaceGroupInMessageFirstWord(word0, *reinterpret_cast(&newGroup))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetGroupFromMessageFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetGroupFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromUtilityMessage(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromUtilityMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromMidi1ChannelVoiceMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusBankFromFlexDataMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromFlexDataMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromFlexDataMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromSystemCommonMessage(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromSystemCommonMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromDataMessage64FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromDataMessage64FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetNumberOfBytesFromDataMessage64FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromDataMessage128FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromDataMessage128FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetNumberOfBytesFromDataMessage128FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall MessageTypeHasChannelField(int32_t messageType, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().MessageTypeHasChannelField(*reinterpret_cast(&messageType))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ReplaceChannelInMessageFirstWord(uint32_t word0, void* newChannel, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ReplaceChannelInMessageFirstWord(word0, *reinterpret_cast(&newChannel))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetChannelFromMessageFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetChannelFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetFormFromStreamMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetFormFromStreamMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromStreamMessageFirstWord(uint32_t word0, uint16_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromStreamMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessageDisplayNameFromFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessageDisplayNameFromFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetPacketListFromWordList(uint64_t timestamp, void* words, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetPacketListFromWordList(timestamp, *reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetWordListFromPacketList(void* words, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetWordListFromPacketList(*reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, uint32_t request, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, *reinterpret_cast(&request))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildEndpointNameNotificationMessages(uint64_t timestamp, void* name, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildEndpointNameNotificationMessages(timestamp, *reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildProductInstanceIdNotificationMessages(uint64_t timestamp, void* productInstanceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildProductInstanceIdNotificationMessages(timestamp, *reinterpret_cast(&productInstanceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseEndpointNameNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseEndpointNameNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseProductInstanceIdNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseProductInstanceIdNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, uint32_t requestFlags, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, *reinterpret_cast(&requestFlags))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, int32_t uiHint, int32_t midi10, int32_t direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, *reinterpret_cast(&uiHint), *reinterpret_cast(&midi10), *reinterpret_cast(&direction), firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, void* name, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, *reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseFunctionBlockNameNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseFunctionBlockNameNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - constexpr auto operator|(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiEndpointDiscoveryRequests const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left ^ right; - return left; - } - constexpr auto operator|(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiFunctionBlockDiscoveryRequests const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left ^ right; - return left; - } - inline auto MidiMessageBuilder::BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildUtilityMessage(timestamp, status, dataOrReserved); }); - } - inline auto MidiMessageBuilder::BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemMessage(timestamp, group, status, midi1Byte2, midi1Byte3); }); - } - inline auto MidiMessageBuilder::BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMidi1ChannelVoiceMessage(timestamp, group, status, channel, byte3, byte4); }); - } - inline auto MidiMessageBuilder::BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemExclusive7Message(timestamp, group, status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5); }); - } - inline auto MidiMessageBuilder::BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMidi2ChannelVoiceMessage(timestamp, group, status, channel, index, data); }); - } - inline auto MidiMessageBuilder::BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemExclusive8Message(timestamp, group, status, numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12); }); - } - inline auto MidiMessageBuilder::BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMixedDataSetChunkHeaderMessage(timestamp, group, mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2); }); - } - inline auto MidiMessageBuilder::BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMixedDataSetChunkDataMessage(timestamp, group, mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13); }); - } - inline auto MidiMessageBuilder::BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildFlexDataMessage(timestamp, group, form, address, channel, statusBank, status, word1Data, word2Data, word3Data); }); - } - inline auto MidiMessageBuilder::BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte, dataByte1); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte, dataByte1, dataByte2); }); - } - inline auto MidiMessageConverter::ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ChannelPressureMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1NoteOffMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1NoteOnMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1PitchBendChangeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1PolyphonicKeyPressureMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ProgramChangeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TimeCodeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SongPositionPointerMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SongSelectMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TuneRequestMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TimingClockMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1StartMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ContinueMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1StopMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ActiveSensingMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SystemResetMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageHelper::ValidateMessage32MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage32MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage64MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage64MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage96MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage96MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage128MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage128MessageType(word0); }); - } - inline auto MidiMessageHelper::GetMessageTypeFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetMessageTypeFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetPacketTypeFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetPacketTypeFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.MessageTypeHasGroupField(messageType); }); - } - inline auto MidiMessageHelper::ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ReplaceGroupInMessageFirstWord(word0, newGroup); }); - } - inline auto MidiMessageHelper::GetGroupFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetGroupFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromUtilityMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromUtilityMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromMidi1ChannelVoiceMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusBankFromFlexDataMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromFlexDataMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromFlexDataMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromSystemCommonMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromSystemCommonMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromDataMessage64FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromDataMessage64FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetNumberOfBytesFromDataMessage64FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromDataMessage128FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromDataMessage128FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetNumberOfBytesFromDataMessage128FirstWord(word0); }); - } - inline auto MidiMessageHelper::MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.MessageTypeHasChannelField(messageType); }); - } - inline auto MidiMessageHelper::ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ReplaceChannelInMessageFirstWord(word0, newChannel); }); - } - inline auto MidiMessageHelper::GetChannelFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetChannelFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetFormFromStreamMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetFormFromStreamMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromStreamMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromStreamMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetMessageDisplayNameFromFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetMessageDisplayNameFromFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetPacketListFromWordList(timestamp, words); }); - } - inline auto MidiMessageHelper::GetWordListFromPacketList(param::iterable const& words) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetWordListFromPacketList(words); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, request); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointNameNotificationMessages(timestamp, name); }); - } - inline auto MidiStreamMessageBuilder::BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildProductInstanceIdNotificationMessages(timestamp, productInstanceId); }); - } - inline auto MidiStreamMessageBuilder::ParseEndpointNameNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseEndpointNameNotificationMessages(messages); }); - } - inline auto MidiStreamMessageBuilder::ParseProductInstanceIdNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseProductInstanceIdNotificationMessages(messages); }); - } - inline auto MidiStreamMessageBuilder::BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, requestFlags); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, uiHint, midi10, direction, firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, name); }); - } - inline auto MidiStreamMessageBuilder::ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseFunctionBlockNameNotificationMessages(messages); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h deleted file mode 100644 index e221d614e..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h +++ /dev/null @@ -1,192 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics::UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) const - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponse result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfigStatics)->UpdateTransportPluginConfig(*(void**)(&configUpdate), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics::UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) const - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponse result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfigStatics)->UpdateProcessingPluginConfig(*(void**)(&configUpdate), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::MessageProcessingPluginId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_MessageProcessingPluginId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::PluginInstanceId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_PluginInstanceId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::IsFromCurrentConfigFile() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_IsFromCurrentConfigFile(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::GetConfigJson() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->GetConfigJson(&result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::TransportId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->get_TransportId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::IsFromCurrentConfigFile() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->get_IsFromCurrentConfigFile(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::GetConfigJson() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->GetConfigJson(&result)); - return hstring{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall UpdateTransportPluginConfig(void* configUpdate, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateTransportPluginConfig(*reinterpret_cast(&configUpdate))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateProcessingPluginConfig(void* configUpdate, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateProcessingPluginConfig(*reinterpret_cast(&configUpdate))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageProcessingPluginId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageProcessingPluginId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PluginInstanceId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PluginInstanceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsFromCurrentConfigFile(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsFromCurrentConfigFile()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetConfigJson(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetConfigJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; - template - struct produce : produce_base - { - int32_t __stdcall get_TransportId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TransportId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsFromCurrentConfigFile(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsFromCurrentConfigFile()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetConfigJson(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetConfigJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - inline auto MidiServiceConfig::UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) - { - return impl::call_factory([&](IMidiServiceConfigStatics const& f) { return f.UpdateTransportPluginConfig(configUpdate); }); - } - inline auto MidiServiceConfig::UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) - { - return impl::call_factory([&](IMidiServiceConfigStatics const& f) { return f.UpdateProcessingPluginConfig(configUpdate); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h deleted file mode 100644 index f8dcd9c51..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h +++ /dev/null @@ -1,3689 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/impl/Windows.Devices.Enumeration.2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::Index() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->get_Index(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::Index(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->put_Index(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::DisplayValue() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->get_DisplayValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory::CreateInstance(uint8_t index) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelFactory)->CreateInstance(index, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiChannel{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::IsValidIndex(uint8_t index) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->IsValidIndex(index, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::Now() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_Now(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::TimestampConstantSendImmediately() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_TimestampConstantSendImmediately(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::TimestampFrequency() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_TimestampFrequency(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToNanoseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToMicroseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToMilliseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToSeconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToSeconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByTicks(timestampValue, offsetTicks, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampBySeconds(timestampValue, offsetSeconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::ConnectionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_ConnectionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::ConnectedEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_ConnectedEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Tag() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_Tag(&value)); - return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Tag(winrt::Windows::Foundation::IInspectable const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->put_Tag(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::LogMessageDataValidationErrorDetails() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_LogMessageDataValidationErrorDetails(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::LogMessageDataValidationErrorDetails(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->put_LogMessageDataValidationErrorDetails(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Settings() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_Settings(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::IsOpen() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_IsOpen(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Open() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->Open(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::IsAutoReconnectEnabled() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_IsAutoReconnectEnabled(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::MessageProcessingPlugins() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_MessageProcessingPlugins(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::AddMessageProcessingPlugin(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin const& plugin) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->AddMessageProcessingPlugin(*(void**)(&plugin))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::RemoveMessageProcessingPlugin(winrt::guid const& id) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->RemoveMessageProcessingPlugin(impl::bind_in(id))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessagePacket(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket const& message) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessagePacket(*(void**)(&message), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageStruct(timestamp, wordCount, impl::bind_in(message), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, array_view words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWordArray(timestamp, startIndex, wordCount, words.size(), get_abi(words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords(timestamp, word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords2(timestamp, word0, word1, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords3(timestamp, word0, word1, word2, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords4(timestamp, word0, word1, word2, word3, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageBuffer(timestamp, byteOffset, byteCount, *(void**)(&buffer), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesWordList(uint64_t timestamp, param::iterable const& words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesWordList(timestamp, *(void**)(&words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, array_view words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesWordArray(timestamp, startIndex, wordCount, words.size(), get_abi(words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesPacketList(param::iterable const& messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesPacketList(*(void**)(&messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesStructList(uint64_t timestamp, param::iterable const& messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesStructList(timestamp, *(void**)(&messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, array_view messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesStructArray(timestamp, startIndex, messageCount, messages.size(), get_abi(messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesBuffer(timestamp, byteOffset, byteCount, *(void**)(&buffer), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings::SettingsJson() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings)->get_SettingsJson(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->add_EndpointDeviceDisconnected(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EndpointDeviceDisconnected(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->remove_EndpointDeviceDisconnected(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->add_EndpointDeviceReconnected(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EndpointDeviceReconnected(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->remove_EndpointDeviceReconnected(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::GetDeviceSelector() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->GetDeviceSelector(&result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->SendMessageSucceeded(static_cast(sendResult), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->SendMessageFailed(static_cast(sendResult), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::ContainerId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_ContainerId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeviceInstanceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeviceInstanceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::EndpointPurpose() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDevicePurpose value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_EndpointPurpose(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredEndpointInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredEndpointInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredEndpointInfoLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredEndpointInfoLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredDeviceIdentity() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredDeviceIdentity(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredDeviceIdentityLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredDeviceIdentityLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredStreamConfiguration() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredStreamConfiguration result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredStreamConfiguration(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredStreamConfigurationLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredStreamConfigurationLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredFunctionBlocks() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredFunctionBlocks(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredFunctionBlocksLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredFunctionBlocksLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetGroupTerminalBlocks() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetGroupTerminalBlocks(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetUserSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetUserSuppliedInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetTransportSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointTransportSuppliedInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetTransportSuppliedInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetParentDeviceInformation() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetParentDeviceInformation(&result)); - return winrt::Windows::Devices::Enumeration::DeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetContainerDeviceInformation() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetContainerDeviceInformation(&result)); - return winrt::Windows::Devices::Enumeration::DeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::Properties() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_Properties(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs::AddedDevice() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs)->get_AddedDevice(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs::DeviceInformationUpdate() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs)->get_DeviceInformationUpdate(&value)); - return winrt::Windows::Devices::Enumeration::DeviceInformationUpdate{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->CreateFromEndpointDeviceId(*(void**)(&endpointDeviceId), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll2(static_cast(sortOrder), &result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll3(static_cast(sortOrder), static_cast(endpointFilters), &result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::EndpointInterfaceClass() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->get_EndpointInterfaceClass(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::GetAdditionalPropertiesList() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->GetAdditionalPropertiesList(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->DeviceMatchesFilter(*(void**)(&deviceInformation), static_cast(endpointFilters), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsNameUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsNameUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsEndpointInformationUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsEndpointInformationUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsDeviceIdentityUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsDeviceIdentityUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsStreamConfigurationUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsStreamConfigurationUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::AreFunctionBlocksUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_AreFunctionBlocksUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsUserMetadataUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsUserMetadataUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::AreAdditionalCapabilitiesUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_AreAdditionalCapabilitiesUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::DeviceInformationUpdate() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_DeviceInformationUpdate(&value)); - return winrt::Windows::Devices::Enumeration::DeviceInformationUpdate{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Start() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->Start()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stop() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->Stop()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumeratedEndpointDevices() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->get_EnumeratedEndpointDevices(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Status() const - { - winrt::Windows::Devices::Enumeration::DeviceWatcherStatus value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->get_Status(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Added(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Added(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Added(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Removed(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Removed(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Removed(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Updated(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Updated(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Updated(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_EnumerationCompleted(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EnumerationCompleted(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_EnumerationCompleted(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Stopped(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Stopped(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Stopped(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics::Create() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcherStatics)->Create(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceWatcher{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics::Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcherStatics)->Create2(static_cast(endpointFilters), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceWatcher{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Id() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_Id(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Name(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_Name(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Tag() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_Tag(&value)); - return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Tag(winrt::Windows::Foundation::IInspectable const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_Tag(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::IsEnabled() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_IsEnabled(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::IsEnabled(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_IsEnabled(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Initialize(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource const& endpointConnection) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->Initialize(*(void**)(&endpointConnection))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::OnEndpointConnectionOpened() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->OnEndpointConnectionOpened()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::ProcessIncomingMessage(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageReceivedEventArgs const& args, bool& skipFurtherListeners, bool& skipMainMessageReceivedEvent) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->ProcessIncomingMessage(*(void**)(&args), &skipFurtherListeners, &skipMainMessageReceivedEvent)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Cleanup() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->Cleanup()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsReadOnly() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_IsReadOnly(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Number() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Number(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Number(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Number(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Name(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Name(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsActive() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_IsActive(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsActive(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_IsActive(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Direction() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Direction(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Direction(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Direction(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::UIHint() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_UIHint(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::UIHint(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_UIHint(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::RepresentsMidi10Connection() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_RepresentsMidi10Connection(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::RepresentsMidi10Connection(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_RepresentsMidi10Connection(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::FirstGroupIndex() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_FirstGroupIndex(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::FirstGroupIndex(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_FirstGroupIndex(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::GroupCount() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_GroupCount(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::GroupCount(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_GroupCount(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->IncludesGroup(*(void**)(&group), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MidiCIMessageVersionFormat() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_MidiCIMessageVersionFormat(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MidiCIMessageVersionFormat(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_MidiCIMessageVersionFormat(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MaxSystemExclusive8Streams() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_MaxSystemExclusive8Streams(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MaxSystemExclusive8Streams(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_MaxSystemExclusive8Streams(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::Index() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->get_Index(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::Index(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->put_Index(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::DisplayValue() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->get_DisplayValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory::CreateInstance(uint8_t index) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupFactory)->CreateInstance(index, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::IsValidIndex(uint8_t index) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->IsValidIndex(index, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Number() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Number(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Direction() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiGroupTerminalBlockDirection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Direction(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Protocol() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiGroupTerminalBlockProtocol value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Protocol(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::FirstGroupIndex() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_FirstGroupIndex(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::GroupCount() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_GroupCount(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->IncludesGroup(*(void**)(&group), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::MaxDeviceInputBandwidthIn4KBitsPerSecondUnits() const - { - uint16_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits() const - { - uint16_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::CalculatedMaxDeviceInputBandwidthBitsPerSecond() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::CalculatedMaxDeviceOutputBandwidthBitsPerSecond() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::AsEquivalentFunctionBlock() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->AsEquivalentFunctionBlock(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word2() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word2(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word3() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word3(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word3(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word3(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance2(timestamp, word0, word1, word2, word3, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Factory)->CreateInstance2(timestamp, word0, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance2(timestamp, word0, word1, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word2() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word2(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance2(timestamp, word0, word1, word2, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::PacketType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_PacketType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::MessageType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_MessageType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::PeekFirstWord() const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->PeekFirstWord(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::GetMessagePacket() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->GetMessagePacket(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillWords(uint32_t& word0, uint32_t& word1, uint32_t& word2, uint32_t& word3) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillWords(&word0, &word1, &word2, &word3, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessageStruct(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct& message) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessageStruct(impl::bind_out(message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage32(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage32(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage64(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage64(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage96(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage96(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage128(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage128(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillWordArray(uint32_t startIndex, array_view words) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillWordArray(startIndex, words.size(), put_abi(words), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillByteArray(uint32_t startIndex, array_view bytes) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillByteArray(startIndex, bytes.size(), put_abi(bytes), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillBuffer(byteOffset, *(void**)(&buffer), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::AppendWordsToList(param::vector const& wordList) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->AppendWordsToList(*(void**)(&wordList), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventSource)->add_MessageReceived(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, MessageReceived(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventSource)->remove_MessageReceived(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::SessionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_SessionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::IsOpen() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_IsOpen(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::Connections() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_Connections(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection(*(void**)(&endpointDeviceId), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection2(*(void**)(&endpointDeviceId), autoReconnect, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect, winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings const& settings) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection3(*(void**)(&endpointDeviceId), autoReconnect, *(void**)(&settings), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::DisconnectEndpointConnection(winrt::guid const& endpointConnectionId) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->DisconnectEndpointConnection(impl::bind_in(endpointConnectionId))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::UpdateName(param::hstring const& newName) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->UpdateName(*(void**)(&newName), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics::Create(param::hstring const& sessionName) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSessionStatics)->Create(*(void**)(&sessionName), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiSession{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::Timestamp(uint64_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->put_Timestamp(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::MessageType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_MessageType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::MessageType(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->put_MessageType(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::PacketType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_PacketType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::PeekFirstWord() const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->PeekFirstWord(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::GetAllWords() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->GetAllWords(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::AppendAllMessageWordsToList(param::vector const& targetList) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->AppendAllMessageWordsToList(*(void**)(&targetList), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->FillBuffer(byteOffset, *(void**)(&buffer), &result)); - return result; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Index(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Index()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Index(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Index(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DisplayValue(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DisplayValue()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint8_t index, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsValidIndex(uint8_t index, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsValidIndex(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Now(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Now()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TimestampConstantSendImmediately(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TimestampConstantSendImmediately()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TimestampFrequency(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TimestampFrequency()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToNanoseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToNanoseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToMicroseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToMicroseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToMilliseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToMilliseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToSeconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToSeconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByTicks(timestampValue, offsetTicks)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampBySeconds(timestampValue, offsetSeconds)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ConnectionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ConnectionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ConnectedEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ConnectedEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Tag(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Tag()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Tag(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Tag(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LogMessageDataValidationErrorDetails(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LogMessageDataValidationErrorDetails()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_LogMessageDataValidationErrorDetails(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().LogMessageDataValidationErrorDetails(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Settings(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Settings()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsOpen(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsOpen()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Open(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Open()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsAutoReconnectEnabled(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsAutoReconnectEnabled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageProcessingPlugins(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().MessageProcessingPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AddMessageProcessingPlugin(void* plugin) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AddMessageProcessingPlugin(*reinterpret_cast(&plugin)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall RemoveMessageProcessingPlugin(winrt::guid id) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().RemoveMessageProcessingPlugin(*reinterpret_cast(&id)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessagePacket(void* message, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessagePacket(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct const& message, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageStruct(timestamp, wordCount, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, uint32_t __wordsSize, uint32_t* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWordArray(timestamp, startIndex, wordCount, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords3(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1, word2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords4(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1, word2, word3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, void* buffer, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageBuffer(timestamp, byteOffset, byteCount, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesWordList(uint64_t timestamp, void* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesWordList(timestamp, *reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, uint32_t __wordsSize, uint32_t* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesWordArray(timestamp, startIndex, wordCount, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesPacketList(void* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesPacketList(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesStructList(uint64_t timestamp, void* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesStructList(timestamp, *reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, uint32_t __messagesSize, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesStructArray(timestamp, startIndex, messageCount, array_view(reinterpret_cast(messages), reinterpret_cast(messages) + __messagesSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, void* buffer, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesBuffer(timestamp, byteOffset, byteCount, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_SettingsJson(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SettingsJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; - template - struct produce : produce_base - { - int32_t __stdcall add_EndpointDeviceDisconnected(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EndpointDeviceDisconnected(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EndpointDeviceDisconnected(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDeviceDisconnected(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_EndpointDeviceReconnected(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EndpointDeviceReconnected(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EndpointDeviceReconnected(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDeviceReconnected(*reinterpret_cast(&token)); - return 0; - } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall GetDeviceSelector(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeviceSelector()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMessageSucceeded(uint32_t sendResult, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMessageSucceeded(*reinterpret_cast(&sendResult))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMessageFailed(uint32_t sendResult, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMessageFailed(*reinterpret_cast(&sendResult))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ContainerId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ContainerId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInstanceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInstanceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointPurpose(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointPurpose()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredEndpointInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredEndpointInfoLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredEndpointInfoLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredDeviceIdentity()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredDeviceIdentityLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredDeviceIdentityLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredStreamConfiguration(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredStreamConfiguration()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredStreamConfigurationLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredStreamConfigurationLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredFunctionBlocks(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetDeclaredFunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredFunctionBlocksLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredFunctionBlocksLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetGroupTerminalBlocks(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetGroupTerminalBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetUserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetUserSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetTransportSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetTransportSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetParentDeviceInformation(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetParentDeviceInformation()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetContainerDeviceInformation(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetContainerDeviceInformation()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Properties(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Properties()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AddedDevice(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AddedDevice()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInformationUpdate(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInformationUpdate()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromEndpointDeviceId(void* endpointDeviceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromEndpointDeviceId(*reinterpret_cast(&endpointDeviceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll2(int32_t sortOrder, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll(*reinterpret_cast(&sortOrder))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll3(int32_t sortOrder, uint32_t endpointFilters, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll(*reinterpret_cast(&sortOrder), *reinterpret_cast(&endpointFilters))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointInterfaceClass(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointInterfaceClass()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetAdditionalPropertiesList(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetAdditionalPropertiesList()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall DeviceMatchesFilter(void* deviceInformation, uint32_t endpointFilters, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().DeviceMatchesFilter(*reinterpret_cast(&deviceInformation), *reinterpret_cast(&endpointFilters))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsNameUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsNameUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsEndpointInformationUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsEndpointInformationUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsDeviceIdentityUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsDeviceIdentityUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsStreamConfigurationUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsStreamConfigurationUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AreFunctionBlocksUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AreFunctionBlocksUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsUserMetadataUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsUserMetadataUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AreAdditionalCapabilitiesUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AreAdditionalCapabilitiesUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInformationUpdate(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInformationUpdate()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Start() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Start(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Stop() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Stop(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EnumeratedEndpointDevices(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().EnumeratedEndpointDevices()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Status(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Status()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall add_Added(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Added(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Added(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Added(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Removed(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Removed(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Removed(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Removed(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Updated(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Updated(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Updated(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Updated(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_EnumerationCompleted(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EnumerationCompleted(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EnumerationCompleted(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EnumerationCompleted(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Stopped(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Stopped(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Stopped(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Stopped(*reinterpret_cast(&token)); - return 0; - } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Create(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Create2(uint32_t endpointFilters, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create(*reinterpret_cast(&endpointFilters))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_Id(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Id()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Name(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Name(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Tag(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Tag()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Tag(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Tag(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsEnabled(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsEnabled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IsEnabled(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IsEnabled(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Initialize(void* endpointConnection) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Initialize(*reinterpret_cast(&endpointConnection)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OnEndpointConnectionOpened() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().OnEndpointConnectionOpened(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ProcessIncomingMessage(void* args, bool* skipFurtherListeners, bool* skipMainMessageReceivedEvent) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().ProcessIncomingMessage(*reinterpret_cast(&args), *skipFurtherListeners, *skipMainMessageReceivedEvent); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Cleanup() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Cleanup(); - return 0; - } - catch (...) { return to_hresult(); } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsReadOnly(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsReadOnly()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Number(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Number()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Number(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Number(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Name(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Name(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsActive(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsActive()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IsActive(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IsActive(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Direction(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Direction()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Direction(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Direction(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_UIHint(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().UIHint()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_UIHint(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().UIHint(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RepresentsMidi10Connection(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RepresentsMidi10Connection()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_RepresentsMidi10Connection(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().RepresentsMidi10Connection(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FirstGroupIndex(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FirstGroupIndex()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_FirstGroupIndex(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().FirstGroupIndex(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_GroupCount(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().GroupCount()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_GroupCount(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().GroupCount(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IncludesGroup(void* group, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IncludesGroup(*reinterpret_cast(&group))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MidiCIMessageVersionFormat(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MidiCIMessageVersionFormat()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MidiCIMessageVersionFormat(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MidiCIMessageVersionFormat(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxSystemExclusive8Streams(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxSystemExclusive8Streams()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MaxSystemExclusive8Streams(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MaxSystemExclusive8Streams(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Index(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Index()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Index(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Index(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DisplayValue(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DisplayValue()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint8_t index, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsValidIndex(uint8_t index, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsValidIndex(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Number(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Number()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Direction(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Direction()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Protocol(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Protocol()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FirstGroupIndex(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FirstGroupIndex()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_GroupCount(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().GroupCount()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IncludesGroup(void* group, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IncludesGroup(*reinterpret_cast(&group))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(uint16_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxDeviceInputBandwidthIn4KBitsPerSecondUnits()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(uint16_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CalculatedMaxDeviceInputBandwidthBitsPerSecond()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CalculatedMaxDeviceOutputBandwidthBitsPerSecond()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AsEquivalentFunctionBlock(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AsEquivalentFunctionBlock()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word2(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word2(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word2(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word3(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word3()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word3(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word3(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, word2, word3, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word2(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word2(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word2(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, word2, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PacketType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PacketType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PeekFirstWord(uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PeekFirstWord()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessagePacket(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessagePacket()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillWords(uint32_t* word0, uint32_t* word1, uint32_t* word2, uint32_t* word3, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillWords(*word0, *word1, *word2, *word3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessageStruct(struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct* message, uint8_t* result) noexcept final try - { - zero_abi(message); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessageStruct(*reinterpret_cast(message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage32(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage32(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage64(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage64(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage96(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage96(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage128(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage128(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillWordArray(uint32_t startIndex, uint32_t __wordsSize, uint32_t* words, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillWordArray(startIndex, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillByteArray(uint32_t startIndex, uint32_t __bytesSize, uint8_t* bytes, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillByteArray(startIndex, array_view(reinterpret_cast(bytes), reinterpret_cast(bytes) + __bytesSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillBuffer(uint32_t byteOffset, void* buffer, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillBuffer(byteOffset, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AppendWordsToList(void* wordList, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AppendWordsToList(*reinterpret_cast const*>(&wordList))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall add_MessageReceived(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().MessageReceived(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_MessageReceived(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().MessageReceived(*reinterpret_cast(&token)); - return 0; - } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_SessionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsOpen(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsOpen()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Connections(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Connections()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection(void* endpointDeviceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection2(void* endpointDeviceId, bool autoReconnect, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId), autoReconnect)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection3(void* endpointDeviceId, bool autoReconnect, void* settings, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId), autoReconnect, *reinterpret_cast(&settings))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall DisconnectEndpointConnection(winrt::guid endpointConnectionId) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DisconnectEndpointConnection(*reinterpret_cast(&endpointConnectionId)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateName(void* newName, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateName(*reinterpret_cast(&newName))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Create(void* sessionName, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create(*reinterpret_cast(&sessionName))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Timestamp(uint64_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Timestamp(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MessageType(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MessageType(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PacketType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PacketType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PeekFirstWord(uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PeekFirstWord()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetAllWords(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetAllWords()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AppendAllMessageWordsToList(void* targetList, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AppendAllMessageWordsToList(*reinterpret_cast const*>(&targetList))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillBuffer(uint32_t byteOffset, void* buffer, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillBuffer(byteOffset, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - }; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - constexpr auto operator|(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiEndpointDeviceInformationFilters const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left ^ right; - return left; - } - constexpr auto operator|(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiSendMessageResults const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left ^ right; - return left; - } - inline MidiChannel::MidiChannel(uint8_t index) : - MidiChannel(impl::call_factory([&](IMidiChannelFactory const& f) { return f.CreateInstance(index); })) - { - } - inline auto MidiChannel::ShortLabel() - { - return impl::call_factory_cast([](IMidiChannelStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiChannel::LongLabel() - { - return impl::call_factory_cast([](IMidiChannelStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiChannel::IsValidIndex(uint8_t index) - { - return impl::call_factory([&](IMidiChannelStatics const& f) { return f.IsValidIndex(index); }); - } - inline auto MidiClock::Now() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.Now(); }); - } - inline auto MidiClock::TimestampConstantSendImmediately() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.TimestampConstantSendImmediately(); }); - } - inline auto MidiClock::TimestampFrequency() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.TimestampFrequency(); }); - } - inline auto MidiClock::ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToNanoseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToMicroseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToMilliseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToSeconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToSeconds(timestampValue); }); - } - inline auto MidiClock::OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByTicks(timestampValue, offsetTicks); }); - } - inline auto MidiClock::OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds); }); - } - inline auto MidiClock::OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds); }); - } - inline auto MidiClock::OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampBySeconds(timestampValue, offsetSeconds); }); - } - inline auto MidiEndpointConnection::GetDeviceSelector() - { - return impl::call_factory_cast([](IMidiEndpointConnectionStatics const& f) { return f.GetDeviceSelector(); }); - } - inline auto MidiEndpointConnection::SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) - { - return impl::call_factory([&](IMidiEndpointConnectionStatics const& f) { return f.SendMessageSucceeded(sendResult); }); - } - inline auto MidiEndpointConnection::SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) - { - return impl::call_factory([&](IMidiEndpointConnectionStatics const& f) { return f.SendMessageFailed(sendResult); }); - } - inline auto MidiEndpointDeviceInformation::CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.CreateFromEndpointDeviceId(endpointDeviceId); }); - } - inline auto MidiEndpointDeviceInformation::FindAll() - { - return impl::call_factory_cast(*)(IMidiEndpointDeviceInformationStatics const&), MidiEndpointDeviceInformation, IMidiEndpointDeviceInformationStatics>([](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(); }); - } - inline auto MidiEndpointDeviceInformation::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(sortOrder); }); - } - inline auto MidiEndpointDeviceInformation::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(sortOrder, endpointFilters); }); - } - inline auto MidiEndpointDeviceInformation::EndpointInterfaceClass() - { - return impl::call_factory_cast([](IMidiEndpointDeviceInformationStatics const& f) { return f.EndpointInterfaceClass(); }); - } - inline auto MidiEndpointDeviceInformation::GetAdditionalPropertiesList() - { - return impl::call_factory_cast(*)(IMidiEndpointDeviceInformationStatics const&), MidiEndpointDeviceInformation, IMidiEndpointDeviceInformationStatics>([](IMidiEndpointDeviceInformationStatics const& f) { return f.GetAdditionalPropertiesList(); }); - } - inline auto MidiEndpointDeviceInformation::DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.DeviceMatchesFilter(deviceInformation, endpointFilters); }); - } - inline auto MidiEndpointDeviceWatcher::Create() - { - return impl::call_factory_cast([](IMidiEndpointDeviceWatcherStatics const& f) { return f.Create(); }); - } - inline auto MidiEndpointDeviceWatcher::Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) - { - return impl::call_factory([&](IMidiEndpointDeviceWatcherStatics const& f) { return f.Create(endpointFilters); }); - } - inline MidiFunctionBlock::MidiFunctionBlock() : - MidiFunctionBlock(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiGroup::MidiGroup(uint8_t index) : - MidiGroup(impl::call_factory([&](IMidiGroupFactory const& f) { return f.CreateInstance(index); })) - { - } - inline auto MidiGroup::ShortLabel() - { - return impl::call_factory_cast([](IMidiGroupStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiGroup::LongLabel() - { - return impl::call_factory_cast([](IMidiGroupStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiGroup::IsValidIndex(uint8_t index) - { - return impl::call_factory([&](IMidiGroupStatics const& f) { return f.IsValidIndex(index); }); - } - inline MidiMessage128::MidiMessage128() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage128::MidiMessage128(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, word2, word3, baseInterface, innerInterface); }); - } - inline MidiMessage128::MidiMessage128(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage128::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage128Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage32::MidiMessage32() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage32Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage32::MidiMessage32(uint64_t timestamp, uint32_t word0) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage32Factory const& f) { return f.CreateInstance2(timestamp, word0, baseInterface, innerInterface); }); - } - inline auto MidiMessage32::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage32Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage64::MidiMessage64() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage64::MidiMessage64(uint64_t timestamp, uint32_t word0, uint32_t word1) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, baseInterface, innerInterface); }); - } - inline MidiMessage64::MidiMessage64(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage64::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage64Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage96::MidiMessage96() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage96::MidiMessage96(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, word2, baseInterface, innerInterface); }); - } - inline MidiMessage96::MidiMessage96(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage96::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage96Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline auto MidiSession::Create(param::hstring const& sessionName) - { - return impl::call_factory([&](IMidiSessionStatics const& f) { return f.Create(sessionName); }); - } - template - struct MidiMessage128T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage128; - protected: - MidiMessage128T() - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage128T(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, word2, word3, *this, this->m_inner); }); - } - MidiMessage128T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; - template - struct MidiMessage32T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage32; - protected: - MidiMessage32T() - { - impl::call_factory([&](IMidiMessage32Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage32T(uint64_t timestamp, uint32_t word0) - { - impl::call_factory([&](IMidiMessage32Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, *this, this->m_inner); }); - } - }; - template - struct MidiMessage64T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage64; - protected: - MidiMessage64T() - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage64T(uint64_t timestamp, uint32_t word0, uint32_t word1) - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, *this, this->m_inner); }); - } - MidiMessage64T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; - template - struct MidiMessage96T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage96; - protected: - MidiMessage96T() - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage96T(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, word2, *this, this->m_inner); }); - } - MidiMessage96T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h deleted file mode 100644 index ed9a955bf..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h +++ /dev/null @@ -1,1524 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_0_H -WINRT_EXPORT namespace winrt::Windows::Devices::Enumeration -{ - struct DeviceInformation; - struct DeviceInformationUpdate; - enum class DeviceWatcherStatus : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct EventRegistrationToken; - struct IMemoryBuffer; - template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; -} -WINRT_EXPORT namespace winrt::Windows::Foundation::Collections -{ - template struct WINRT_IMPL_EMPTY_BASES IIterable; - template struct WINRT_IMPL_EMPTY_BASES IVector; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - enum class MidiEndpointDeviceInformationFilters : uint32_t - { - IncludeClientUmpFormatNative = 0x1, - IncludeClientByteFormatNative = 0x2, - IncludeVirtualDeviceResponder = 0x100, - IncludeDiagnosticLoopback = 0x10000, - IncludeDiagnosticPing = 0x20000, - AllTypicalEndpoints = 0x3, - }; - enum class MidiEndpointDeviceInformationSortOrder : int32_t - { - None = 0, - Name = 1, - EndpointDeviceId = 2, - DeviceInstanceId = 3, - ContainerThenName = 11, - ContainerThenEndpointDeviceId = 12, - ContainerThenDeviceInstanceId = 13, - TransportMnemonicThenName = 21, - TransportMnemonicThenEndpointDeviceId = 22, - TransportMnemonicThenDeviceInstanceId = 23, - }; - enum class MidiEndpointDevicePurpose : int32_t - { - NormalMessageEndpoint = 0, - VirtualDeviceResponder = 100, - InBoxGeneralMidiSynth = 400, - DiagnosticLoopback = 500, - DiagnosticPing = 510, - }; - enum class MidiEndpointNativeDataFormat : int32_t - { - Unknown = 0, - ByteFormat = 1, - UniversalMidiPacketFormat = 2, - }; - enum class MidiFunctionBlockDirection : int32_t - { - Undefined = 0, - BlockInput = 1, - BlockOutput = 2, - Bidirectional = 3, - }; - enum class MidiFunctionBlockRepresentsMidi10Connection : int32_t - { - Not10 = 0, - YesBandwidthUnrestricted = 1, - YesBandwidthRestricted = 2, - Reserved = 3, - }; - enum class MidiFunctionBlockUIHint : int32_t - { - Unknown = 0, - Receiver = 1, - Sender = 2, - Bidirectional = 3, - }; - enum class MidiGroupTerminalBlockDirection : int32_t - { - Bidirectional = 0, - BlockInput = 1, - BlockOutput = 2, - }; - enum class MidiGroupTerminalBlockProtocol : int32_t - { - Unknown = 0, - Midi1Message64 = 1, - Midi1Message64WithJitterReduction = 2, - Midi1Message128 = 3, - Midi1Message128WithJitterReduction = 4, - Midi2 = 17, - Midi2WithJitterReduction = 18, - }; - enum class MidiMessageType : int32_t - { - UtilityMessage32 = 0, - SystemCommon32 = 1, - Midi1ChannelVoice32 = 2, - DataMessage64 = 3, - Midi2ChannelVoice64 = 4, - DataMessage128 = 5, - FutureReserved632 = 6, - FutureReserved732 = 7, - FutureReserved864 = 8, - FutureReserved964 = 9, - FutureReservedA64 = 10, - FutureReservedB96 = 11, - FutureReservedC96 = 12, - FlexData128 = 13, - FutureReservedE128 = 14, - Stream128 = 15, - }; - enum class MidiPacketType : int32_t - { - UnknownOrInvalid = 0, - UniversalMidiPacket32 = 1, - UniversalMidiPacket64 = 2, - UniversalMidiPacket96 = 3, - UniversalMidiPacket128 = 4, - }; - enum class MidiProtocol : int32_t - { - Default = 0, - Midi1 = 1, - Midi2 = 2, - }; - enum class MidiSendMessageResults : uint32_t - { - Succeeded = 0x80000000, - Failed = 0x10000000, - BufferFull = 0x10000, - EndpointConnectionClosedOrInvalid = 0x40000, - InvalidMessageTypeForWordCount = 0x100000, - InvalidMessageOther = 0x200000, - DataIndexOutOfRange = 0x400000, - TimestampOutOfRange = 0x800000, - MessageListPartiallyProcessed = 0xf00000, - }; - struct IMidiChannel; - struct IMidiChannelFactory; - struct IMidiChannelStatics; - struct IMidiClock; - struct IMidiClockStatics; - struct IMidiEndpointConnection; - struct IMidiEndpointConnectionSettings; - struct IMidiEndpointConnectionSource; - struct IMidiEndpointConnectionStatics; - struct IMidiEndpointDeviceInformation; - struct IMidiEndpointDeviceInformationAddedEventArgs; - struct IMidiEndpointDeviceInformationRemovedEventArgs; - struct IMidiEndpointDeviceInformationStatics; - struct IMidiEndpointDeviceInformationUpdatedEventArgs; - struct IMidiEndpointDeviceWatcher; - struct IMidiEndpointDeviceWatcherStatics; - struct IMidiEndpointMessageProcessingPlugin; - struct IMidiFunctionBlock; - struct IMidiGroup; - struct IMidiGroupFactory; - struct IMidiGroupStatics; - struct IMidiGroupTerminalBlock; - struct IMidiMessage128; - struct IMidiMessage128Factory; - struct IMidiMessage128Statics; - struct IMidiMessage32; - struct IMidiMessage32Factory; - struct IMidiMessage32Statics; - struct IMidiMessage64; - struct IMidiMessage64Factory; - struct IMidiMessage64Statics; - struct IMidiMessage96; - struct IMidiMessage96Factory; - struct IMidiMessage96Statics; - struct IMidiMessageReceivedEventArgs; - struct IMidiMessageReceivedEventSource; - struct IMidiSession; - struct IMidiSessionStatics; - struct IMidiUniversalPacket; - struct MidiChannel; - struct MidiClock; - struct MidiEndpointConnection; - struct MidiEndpointDeviceInformation; - struct MidiEndpointDeviceInformationAddedEventArgs; - struct MidiEndpointDeviceInformationRemovedEventArgs; - struct MidiEndpointDeviceInformationUpdatedEventArgs; - struct MidiEndpointDeviceWatcher; - struct MidiFunctionBlock; - struct MidiGroup; - struct MidiGroupTerminalBlock; - struct MidiMessage128; - struct MidiMessage32; - struct MidiMessage64; - struct MidiMessage96; - struct MidiMessageReceivedEventArgs; - struct MidiSession; - struct MidiDeclaredDeviceIdentity; - struct MidiDeclaredEndpointInfo; - struct MidiDeclaredStreamConfiguration; - struct MidiEndpointTransportSuppliedInfo; - struct MidiEndpointUserSuppliedInfo; - struct MidiMessageStruct; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiChannel"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiClock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointConnection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformation"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationAddedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationRemovedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationUpdatedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceWatcher"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroup"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage128"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage32"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage64"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage96"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiSession"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationFilters"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationSortOrder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDevicePurpose"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointNativeDataFormat"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockDirection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockRepresentsMidi10Connection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockUIHint"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlockDirection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlockProtocol"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageType"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiPacketType"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiProtocol"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiSendMessageResults"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredDeviceIdentity"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredEndpointInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredStreamConfiguration"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointTransportSuppliedInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointUserSuppliedInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageStruct"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannel"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannelFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannelStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiClock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiClockStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionSettings"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionSource"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformation"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationAddedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationRemovedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationUpdatedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceWatcher"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceWatcherStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointMessageProcessingPlugin"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiFunctionBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroup"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupTerminalBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessageReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessageReceivedEventSource"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiSession"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiSessionStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiUniversalPacket"; - template <> inline constexpr guid guid_v{ 0x34DC7F81,0xF0C2,0x50D4,{ 0xBE,0xDF,0x42,0xFA,0xB9,0xA1,0xCE,0xF8 } }; // 34DC7F81-F0C2-50D4-BEDF-42FAB9A1CEF8 - template <> inline constexpr guid guid_v{ 0x02A0FF18,0xFE96,0x5193,{ 0x98,0xEF,0xD9,0x67,0x58,0xCD,0x68,0xD4 } }; // 02A0FF18-FE96-5193-98EF-D96758CD68D4 - template <> inline constexpr guid guid_v{ 0xEC86B553,0xADB5,0x5330,{ 0x99,0x60,0x1D,0x8B,0x3A,0x35,0xB0,0xC6 } }; // EC86B553-ADB5-5330-9960-1D8B3A35B0C6 - template <> inline constexpr guid guid_v{ 0xF065F78B,0xE4DC,0x55A7,{ 0x96,0x97,0x63,0x59,0xD0,0xEC,0xD7,0x3A } }; // F065F78B-E4DC-55A7-9697-6359D0ECD73A - template <> inline constexpr guid guid_v{ 0xF672B9EB,0xD41D,0x5CDD,{ 0xAF,0x7B,0x64,0x29,0x94,0x0B,0xE3,0xE7 } }; // F672B9EB-D41D-5CDD-AF7B-6429940BE3E7 - template <> inline constexpr guid guid_v{ 0x452EECE5,0x4FB8,0x5C0C,{ 0xB8,0xDA,0x46,0x70,0x30,0xBD,0xAC,0xE2 } }; // 452EECE5-4FB8-5C0C-B8DA-467030BDACE2 - template <> inline constexpr guid guid_v{ 0x65736736,0x35F3,0x421C,{ 0xA6,0x83,0x3A,0x03,0x4A,0xD0,0xDC,0xC2 } }; // 65736736-35F3-421C-A683-3A034AD0DCC2 - template <> inline constexpr guid guid_v{ 0x44385CDD,0xB64C,0x4195,{ 0x8F,0xAA,0x8A,0x61,0xFC,0x95,0x2A,0x23 } }; // 44385CDD-B64C-4195-8FAA-8A61FC952A23 - template <> inline constexpr guid guid_v{ 0x99355145,0xBC11,0x5B85,{ 0x9B,0x23,0x1B,0x58,0x26,0x6F,0x46,0x30 } }; // 99355145-BC11-5B85-9B23-1B58266F4630 - template <> inline constexpr guid guid_v{ 0xFB4A1253,0x4429,0x5765,{ 0x99,0xDE,0xFF,0x76,0xBB,0xED,0x58,0x8B } }; // FB4A1253-4429-5765-99DE-FF76BBED588B - template <> inline constexpr guid guid_v{ 0xECF028D0,0xEECC,0x5F99,{ 0x8A,0xDF,0x8F,0x29,0xB7,0x0B,0x29,0x6C } }; // ECF028D0-EECC-5F99-8ADF-8F29B70B296C - template <> inline constexpr guid guid_v{ 0x84D3DDE4,0xE6F8,0x5BA5,{ 0x97,0xB4,0xB8,0xD4,0xC5,0x0A,0xFD,0x9F } }; // 84D3DDE4-E6F8-5BA5-97B4-B8D4C50AFD9F - template <> inline constexpr guid guid_v{ 0x1D2C9C0A,0x428E,0x5F75,{ 0x89,0xD5,0x00,0xC3,0xA3,0x79,0x4D,0x88 } }; // 1D2C9C0A-428E-5F75-89D5-00C3A3794D88 - template <> inline constexpr guid guid_v{ 0xAA4B1E3A,0x04B6,0x5560,{ 0xBC,0x2B,0xCF,0xD1,0x64,0xC0,0xF1,0xDE } }; // AA4B1E3A-04B6-5560-BC2B-CFD164C0F1DE - template <> inline constexpr guid guid_v{ 0x5CBF4CAC,0x3409,0x5A57,{ 0x9C,0x47,0xFC,0xA8,0x3C,0x69,0xDB,0xE3 } }; // 5CBF4CAC-3409-5A57-9C47-FCA83C69DBE3 - template <> inline constexpr guid guid_v{ 0xF28F646C,0x6BE6,0x5E13,{ 0x8A,0x78,0x7F,0xD1,0xB8,0x5A,0x7E,0x95 } }; // F28F646C-6BE6-5E13-8A78-7FD1B85A7E95 - template <> inline constexpr guid guid_v{ 0x198D5EF2,0x313F,0x41AF,{ 0x92,0x59,0xA4,0x29,0x97,0xE0,0x60,0xF0 } }; // 198D5EF2-313F-41AF-9259-A42997E060F0 - template <> inline constexpr guid guid_v{ 0xEB43C123,0x5382,0x5C71,{ 0x8D,0x1B,0x22,0x3B,0x8F,0x76,0xC2,0x3B } }; // EB43C123-5382-5C71-8D1B-223B8F76C23B - template <> inline constexpr guid guid_v{ 0xD2FE009D,0x8542,0x5AE7,{ 0xA8,0xF8,0x4F,0x28,0x14,0x5E,0x3A,0x8F } }; // D2FE009D-8542-5AE7-A8F8-4F28145E3A8F - template <> inline constexpr guid guid_v{ 0xEC11AC98,0x616B,0x545C,{ 0xA0,0x6C,0x95,0xB3,0x91,0x5A,0xDB,0x41 } }; // EC11AC98-616B-545C-A06C-95B3915ADB41 - template <> inline constexpr guid guid_v{ 0x08071F7E,0xBA0B,0x5020,{ 0x8E,0x23,0xBC,0x81,0x9B,0x24,0xA4,0xE2 } }; // 08071F7E-BA0B-5020-8E23-BC819B24A4E2 - template <> inline constexpr guid guid_v{ 0x3DBA035F,0xE298,0x5F22,{ 0xB0,0x0B,0x51,0xC7,0x2D,0xCF,0xF7,0x1F } }; // 3DBA035F-E298-5F22-B00B-51C72DCFF71F - template <> inline constexpr guid guid_v{ 0xEFB9C9BB,0x4397,0x538A,{ 0xB1,0x7F,0xBC,0x83,0x00,0x12,0xE1,0xEA } }; // EFB9C9BB-4397-538A-B17F-BC830012E1EA - template <> inline constexpr guid guid_v{ 0x6FB629DF,0xE277,0x5EE8,{ 0xB7,0xB8,0x13,0xA3,0x52,0x8B,0xA2,0x55 } }; // 6FB629DF-E277-5EE8-B7B8-13A3528BA255 - template <> inline constexpr guid guid_v{ 0x722B7533,0x8EFB,0x5CA9,{ 0x93,0x99,0x74,0xEE,0x2D,0x8D,0x53,0x8C } }; // 722B7533-8EFB-5CA9-9399-74EE2D8D538C - template <> inline constexpr guid guid_v{ 0x1C2EC0A7,0xE093,0x5FF0,{ 0xA0,0x9B,0x77,0x68,0x6A,0x75,0x64,0x18 } }; // 1C2EC0A7-E093-5FF0-A09B-77686A756418 - template <> inline constexpr guid guid_v{ 0x47D7FD0F,0x7945,0x5283,{ 0xB1,0x1B,0xA4,0xF5,0xCF,0xBB,0xF6,0xF2 } }; // 47D7FD0F-7945-5283-B11B-A4F5CFBBF6F2 - template <> inline constexpr guid guid_v{ 0x52D01ECA,0x60AC,0x5229,{ 0xAA,0xC2,0xAF,0xA7,0x2E,0xF1,0x40,0x45 } }; // 52D01ECA-60AC-5229-AAC2-AFA72EF14045 - template <> inline constexpr guid guid_v{ 0x62885C57,0x325C,0x5A7C,{ 0xB1,0x8F,0xDE,0x36,0x0A,0xC3,0x77,0xBD } }; // 62885C57-325C-5A7C-B18F-DE360AC377BD - template <> inline constexpr guid guid_v{ 0x10B85E46,0xC6B8,0x593A,{ 0x93,0x85,0x11,0xAE,0x2F,0xCE,0xB9,0xF1 } }; // 10B85E46-C6B8-593A-9385-11AE2FCEB9F1 - template <> inline constexpr guid guid_v{ 0xA75E98A2,0xC6AC,0x5333,{ 0x89,0x65,0x97,0xCD,0xA8,0x80,0x85,0x2E } }; // A75E98A2-C6AC-5333-8965-97CDA880852E - template <> inline constexpr guid guid_v{ 0x82B6C4F8,0xC292,0x50DA,{ 0xBD,0xDF,0xC1,0x18,0x6D,0x3B,0x9E,0xE6 } }; // 82B6C4F8-C292-50DA-BDDF-C1186D3B9EE6 - template <> inline constexpr guid guid_v{ 0x4AC4FE62,0x41C9,0x5605,{ 0x9D,0xB8,0xDE,0xD7,0xCB,0x44,0xB8,0x59 } }; // 4AC4FE62-41C9-5605-9DB8-DED7CB44B859 - template <> inline constexpr guid guid_v{ 0x80451AFD,0xE703,0x5790,{ 0x9C,0xF7,0x4A,0x17,0xAD,0x1E,0x47,0x3B } }; // 80451AFD-E703-5790-9CF7-4A17AD1E473B - template <> inline constexpr guid guid_v{ 0x190C0204,0x845B,0x5A20,{ 0xB9,0x5E,0x91,0x78,0xA8,0xDD,0xAF,0xC6 } }; // 190C0204-845B-5A20-B95E-9178A8DDAFC6 - template <> inline constexpr guid guid_v{ 0x101CEB4B,0xCCA4,0x48A1,{ 0xB9,0x1E,0x60,0x02,0xB9,0x28,0x61,0x3C } }; // 101CEB4B-CCA4-48A1-B91E-6002B928613C - template <> inline constexpr guid guid_v{ 0x47D3E2F0,0xB352,0x5D13,{ 0x88,0x37,0xE4,0x8F,0xF4,0x84,0x5F,0xA0 } }; // 47D3E2F0-B352-5D13-8837-E48FF4845FA0 - template <> inline constexpr guid guid_v{ 0x8678C907,0x163D,0x5D86,{ 0xBF,0xC7,0xFE,0x80,0x04,0x63,0x61,0x86 } }; // 8678C907-163D-5D86-BFC7-FE8004636186 - template <> inline constexpr guid guid_v{ 0x2EB5DF8A,0xD751,0x4997,{ 0xBF,0x96,0xBA,0x9A,0x53,0x1F,0xD5,0xFF } }; // 2EB5DF8A-D751-4997-BF96-BA9A531FD5FF - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiClock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiSession; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Index(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Index(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_DisplayValue(uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall IsValidIndex(uint8_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Now(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_TimestampConstantSendImmediately(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_TimestampFrequency(uint64_t*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToNanoseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToMicroseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToMilliseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToSeconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByTicks(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByMicroseconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByMilliseconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampBySeconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ConnectionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_ConnectedEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_Tag(void**) noexcept = 0; - virtual int32_t __stdcall put_Tag(void*) noexcept = 0; - virtual int32_t __stdcall get_LogMessageDataValidationErrorDetails(bool*) noexcept = 0; - virtual int32_t __stdcall put_LogMessageDataValidationErrorDetails(bool) noexcept = 0; - virtual int32_t __stdcall get_Settings(void**) noexcept = 0; - virtual int32_t __stdcall get_IsOpen(bool*) noexcept = 0; - virtual int32_t __stdcall Open(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsAutoReconnectEnabled(bool*) noexcept = 0; - virtual int32_t __stdcall get_MessageProcessingPlugins(void**) noexcept = 0; - virtual int32_t __stdcall AddMessageProcessingPlugin(void*) noexcept = 0; - virtual int32_t __stdcall RemoveMessageProcessingPlugin(winrt::guid) noexcept = 0; - virtual int32_t __stdcall SendSingleMessagePacket(void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageStruct(uint64_t, uint8_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct const&, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWordArray(uint64_t, uint32_t, uint8_t, uint32_t, uint32_t*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords(uint64_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords2(uint64_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords3(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords4(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageBuffer(uint64_t, uint32_t, uint8_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesWordList(uint64_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesWordArray(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesPacketList(void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesStructList(uint64_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesStructArray(uint64_t, uint32_t, uint32_t, uint32_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesBuffer(uint64_t, uint32_t, uint32_t, void*, uint32_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SettingsJson(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall add_EndpointDeviceDisconnected(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EndpointDeviceDisconnected(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_EndpointDeviceReconnected(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EndpointDeviceReconnected(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall GetDeviceSelector(void**) noexcept = 0; - virtual int32_t __stdcall SendMessageSucceeded(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall SendMessageFailed(uint32_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_ContainerId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_DeviceInstanceId(void**) noexcept = 0; - virtual int32_t __stdcall get_EndpointPurpose(int32_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredEndpointInfoLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredDeviceIdentityLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredStreamConfiguration(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredStreamConfigurationLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredFunctionBlocks(void**) noexcept = 0; - virtual int32_t __stdcall get_DeclaredFunctionBlocksLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetGroupTerminalBlocks(void**) noexcept = 0; - virtual int32_t __stdcall GetUserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall GetTransportSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall GetParentDeviceInformation(void**) noexcept = 0; - virtual int32_t __stdcall GetContainerDeviceInformation(void**) noexcept = 0; - virtual int32_t __stdcall get_Properties(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AddedDevice(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_DeviceInformationUpdate(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromEndpointDeviceId(void*, void**) noexcept = 0; - virtual int32_t __stdcall FindAll(void**) noexcept = 0; - virtual int32_t __stdcall FindAll2(int32_t, void**) noexcept = 0; - virtual int32_t __stdcall FindAll3(int32_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall get_EndpointInterfaceClass(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall GetAdditionalPropertiesList(void**) noexcept = 0; - virtual int32_t __stdcall DeviceMatchesFilter(void*, uint32_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_IsNameUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsEndpointInformationUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsDeviceIdentityUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsStreamConfigurationUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_AreFunctionBlocksUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsUserMetadataUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_AreAdditionalCapabilitiesUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_DeviceInformationUpdate(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Start() noexcept = 0; - virtual int32_t __stdcall Stop() noexcept = 0; - virtual int32_t __stdcall get_EnumeratedEndpointDevices(void**) noexcept = 0; - virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; - virtual int32_t __stdcall add_Added(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Added(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Removed(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Removed(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Updated(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Updated(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_EnumerationCompleted(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EnumerationCompleted(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Stopped(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Stopped(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Create(void**) noexcept = 0; - virtual int32_t __stdcall Create2(uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Id(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall put_Name(void*) noexcept = 0; - virtual int32_t __stdcall get_Tag(void**) noexcept = 0; - virtual int32_t __stdcall put_Tag(void*) noexcept = 0; - virtual int32_t __stdcall get_IsEnabled(bool*) noexcept = 0; - virtual int32_t __stdcall put_IsEnabled(bool) noexcept = 0; - virtual int32_t __stdcall Initialize(void*) noexcept = 0; - virtual int32_t __stdcall OnEndpointConnectionOpened() noexcept = 0; - virtual int32_t __stdcall ProcessIncomingMessage(void*, bool*, bool*) noexcept = 0; - virtual int32_t __stdcall Cleanup() noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsReadOnly(bool*) noexcept = 0; - virtual int32_t __stdcall get_Number(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Number(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall put_Name(void*) noexcept = 0; - virtual int32_t __stdcall get_IsActive(bool*) noexcept = 0; - virtual int32_t __stdcall put_IsActive(bool) noexcept = 0; - virtual int32_t __stdcall get_Direction(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_Direction(int32_t) noexcept = 0; - virtual int32_t __stdcall get_UIHint(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_UIHint(int32_t) noexcept = 0; - virtual int32_t __stdcall get_RepresentsMidi10Connection(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_RepresentsMidi10Connection(int32_t) noexcept = 0; - virtual int32_t __stdcall get_FirstGroupIndex(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_FirstGroupIndex(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_GroupCount(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_GroupCount(uint8_t) noexcept = 0; - virtual int32_t __stdcall IncludesGroup(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_MidiCIMessageVersionFormat(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_MidiCIMessageVersionFormat(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_MaxSystemExclusive8Streams(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_MaxSystemExclusive8Streams(uint8_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Index(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Index(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_DisplayValue(uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall IsValidIndex(uint8_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Number(uint8_t*) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_Direction(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_Protocol(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_FirstGroupIndex(uint8_t*) noexcept = 0; - virtual int32_t __stdcall get_GroupCount(uint8_t*) noexcept = 0; - virtual int32_t __stdcall IncludesGroup(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(uint16_t*) noexcept = 0; - virtual int32_t __stdcall get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(uint16_t*) noexcept = 0; - virtual int32_t __stdcall get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(uint32_t*) noexcept = 0; - virtual int32_t __stdcall get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(uint32_t*) noexcept = 0; - virtual int32_t __stdcall AsEquivalentFunctionBlock(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word2(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word2(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word3(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word3(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word2(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word2(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_PacketType(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_MessageType(int32_t*) noexcept = 0; - virtual int32_t __stdcall PeekFirstWord(uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetMessagePacket(void**) noexcept = 0; - virtual int32_t __stdcall FillWords(uint32_t*, uint32_t*, uint32_t*, uint32_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillMessageStruct(struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillMessage32(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage64(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage96(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage128(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillWordArray(uint32_t, uint32_t, uint32_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillByteArray(uint32_t, uint32_t, uint8_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillBuffer(uint32_t, void*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall AppendWordsToList(void*, uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall add_MessageReceived(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_MessageReceived(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SessionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_IsOpen(bool*) noexcept = 0; - virtual int32_t __stdcall get_Connections(void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection(void*, void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection2(void*, bool, void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection3(void*, bool, void*, void**) noexcept = 0; - virtual int32_t __stdcall DisconnectEndpointConnection(winrt::guid) noexcept = 0; - virtual int32_t __stdcall UpdateName(void*, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Create(void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall put_Timestamp(uint64_t) noexcept = 0; - virtual int32_t __stdcall get_MessageType(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_MessageType(int32_t) noexcept = 0; - virtual int32_t __stdcall get_PacketType(int32_t*) noexcept = 0; - virtual int32_t __stdcall PeekFirstWord(uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetAllWords(void**) noexcept = 0; - virtual int32_t __stdcall AppendAllMessageWordsToList(void*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillBuffer(uint32_t, void*, uint8_t*) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannel - { - [[nodiscard]] auto Index() const; - auto Index(uint8_t value) const; - [[nodiscard]] auto DisplayValue() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannel; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory - { - auto CreateInstance(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto IsValidIndex(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiClock - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiClock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics - { - [[nodiscard]] auto Now() const; - [[nodiscard]] auto TimestampConstantSendImmediately() const; - [[nodiscard]] auto TimestampFrequency() const; - auto ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToSeconds(uint64_t timestampValue) const; - auto OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) const; - auto OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) const; - auto OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) const; - auto OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection - { - [[nodiscard]] auto ConnectionId() const; - [[nodiscard]] auto ConnectedEndpointDeviceId() const; - [[nodiscard]] auto Tag() const; - auto Tag(winrt::Windows::Foundation::IInspectable const& value) const; - [[nodiscard]] auto LogMessageDataValidationErrorDetails() const; - auto LogMessageDataValidationErrorDetails(bool value) const; - [[nodiscard]] auto Settings() const; - [[nodiscard]] auto IsOpen() const; - auto Open() const; - [[nodiscard]] auto IsAutoReconnectEnabled() const; - [[nodiscard]] auto MessageProcessingPlugins() const; - auto AddMessageProcessingPlugin(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin const& plugin) const; - auto RemoveMessageProcessingPlugin(winrt::guid const& id) const; - auto SendSingleMessagePacket(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket const& message) const; - auto SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - auto SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, array_view words) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) const; - auto SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - auto SendMultipleMessagesWordList(uint64_t timestamp, param::iterable const& words) const; - auto SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, array_view words) const; - auto SendMultipleMessagesPacketList(param::iterable const& messages) const; - auto SendMultipleMessagesStructList(uint64_t timestamp, param::iterable const& messages) const; - auto SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, array_view messages) const; - auto SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings - { - [[nodiscard]] auto SettingsJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource - { - auto EndpointDeviceDisconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EndpointDeviceDisconnected_revoker = impl::event_revoker::remove_EndpointDeviceDisconnected>; - [[nodiscard]] auto EndpointDeviceDisconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EndpointDeviceDisconnected(winrt::event_token const& token) const noexcept; - auto EndpointDeviceReconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EndpointDeviceReconnected_revoker = impl::event_revoker::remove_EndpointDeviceReconnected>; - [[nodiscard]] auto EndpointDeviceReconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EndpointDeviceReconnected(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics - { - auto GetDeviceSelector() const; - auto SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const; - auto SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto ContainerId() const; - [[nodiscard]] auto DeviceInstanceId() const; - [[nodiscard]] auto EndpointPurpose() const; - auto GetDeclaredEndpointInfo() const; - [[nodiscard]] auto DeclaredEndpointInfoLastUpdateTime() const; - auto GetDeclaredDeviceIdentity() const; - [[nodiscard]] auto DeclaredDeviceIdentityLastUpdateTime() const; - auto GetDeclaredStreamConfiguration() const; - [[nodiscard]] auto DeclaredStreamConfigurationLastUpdateTime() const; - auto GetDeclaredFunctionBlocks() const; - [[nodiscard]] auto DeclaredFunctionBlocksLastUpdateTime() const; - auto GetGroupTerminalBlocks() const; - auto GetUserSuppliedInfo() const; - auto GetTransportSuppliedInfo() const; - auto GetParentDeviceInformation() const; - auto GetContainerDeviceInformation() const; - [[nodiscard]] auto Properties() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs - { - [[nodiscard]] auto AddedDevice() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto DeviceInformationUpdate() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics - { - auto CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) const; - auto FindAll() const; - auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) const; - auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const; - [[nodiscard]] auto EndpointInterfaceClass() const; - auto GetAdditionalPropertiesList() const; - auto DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto IsNameUpdated() const; - [[nodiscard]] auto IsEndpointInformationUpdated() const; - [[nodiscard]] auto IsDeviceIdentityUpdated() const; - [[nodiscard]] auto IsStreamConfigurationUpdated() const; - [[nodiscard]] auto AreFunctionBlocksUpdated() const; - [[nodiscard]] auto IsUserMetadataUpdated() const; - [[nodiscard]] auto AreAdditionalCapabilitiesUpdated() const; - [[nodiscard]] auto DeviceInformationUpdate() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher - { - auto Start() const; - auto Stop() const; - [[nodiscard]] auto EnumeratedEndpointDevices() const; - [[nodiscard]] auto Status() const; - auto Added(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Added_revoker = impl::event_revoker::remove_Added>; - [[nodiscard]] auto Added(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Added(winrt::event_token const& token) const noexcept; - auto Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Removed_revoker = impl::event_revoker::remove_Removed>; - [[nodiscard]] auto Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Removed(winrt::event_token const& token) const noexcept; - auto Updated(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Updated_revoker = impl::event_revoker::remove_Updated>; - [[nodiscard]] auto Updated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Updated(winrt::event_token const& token) const noexcept; - auto EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EnumerationCompleted_revoker = impl::event_revoker::remove_EnumerationCompleted>; - [[nodiscard]] auto EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EnumerationCompleted(winrt::event_token const& token) const noexcept; - auto Stopped(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Stopped_revoker = impl::event_revoker::remove_Stopped>; - [[nodiscard]] auto Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Stopped(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics - { - auto Create() const; - auto Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin - { - [[nodiscard]] auto Id() const; - [[nodiscard]] auto Name() const; - auto Name(param::hstring const& value) const; - [[nodiscard]] auto Tag() const; - auto Tag(winrt::Windows::Foundation::IInspectable const& value) const; - [[nodiscard]] auto IsEnabled() const; - auto IsEnabled(bool value) const; - auto Initialize(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource const& endpointConnection) const; - auto OnEndpointConnectionOpened() const; - auto ProcessIncomingMessage(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageReceivedEventArgs const& args, bool& skipFurtherListeners, bool& skipMainMessageReceivedEvent) const; - auto Cleanup() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock - { - [[nodiscard]] auto IsReadOnly() const; - [[nodiscard]] auto Number() const; - auto Number(uint8_t value) const; - [[nodiscard]] auto Name() const; - auto Name(param::hstring const& value) const; - [[nodiscard]] auto IsActive() const; - auto IsActive(bool value) const; - [[nodiscard]] auto Direction() const; - auto Direction(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& value) const; - [[nodiscard]] auto UIHint() const; - auto UIHint(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& value) const; - [[nodiscard]] auto RepresentsMidi10Connection() const; - auto RepresentsMidi10Connection(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& value) const; - [[nodiscard]] auto FirstGroupIndex() const; - auto FirstGroupIndex(uint8_t value) const; - [[nodiscard]] auto GroupCount() const; - auto GroupCount(uint8_t value) const; - auto IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const; - [[nodiscard]] auto MidiCIMessageVersionFormat() const; - auto MidiCIMessageVersionFormat(uint8_t value) const; - [[nodiscard]] auto MaxSystemExclusive8Streams() const; - auto MaxSystemExclusive8Streams(uint8_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroup - { - [[nodiscard]] auto Index() const; - auto Index(uint8_t value) const; - [[nodiscard]] auto DisplayValue() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroup; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory - { - auto CreateInstance(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto IsValidIndex(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock - { - [[nodiscard]] auto Number() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto Direction() const; - [[nodiscard]] auto Protocol() const; - [[nodiscard]] auto FirstGroupIndex() const; - [[nodiscard]] auto GroupCount() const; - auto IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const; - [[nodiscard]] auto MaxDeviceInputBandwidthIn4KBitsPerSecondUnits() const; - [[nodiscard]] auto MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits() const; - [[nodiscard]] auto CalculatedMaxDeviceInputBandwidthBitsPerSecond() const; - [[nodiscard]] auto CalculatedMaxDeviceOutputBandwidthBitsPerSecond() const; - auto AsEquivalentFunctionBlock() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - [[nodiscard]] auto Word2() const; - auto Word2(uint32_t value) const; - [[nodiscard]] auto Word3() const; - auto Word3(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - [[nodiscard]] auto Word2() const; - auto Word2(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs - { - [[nodiscard]] auto Timestamp() const; - [[nodiscard]] auto PacketType() const; - [[nodiscard]] auto MessageType() const; - auto PeekFirstWord() const; - auto GetMessagePacket() const; - auto FillWords(uint32_t& word0, uint32_t& word1, uint32_t& word2, uint32_t& word3) const; - auto FillMessageStruct(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct& message) const; - auto FillMessage32(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32 const& message) const; - auto FillMessage64(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64 const& message) const; - auto FillMessage96(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96 const& message) const; - auto FillMessage128(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128 const& message) const; - auto FillWordArray(uint32_t startIndex, array_view words) const; - auto FillByteArray(uint32_t startIndex, array_view bytes) const; - auto FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - auto AppendWordsToList(param::vector const& wordList) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource - { - auto MessageReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using MessageReceived_revoker = impl::event_revoker::remove_MessageReceived>; - [[nodiscard]] auto MessageReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto MessageReceived(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiSession - { - [[nodiscard]] auto SessionId() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto IsOpen() const; - [[nodiscard]] auto Connections() const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId) const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect) const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect, winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings const& settings) const; - auto DisconnectEndpointConnection(winrt::guid const& endpointConnectionId) const; - auto UpdateName(param::hstring const& newName) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiSession; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics - { - auto Create(param::hstring const& sessionName) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket - { - [[nodiscard]] auto Timestamp() const; - auto Timestamp(uint64_t value) const; - [[nodiscard]] auto MessageType() const; - auto MessageType(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& value) const; - [[nodiscard]] auto PacketType() const; - auto PeekFirstWord() const; - auto GetAllWords() const; - auto AppendAllMessageWordsToList(param::vector const& targetList) const; - auto FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity - { - uint8_t SystemExclusiveIdByte1; - uint8_t SystemExclusiveIdByte2; - uint8_t SystemExclusiveIdByte3; - uint8_t DeviceFamilyLsb; - uint8_t DeviceFamilyMsb; - uint8_t DeviceFamilyModelNumberLsb; - uint8_t DeviceFamilyModelNumberMsb; - uint8_t SoftwareRevisionLevelByte1; - uint8_t SoftwareRevisionLevelByte2; - uint8_t SoftwareRevisionLevelByte3; - uint8_t SoftwareRevisionLevelByte4; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo - { - void* Name; - void* ProductInstanceId; - bool SupportsMidi10Protocol; - bool SupportsMidi20Protocol; - bool SupportsReceivingJitterReductionTimestamps; - bool SupportsSendingJitterReductionTimestamps; - bool HasStaticFunctionBlocks; - uint8_t DeclaredFunctionBlockCount; - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration - { - int32_t Protocol; - bool ReceiveJitterReductionTimestamps; - bool SendJitterReductionTimestamps; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo - { - void* Name; - void* Description; - void* SerialNumber; - uint16_t VendorId; - uint16_t ProductId; - void* ManufacturerName; - bool SupportsMultiClient; - int32_t NativeDataFormat; - winrt::guid TransportId; - void* TransportAbbreviation; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo - { - void* Name; - void* Description; - void* LargeImagePath; - void* SmallImagePath; - bool RequiresNoteOffTranslation; - uint16_t RecommendedControlChangeAutomationIntervalMilliseconds; - bool SupportsMidiPolyphonicExpression; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct - { - uint32_t Word0; - uint32_t Word1; - uint32_t Word2; - uint32_t Word3; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h deleted file mode 100644 index 3958e0869..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h +++ /dev/null @@ -1,283 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct WINRT_IMPL_EMPTY_BASES IMidiChannel : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannel(std::nullptr_t = nullptr) noexcept {} - IMidiChannel(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiChannelFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelFactory(std::nullptr_t = nullptr) noexcept {} - IMidiChannelFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiChannelStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelStatics(std::nullptr_t = nullptr) noexcept {} - IMidiChannelStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiClock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiClock(std::nullptr_t = nullptr) noexcept {} - IMidiClock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiClockStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiClockStatics(std::nullptr_t = nullptr) noexcept {} - IMidiClockStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnection : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnection(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnection(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionSettings : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionSettings(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionSettings(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionSource : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionSource(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformation : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformation(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationAddedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationAddedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationAddedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationRemovedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationRemovedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationRemovedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationUpdatedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationUpdatedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationUpdatedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceWatcher : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceWatcher(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceWatcher(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceWatcherStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceWatcherStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceWatcherStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointMessageProcessingPlugin : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointMessageProcessingPlugin(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointMessageProcessingPlugin(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiFunctionBlock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiFunctionBlock(std::nullptr_t = nullptr) noexcept {} - IMidiFunctionBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroup : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroup(std::nullptr_t = nullptr) noexcept {} - IMidiGroup(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupFactory(std::nullptr_t = nullptr) noexcept {} - IMidiGroupFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupStatics(std::nullptr_t = nullptr) noexcept {} - IMidiGroupStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupTerminalBlock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupTerminalBlock(std::nullptr_t = nullptr) noexcept {} - IMidiGroupTerminalBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageReceivedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageReceivedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiMessageReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageReceivedEventSource : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageReceivedEventSource(std::nullptr_t = nullptr) noexcept {} - IMidiMessageReceivedEventSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiSession : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiSession(std::nullptr_t = nullptr) noexcept {} - IMidiSession(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiSessionStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiSessionStatics(std::nullptr_t = nullptr) noexcept {} - IMidiSessionStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniversalPacket : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniversalPacket(std::nullptr_t = nullptr) noexcept {} - IMidiUniversalPacket(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h deleted file mode 100644 index 268cc0479..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h +++ /dev/null @@ -1,261 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_2_H -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiDeclaredDeviceIdentity - { - uint8_t SystemExclusiveIdByte1; - uint8_t SystemExclusiveIdByte2; - uint8_t SystemExclusiveIdByte3; - uint8_t DeviceFamilyLsb; - uint8_t DeviceFamilyMsb; - uint8_t DeviceFamilyModelNumberLsb; - uint8_t DeviceFamilyModelNumberMsb; - uint8_t SoftwareRevisionLevelByte1; - uint8_t SoftwareRevisionLevelByte2; - uint8_t SoftwareRevisionLevelByte3; - uint8_t SoftwareRevisionLevelByte4; - }; - inline bool operator==(MidiDeclaredDeviceIdentity const& left, MidiDeclaredDeviceIdentity const& right) noexcept - { - return left.SystemExclusiveIdByte1 == right.SystemExclusiveIdByte1 && left.SystemExclusiveIdByte2 == right.SystemExclusiveIdByte2 && left.SystemExclusiveIdByte3 == right.SystemExclusiveIdByte3 && left.DeviceFamilyLsb == right.DeviceFamilyLsb && left.DeviceFamilyMsb == right.DeviceFamilyMsb && left.DeviceFamilyModelNumberLsb == right.DeviceFamilyModelNumberLsb && left.DeviceFamilyModelNumberMsb == right.DeviceFamilyModelNumberMsb && left.SoftwareRevisionLevelByte1 == right.SoftwareRevisionLevelByte1 && left.SoftwareRevisionLevelByte2 == right.SoftwareRevisionLevelByte2 && left.SoftwareRevisionLevelByte3 == right.SoftwareRevisionLevelByte3 && left.SoftwareRevisionLevelByte4 == right.SoftwareRevisionLevelByte4; - } - inline bool operator!=(MidiDeclaredDeviceIdentity const& left, MidiDeclaredDeviceIdentity const& right) noexcept - { - return !(left == right); - } - struct MidiDeclaredEndpointInfo - { - hstring Name; - hstring ProductInstanceId; - bool SupportsMidi10Protocol; - bool SupportsMidi20Protocol; - bool SupportsReceivingJitterReductionTimestamps; - bool SupportsSendingJitterReductionTimestamps; - bool HasStaticFunctionBlocks; - uint8_t DeclaredFunctionBlockCount; - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - }; - inline bool operator==(MidiDeclaredEndpointInfo const& left, MidiDeclaredEndpointInfo const& right) noexcept - { - return left.Name == right.Name && left.ProductInstanceId == right.ProductInstanceId && left.SupportsMidi10Protocol == right.SupportsMidi10Protocol && left.SupportsMidi20Protocol == right.SupportsMidi20Protocol && left.SupportsReceivingJitterReductionTimestamps == right.SupportsReceivingJitterReductionTimestamps && left.SupportsSendingJitterReductionTimestamps == right.SupportsSendingJitterReductionTimestamps && left.HasStaticFunctionBlocks == right.HasStaticFunctionBlocks && left.DeclaredFunctionBlockCount == right.DeclaredFunctionBlockCount && left.SpecificationVersionMajor == right.SpecificationVersionMajor && left.SpecificationVersionMinor == right.SpecificationVersionMinor; - } - inline bool operator!=(MidiDeclaredEndpointInfo const& left, MidiDeclaredEndpointInfo const& right) noexcept - { - return !(left == right); - } - struct MidiDeclaredStreamConfiguration - { - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol Protocol; - bool ReceiveJitterReductionTimestamps; - bool SendJitterReductionTimestamps; - }; - inline bool operator==(MidiDeclaredStreamConfiguration const& left, MidiDeclaredStreamConfiguration const& right) noexcept - { - return left.Protocol == right.Protocol && left.ReceiveJitterReductionTimestamps == right.ReceiveJitterReductionTimestamps && left.SendJitterReductionTimestamps == right.SendJitterReductionTimestamps; - } - inline bool operator!=(MidiDeclaredStreamConfiguration const& left, MidiDeclaredStreamConfiguration const& right) noexcept - { - return !(left == right); - } - struct MidiEndpointTransportSuppliedInfo - { - hstring Name; - hstring Description; - hstring SerialNumber; - uint16_t VendorId; - uint16_t ProductId; - hstring ManufacturerName; - bool SupportsMultiClient; - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointNativeDataFormat NativeDataFormat; - winrt::guid TransportId; - hstring TransportAbbreviation; - }; - inline bool operator==(MidiEndpointTransportSuppliedInfo const& left, MidiEndpointTransportSuppliedInfo const& right) noexcept - { - return left.Name == right.Name && left.Description == right.Description && left.SerialNumber == right.SerialNumber && left.VendorId == right.VendorId && left.ProductId == right.ProductId && left.ManufacturerName == right.ManufacturerName && left.SupportsMultiClient == right.SupportsMultiClient && left.NativeDataFormat == right.NativeDataFormat && left.TransportId == right.TransportId && left.TransportAbbreviation == right.TransportAbbreviation; - } - inline bool operator!=(MidiEndpointTransportSuppliedInfo const& left, MidiEndpointTransportSuppliedInfo const& right) noexcept - { - return !(left == right); - } - struct MidiEndpointUserSuppliedInfo - { - hstring Name; - hstring Description; - hstring LargeImagePath; - hstring SmallImagePath; - bool RequiresNoteOffTranslation; - uint16_t RecommendedControlChangeAutomationIntervalMilliseconds; - bool SupportsMidiPolyphonicExpression; - }; - inline bool operator==(MidiEndpointUserSuppliedInfo const& left, MidiEndpointUserSuppliedInfo const& right) noexcept - { - return left.Name == right.Name && left.Description == right.Description && left.LargeImagePath == right.LargeImagePath && left.SmallImagePath == right.SmallImagePath && left.RequiresNoteOffTranslation == right.RequiresNoteOffTranslation && left.RecommendedControlChangeAutomationIntervalMilliseconds == right.RecommendedControlChangeAutomationIntervalMilliseconds && left.SupportsMidiPolyphonicExpression == right.SupportsMidiPolyphonicExpression; - } - inline bool operator!=(MidiEndpointUserSuppliedInfo const& left, MidiEndpointUserSuppliedInfo const& right) noexcept - { - return !(left == right); - } - struct MidiMessageStruct - { - uint32_t Word0; - uint32_t Word1; - uint32_t Word2; - uint32_t Word3; - }; - inline bool operator==(MidiMessageStruct const& left, MidiMessageStruct const& right) noexcept - { - return left.Word0 == right.Word0 && left.Word1 == right.Word1 && left.Word2 == right.Word2 && left.Word3 == right.Word3; - } - inline bool operator!=(MidiMessageStruct const& left, MidiMessageStruct const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiChannel : winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel - { - MidiChannel(std::nullptr_t) noexcept {} - MidiChannel(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel(ptr, take_ownership_from_abi) {} - explicit MidiChannel(uint8_t index); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto IsValidIndex(uint8_t index); - }; - struct WINRT_IMPL_EMPTY_BASES MidiClock : winrt::Microsoft::Windows::Devices::Midi2::IMidiClock - { - MidiClock(std::nullptr_t) noexcept {} - MidiClock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiClock(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto Now(); - [[nodiscard]] static auto TimestampConstantSendImmediately(); - [[nodiscard]] static auto TimestampFrequency(); - static auto ConvertTimestampTicksToNanoseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToMicroseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToMilliseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToSeconds(uint64_t timestampValue); - static auto OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks); - static auto OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds); - static auto OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds); - static auto OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointConnection : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection, - impl::require - { - MidiEndpointConnection(std::nullptr_t) noexcept {} - MidiEndpointConnection(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection(ptr, take_ownership_from_abi) {} - static auto GetDeviceSelector(); - static auto SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult); - static auto SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformation : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation - { - MidiEndpointDeviceInformation(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation(ptr, take_ownership_from_abi) {} - static auto CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId); - static auto FindAll(); - static auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder); - static auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters); - [[nodiscard]] static auto EndpointInterfaceClass(); - static auto GetAdditionalPropertiesList(); - static auto DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationAddedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs - { - MidiEndpointDeviceInformationAddedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationAddedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationRemovedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs - { - MidiEndpointDeviceInformationRemovedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationRemovedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationUpdatedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs - { - MidiEndpointDeviceInformationUpdatedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationUpdatedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceWatcher : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher - { - MidiEndpointDeviceWatcher(std::nullptr_t) noexcept {} - MidiEndpointDeviceWatcher(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher(ptr, take_ownership_from_abi) {} - static auto Create(); - static auto Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters); - }; - struct WINRT_IMPL_EMPTY_BASES MidiFunctionBlock : winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock - { - MidiFunctionBlock(std::nullptr_t) noexcept {} - MidiFunctionBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock(ptr, take_ownership_from_abi) {} - MidiFunctionBlock(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroup : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup - { - MidiGroup(std::nullptr_t) noexcept {} - MidiGroup(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup(ptr, take_ownership_from_abi) {} - explicit MidiGroup(uint8_t index); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto IsValidIndex(uint8_t index); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroupTerminalBlock : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock - { - MidiGroupTerminalBlock(std::nullptr_t) noexcept {} - MidiGroupTerminalBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage128 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128, - impl::require - { - MidiMessage128(std::nullptr_t) noexcept {} - MidiMessage128(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128(ptr, take_ownership_from_abi) {} - MidiMessage128(); - MidiMessage128(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3); - MidiMessage128(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage32 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32, - impl::require - { - MidiMessage32(std::nullptr_t) noexcept {} - MidiMessage32(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32(ptr, take_ownership_from_abi) {} - MidiMessage32(); - MidiMessage32(uint64_t timestamp, uint32_t word0); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage64 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64, - impl::require - { - MidiMessage64(std::nullptr_t) noexcept {} - MidiMessage64(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64(ptr, take_ownership_from_abi) {} - MidiMessage64(); - MidiMessage64(uint64_t timestamp, uint32_t word0, uint32_t word1); - MidiMessage64(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage96 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96, - impl::require - { - MidiMessage96(std::nullptr_t) noexcept {} - MidiMessage96(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96(ptr, take_ownership_from_abi) {} - MidiMessage96(); - MidiMessage96(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2); - MidiMessage96(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessageReceivedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs - { - MidiMessageReceivedEventArgs(std::nullptr_t) noexcept {} - MidiMessageReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiSession : winrt::Microsoft::Windows::Devices::Midi2::IMidiSession, - impl::require - { - MidiSession(std::nullptr_t) noexcept {} - MidiSession(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiSession(ptr, take_ownership_from_abi) {} - static auto Create(param::hstring const& sessionName); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h deleted file mode 100644 index 438febb66..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h +++ /dev/null @@ -1,104 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct IMidiUniqueId; - struct IMidiUniqueIdFactory; - struct IMidiUniqueIdStatics; - struct MidiUniqueId; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.MidiUniqueId"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueId"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueIdFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueIdStatics"; - template <> inline constexpr guid guid_v{ 0x2476DCBC,0x3CD7,0x5346,{ 0x9F,0x5C,0xE6,0xD1,0xAD,0xD1,0x67,0x41 } }; // 2476DCBC-3CD7-5346-9F5C-E6D1ADD16741 - template <> inline constexpr guid guid_v{ 0xD2F59A5C,0xE78B,0x5D7A,{ 0x9B,0x22,0x3D,0xC0,0x28,0x58,0x1A,0x64 } }; // D2F59A5C-E78B-5D7A-9B22-3DC028581A64 - template <> inline constexpr guid guid_v{ 0x27B256C2,0xB3B0,0x507A,{ 0xBC,0x6B,0x48,0xE6,0xFC,0x42,0xB4,0x68 } }; // 27B256C2-B3B0-507A-BC6B-48E6FC42B468 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Byte1(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte1(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte2(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte2(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte3(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte3(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte4(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte4(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_AsCombined28BitValue(uint32_t*) noexcept = 0; - virtual int32_t __stdcall get_IsBroadcast(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsReserved(bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall CreateBroadcast(void**) noexcept = 0; - virtual int32_t __stdcall CreateRandom(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId - { - [[nodiscard]] auto Byte1() const; - auto Byte1(uint8_t value) const; - [[nodiscard]] auto Byte2() const; - auto Byte2(uint8_t value) const; - [[nodiscard]] auto Byte3() const; - auto Byte3(uint8_t value) const; - [[nodiscard]] auto Byte4() const; - auto Byte4(uint8_t value) const; - [[nodiscard]] auto AsCombined28BitValue() const; - [[nodiscard]] auto IsBroadcast() const; - [[nodiscard]] auto IsReserved() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory - { - auto CreateInstance(uint32_t combined28BitValue) const; - auto CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto CreateBroadcast() const; - auto CreateRandom() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h deleted file mode 100644 index d105e51bc..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h +++ /dev/null @@ -1,31 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueId : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueId(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueId(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueIdFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueIdFactory(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueIdFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueIdStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueIdStatics(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueIdStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h deleted file mode 100644 index b4914e773..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h +++ /dev/null @@ -1,22 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct WINRT_IMPL_EMPTY_BASES MidiUniqueId : winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId - { - MidiUniqueId(std::nullptr_t) noexcept {} - MidiUniqueId(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId(ptr, take_ownership_from_abi) {} - MidiUniqueId(); - explicit MidiUniqueId(uint32_t combined28BitValue); - MidiUniqueId(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto CreateBroadcast(); - static auto CreateRandom(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h deleted file mode 100644 index 6bf8c9af9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h +++ /dev/null @@ -1,116 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiGroup; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct IMidiChannelEndpointListener; - struct IMidiGroupEndpointListener; - struct IMidiMessageTypeEndpointListener; - struct MidiChannelEndpointListener; - struct MidiGroupEndpointListener; - struct MidiMessageTypeEndpointListener; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiChannelEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiGroupEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiMessageTypeEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiChannelEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiGroupEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiMessageTypeEndpointListener"; - template <> inline constexpr guid guid_v{ 0xFD961EBD,0xE883,0x5C78,{ 0xB1,0x00,0xC0,0x2B,0x70,0x50,0xAE,0x59 } }; // FD961EBD-E883-5C78-B100-C02B7050AE59 - template <> inline constexpr guid guid_v{ 0xA8FE598F,0x2E81,0x507E,{ 0x99,0x46,0x44,0x45,0x45,0x26,0xBF,0x61 } }; // A8FE598F-2E81-507E-9946-44454526BF61 - template <> inline constexpr guid guid_v{ 0x3F03A513,0x6032,0x58F6,{ 0x98,0x17,0xB8,0xD3,0xC7,0xE8,0x9B,0x89 } }; // 3F03A513-6032-58F6-9817-B8D3C7E89B89 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedGroup(void**) noexcept = 0; - virtual int32_t __stdcall put_IncludedGroup(void*) noexcept = 0; - virtual int32_t __stdcall get_IncludedChannels(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedGroups(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedMessageTypes(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener - { - [[nodiscard]] auto IncludedGroup() const; - auto IncludedGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& value) const; - [[nodiscard]] auto IncludedChannels() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener - { - [[nodiscard]] auto IncludedGroups() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener - { - [[nodiscard]] auto IncludedMessageTypes() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h deleted file mode 100644 index 9cef219ea..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h +++ /dev/null @@ -1,31 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct WINRT_IMPL_EMPTY_BASES IMidiChannelEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiChannelEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiGroupEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageTypeEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageTypeEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiMessageTypeEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h deleted file mode 100644 index fde3586c8..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h +++ /dev/null @@ -1,32 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct WINRT_IMPL_EMPTY_BASES MidiChannelEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener, - impl::require - { - MidiChannelEndpointListener(std::nullptr_t) noexcept {} - MidiChannelEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener(ptr, take_ownership_from_abi) {} - MidiChannelEndpointListener(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroupEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener, - impl::require - { - MidiGroupEndpointListener(std::nullptr_t) noexcept {} - MidiGroupEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener(ptr, take_ownership_from_abi) {} - MidiGroupEndpointListener(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessageTypeEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener, - impl::require - { - MidiMessageTypeEndpointListener(std::nullptr_t) noexcept {} - MidiMessageTypeEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener(ptr, take_ownership_from_abi) {} - MidiMessageTypeEndpointListener(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h deleted file mode 100644 index 5a140177a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h +++ /dev/null @@ -1,206 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_0_H -WINRT_EXPORT namespace winrt::Windows::Foundation -{ -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct IMidiDiagnosticsStatics; - struct IMidiReportingStatics; - struct IMidiServicePingResponseSummary; - struct IMidiServiceSessionInfo; - struct MidiDiagnostics; - struct MidiReporting; - struct MidiServicePingResponseSummary; - struct MidiServiceSessionInfo; - struct MidiServiceMessageProcessingPluginInfo; - struct MidiServicePingResponse; - struct MidiServiceSessionConnectionInfo; - struct MidiServiceTransportPluginInfo; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiDiagnostics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiReporting"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServicePingResponseSummary"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceSessionInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceMessageProcessingPluginInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServicePingResponse"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceSessionConnectionInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceTransportPluginInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiDiagnosticsStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiReportingStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiServicePingResponseSummary"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiServiceSessionInfo"; - template <> inline constexpr guid guid_v{ 0x4AB631D4,0x3C9A,0x5E7D,{ 0xB3,0xDA,0xB4,0x85,0x69,0x7E,0xDF,0x9E } }; // 4AB631D4-3C9A-5E7D-B3DA-B485697EDF9E - template <> inline constexpr guid guid_v{ 0x836257F9,0xF81F,0x5C0E,{ 0xB6,0xF2,0xB2,0xD0,0xF9,0xDC,0xF6,0x8E } }; // 836257F9-F81F-5C0E-B6F2-B2D0F9DCF68E - template <> inline constexpr guid guid_v{ 0x9826B87F,0x01ED,0x56CE,{ 0xA5,0x40,0x6A,0xB9,0x89,0xA0,0x3E,0xF8 } }; // 9826B87F-01ED-56CE-A540-6AB989A03EF8 - template <> inline constexpr guid guid_v{ 0x3156AD39,0x109E,0x5B67,{ 0x86,0x1B,0xAE,0x41,0x38,0x27,0xC9,0x05 } }; // 3156AD39-109E-5B67-861B-AE413827C905 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_DiagnosticsLoopbackAEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_DiagnosticsLoopbackBEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall PingService(uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall PingService2(uint8_t, uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall GetInstalledTransportPlugins(void**) noexcept = 0; - virtual int32_t __stdcall GetInstalledMessageProcessingPlugins(void**) noexcept = 0; - virtual int32_t __stdcall GetActiveSessions(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Success(bool*) noexcept = 0; - virtual int32_t __stdcall get_FailureReason(void**) noexcept = 0; - virtual int32_t __stdcall get_TotalPingRoundTripMidiClock(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_AveragePingRoundTripMidiClock(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_Responses(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SessionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_ProcessId(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_ProcessName(void**) noexcept = 0; - virtual int32_t __stdcall get_SessionName(void**) noexcept = 0; - virtual int32_t __stdcall get_StartTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall get_Connections(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics - { - [[nodiscard]] auto DiagnosticsLoopbackAEndpointDeviceId() const; - [[nodiscard]] auto DiagnosticsLoopbackBEndpointDeviceId() const; - auto PingService(uint8_t pingCount) const; - auto PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics - { - auto GetInstalledTransportPlugins() const; - auto GetInstalledMessageProcessingPlugins() const; - auto GetActiveSessions() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary - { - [[nodiscard]] auto Success() const; - [[nodiscard]] auto FailureReason() const; - [[nodiscard]] auto TotalPingRoundTripMidiClock() const; - [[nodiscard]] auto AveragePingRoundTripMidiClock() const; - [[nodiscard]] auto Responses() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo - { - [[nodiscard]] auto SessionId() const; - [[nodiscard]] auto ProcessId() const; - [[nodiscard]] auto ProcessName() const; - [[nodiscard]] auto SessionName() const; - [[nodiscard]] auto StartTime() const; - [[nodiscard]] auto Connections() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceMessageProcessingPluginInfo - { - winrt::guid Id; - void* Name; - void* Description; - void* Author; - void* SmallImagePath; - void* Version; - bool SupportsMultipleInstancesPerDevice; - bool IsSystemManaged; - bool IsClientConfigurable; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceMessageProcessingPluginInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServicePingResponse - { - uint32_t SourceId; - uint32_t Index; - uint64_t ClientSendMidiTimestamp; - uint64_t ServiceReportedMidiTimestamp; - uint64_t ClientReceiveMidiTimestamp; - uint64_t ClientDeltaTimestamp; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServicePingResponse; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceSessionConnectionInfo - { - void* EndpointDeviceId; - uint16_t InstanceCount; - int64_t EarliestConnectionTime; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceSessionConnectionInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceTransportPluginInfo - { - winrt::guid Id; - void* Name; - void* Abbreviation; - void* Description; - void* SmallImagePath; - void* Author; - void* Version; - bool IsRuntimeCreatableByApps; - bool IsRuntimeCreatableBySettings; - bool IsSystemManaged; - bool CanConfigure; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceTransportPluginInfo; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h deleted file mode 100644 index 4138c1102..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct WINRT_IMPL_EMPTY_BASES IMidiDiagnosticsStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiDiagnosticsStatics(std::nullptr_t = nullptr) noexcept {} - IMidiDiagnosticsStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiReportingStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiReportingStatics(std::nullptr_t = nullptr) noexcept {} - IMidiReportingStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServicePingResponseSummary : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicePingResponseSummary(std::nullptr_t = nullptr) noexcept {} - IMidiServicePingResponseSummary(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceSessionInfo : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceSessionInfo(std::nullptr_t = nullptr) noexcept {} - IMidiServiceSessionInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h deleted file mode 100644 index cee0e284c..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_2_H -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct MidiServiceMessageProcessingPluginInfo - { - winrt::guid Id; - hstring Name; - hstring Description; - hstring Author; - hstring SmallImagePath; - hstring Version; - bool SupportsMultipleInstancesPerDevice; - bool IsSystemManaged; - bool IsClientConfigurable; - }; - inline bool operator==(MidiServiceMessageProcessingPluginInfo const& left, MidiServiceMessageProcessingPluginInfo const& right) noexcept - { - return left.Id == right.Id && left.Name == right.Name && left.Description == right.Description && left.Author == right.Author && left.SmallImagePath == right.SmallImagePath && left.Version == right.Version && left.SupportsMultipleInstancesPerDevice == right.SupportsMultipleInstancesPerDevice && left.IsSystemManaged == right.IsSystemManaged && left.IsClientConfigurable == right.IsClientConfigurable; - } - inline bool operator!=(MidiServiceMessageProcessingPluginInfo const& left, MidiServiceMessageProcessingPluginInfo const& right) noexcept - { - return !(left == right); - } - struct MidiServicePingResponse - { - uint32_t SourceId; - uint32_t Index; - uint64_t ClientSendMidiTimestamp; - uint64_t ServiceReportedMidiTimestamp; - uint64_t ClientReceiveMidiTimestamp; - uint64_t ClientDeltaTimestamp; - }; - inline bool operator==(MidiServicePingResponse const& left, MidiServicePingResponse const& right) noexcept - { - return left.SourceId == right.SourceId && left.Index == right.Index && left.ClientSendMidiTimestamp == right.ClientSendMidiTimestamp && left.ServiceReportedMidiTimestamp == right.ServiceReportedMidiTimestamp && left.ClientReceiveMidiTimestamp == right.ClientReceiveMidiTimestamp && left.ClientDeltaTimestamp == right.ClientDeltaTimestamp; - } - inline bool operator!=(MidiServicePingResponse const& left, MidiServicePingResponse const& right) noexcept - { - return !(left == right); - } - struct MidiServiceSessionConnectionInfo - { - hstring EndpointDeviceId; - uint16_t InstanceCount; - winrt::Windows::Foundation::DateTime EarliestConnectionTime; - }; - inline bool operator==(MidiServiceSessionConnectionInfo const& left, MidiServiceSessionConnectionInfo const& right) noexcept - { - return left.EndpointDeviceId == right.EndpointDeviceId && left.InstanceCount == right.InstanceCount && left.EarliestConnectionTime == right.EarliestConnectionTime; - } - inline bool operator!=(MidiServiceSessionConnectionInfo const& left, MidiServiceSessionConnectionInfo const& right) noexcept - { - return !(left == right); - } - struct MidiServiceTransportPluginInfo - { - winrt::guid Id; - hstring Name; - hstring Abbreviation; - hstring Description; - hstring SmallImagePath; - hstring Author; - hstring Version; - bool IsRuntimeCreatableByApps; - bool IsRuntimeCreatableBySettings; - bool IsSystemManaged; - bool CanConfigure; - }; - inline bool operator==(MidiServiceTransportPluginInfo const& left, MidiServiceTransportPluginInfo const& right) noexcept - { - return left.Id == right.Id && left.Name == right.Name && left.Abbreviation == right.Abbreviation && left.Description == right.Description && left.SmallImagePath == right.SmallImagePath && left.Author == right.Author && left.Version == right.Version && left.IsRuntimeCreatableByApps == right.IsRuntimeCreatableByApps && left.IsRuntimeCreatableBySettings == right.IsRuntimeCreatableBySettings && left.IsSystemManaged == right.IsSystemManaged && left.CanConfigure == right.CanConfigure; - } - inline bool operator!=(MidiServiceTransportPluginInfo const& left, MidiServiceTransportPluginInfo const& right) noexcept - { - return !(left == right); - } - struct MidiDiagnostics - { - MidiDiagnostics() = delete; - [[nodiscard]] static auto DiagnosticsLoopbackAEndpointDeviceId(); - [[nodiscard]] static auto DiagnosticsLoopbackBEndpointDeviceId(); - static auto PingService(uint8_t pingCount); - static auto PingService(uint8_t pingCount, uint32_t timeoutMilliseconds); - }; - struct MidiReporting - { - MidiReporting() = delete; - static auto GetInstalledTransportPlugins(); - static auto GetInstalledMessageProcessingPlugins(); - static auto GetActiveSessions(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiServicePingResponseSummary : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary - { - MidiServicePingResponseSummary(std::nullptr_t) noexcept {} - MidiServicePingResponseSummary(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiServiceSessionInfo : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo - { - MidiServiceSessionInfo(std::nullptr_t) noexcept {} - MidiServiceSessionInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h deleted file mode 100644 index cd7b9ca69..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h +++ /dev/null @@ -1,187 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct IMidiLoopbackEndpointCreationConfig; - struct IMidiLoopbackEndpointCreationConfigFactory; - struct IMidiLoopbackEndpointDeletionConfig; - struct IMidiLoopbackEndpointDeletionConfigFactory; - struct IMidiLoopbackEndpointManager; - struct IMidiLoopbackEndpointManagerStatics; - struct MidiLoopbackEndpointCreationConfig; - struct MidiLoopbackEndpointDeletionConfig; - struct MidiLoopbackEndpointManager; - struct MidiLoopbackEndpointCreationResult; - struct MidiLoopbackEndpointDefinition; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointDeletionConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointCreationResult"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointDefinition"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointCreationConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointDeletionConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointDeletionConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointManagerStatics"; - template <> inline constexpr guid guid_v{ 0x53EF39E5,0x179D,0x57AF,{ 0x98,0x4D,0xC4,0x0D,0x5C,0x29,0x99,0xFA } }; // 53EF39E5-179D-57AF-984D-C40D5C2999FA - template <> inline constexpr guid guid_v{ 0x5FA6051E,0x83EE,0x5D4D,{ 0x92,0x1C,0x48,0xBA,0xD0,0xAA,0xDE,0x61 } }; // 5FA6051E-83EE-5D4D-921C-48BAD0AADE61 - template <> inline constexpr guid guid_v{ 0x717579E3,0xE3BE,0x5D34,{ 0x87,0x79,0xA1,0x56,0x31,0x1B,0x84,0x8D } }; // 717579E3-E3BE-5D34-8779-A156311B848D - template <> inline constexpr guid guid_v{ 0x2663EB28,0xD010,0x5610,{ 0x86,0xCA,0xBD,0x68,0x40,0xDE,0x78,0xE8 } }; // 2663EB28-D010-5610-86CA-BD6840DE78E8 - template <> inline constexpr guid guid_v{ 0x1DFB714C,0x710A,0x58D5,{ 0x9E,0xAD,0x49,0xAC,0x8C,0x3F,0x34,0x98 } }; // 1DFB714C-710A-58D5-9EAD-49AC8C3F3498 - template <> inline constexpr guid guid_v{ 0x2B788E99,0x2384,0x5518,{ 0x82,0x39,0x03,0x2F,0xBE,0x23,0x2D,0x2B } }; // 2B788E99-2384-5518-8239-032FBE232D2B - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall put_AssociationId(winrt::guid) noexcept = 0; - virtual int32_t __stdcall get_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition*) noexcept = 0; - virtual int32_t __stdcall put_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition) noexcept = 0; - virtual int32_t __stdcall get_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition*) noexcept = 0; - virtual int32_t __stdcall put_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(winrt::guid, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall put_AssociationId(winrt::guid) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(winrt::guid, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsTransportAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall get_AbstractionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall CreateTransientLoopbackEndpoints(void*, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult*) noexcept = 0; - virtual int32_t __stdcall RemoveTransientLoopbackEndpoints(void*, bool*) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig - { - [[nodiscard]] auto AssociationId() const; - auto AssociationId(winrt::guid const& value) const; - [[nodiscard]] auto EndpointDefinitionA() const; - auto EndpointDefinitionA(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const; - [[nodiscard]] auto EndpointDefinitionB() const; - auto EndpointDefinitionB(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory - { - auto CreateInstance(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig - { - [[nodiscard]] auto AssociationId() const; - auto AssociationId(winrt::guid const& value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory - { - auto CreateInstance(winrt::guid const& associationId) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManager - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManager; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics - { - [[nodiscard]] auto IsTransportAvailable() const; - [[nodiscard]] auto AbstractionId() const; - auto CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) const; - auto RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult - { - bool Success; - winrt::guid AssociationId; - void* EndpointDeviceIdA; - void* EndpointDeviceIdB; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition - { - void* Name; - void* UniqueId; - void* Description; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h deleted file mode 100644 index 5a5457ec9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h +++ /dev/null @@ -1,52 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointCreationConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointCreationConfig(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointCreationConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointCreationConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointCreationConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointDeletionConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointDeletionConfig(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointDeletionConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointDeletionConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointDeletionConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointDeletionConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointManager : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointManager(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointManagerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointManagerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointManagerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h deleted file mode 100644 index 021b1a4a5..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h +++ /dev/null @@ -1,64 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct MidiLoopbackEndpointCreationResult - { - bool Success; - winrt::guid AssociationId; - hstring EndpointDeviceIdA; - hstring EndpointDeviceIdB; - }; - inline bool operator==(MidiLoopbackEndpointCreationResult const& left, MidiLoopbackEndpointCreationResult const& right) noexcept - { - return left.Success == right.Success && left.AssociationId == right.AssociationId && left.EndpointDeviceIdA == right.EndpointDeviceIdA && left.EndpointDeviceIdB == right.EndpointDeviceIdB; - } - inline bool operator!=(MidiLoopbackEndpointCreationResult const& left, MidiLoopbackEndpointCreationResult const& right) noexcept - { - return !(left == right); - } - struct MidiLoopbackEndpointDefinition - { - hstring Name; - hstring UniqueId; - hstring Description; - }; - inline bool operator==(MidiLoopbackEndpointDefinition const& left, MidiLoopbackEndpointDefinition const& right) noexcept - { - return left.Name == right.Name && left.UniqueId == right.UniqueId && left.Description == right.Description; - } - inline bool operator!=(MidiLoopbackEndpointDefinition const& left, MidiLoopbackEndpointDefinition const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointCreationConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig, - impl::require - { - MidiLoopbackEndpointCreationConfig(std::nullptr_t) noexcept {} - MidiLoopbackEndpointCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig(ptr, take_ownership_from_abi) {} - MidiLoopbackEndpointCreationConfig(); - MidiLoopbackEndpointCreationConfig(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB); - }; - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointDeletionConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig, - impl::require - { - MidiLoopbackEndpointDeletionConfig(std::nullptr_t) noexcept {} - MidiLoopbackEndpointDeletionConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig(ptr, take_ownership_from_abi) {} - explicit MidiLoopbackEndpointDeletionConfig(winrt::guid const& associationId); - }; - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointManager : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager - { - MidiLoopbackEndpointManager(std::nullptr_t) noexcept {} - MidiLoopbackEndpointManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto IsTransportAvailable(); - [[nodiscard]] static auto AbstractionId(); - static auto CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig); - static auto RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h deleted file mode 100644 index 39d0cdbd2..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h +++ /dev/null @@ -1,228 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiDeclaredDeviceIdentity; - struct MidiDeclaredEndpointInfo; - struct MidiEndpointUserSuppliedInfo; - struct MidiFunctionBlock; - enum class MidiProtocol : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct EventRegistrationToken; - template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct IMidiStreamConfigRequestReceivedEventArgs; - struct IMidiVirtualDevice; - struct IMidiVirtualDeviceCreationConfig; - struct IMidiVirtualDeviceCreationConfigFactory; - struct IMidiVirtualDeviceManager; - struct IMidiVirtualDeviceManagerStatics; - struct MidiStreamConfigRequestReceivedEventArgs; - struct MidiVirtualDevice; - struct MidiVirtualDeviceCreationConfig; - struct MidiVirtualDeviceManager; - struct MidiStreamConfigRequestedSettings; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiStreamConfigRequestReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDevice"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDeviceCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDeviceManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiStreamConfigRequestedSettings"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiStreamConfigRequestReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDevice"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceCreationConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceManagerStatics"; - template <> inline constexpr guid guid_v{ 0x95E66544,0x7629,0x50AF,{ 0x9E,0xEE,0x0B,0x10,0x99,0x40,0x8E,0xD6 } }; // 95E66544-7629-50AF-9EEE-0B1099408ED6 - template <> inline constexpr guid guid_v{ 0x6C667B8A,0x8A6F,0x59EC,{ 0xAB,0x80,0x25,0xF6,0xE5,0x62,0x93,0x4F } }; // 6C667B8A-8A6F-59EC-AB80-25F6E562934F - template <> inline constexpr guid guid_v{ 0xF6B40477,0x006F,0x575B,{ 0xBE,0xEA,0xFD,0x72,0x9E,0x84,0xDD,0xF7 } }; // F6B40477-006F-575B-BEEA-FD729E84DDF7 - template <> inline constexpr guid guid_v{ 0x6B3BFE63,0x5C8F,0x57D8,{ 0x8C,0xBA,0x20,0x8C,0x93,0x8F,0x08,0x34 } }; // 6B3BFE63-5C8F-57D8-8CBA-208C938F0834 - template <> inline constexpr guid guid_v{ 0x4235E62B,0xDF65,0x5B6C,{ 0x93,0x0F,0x64,0x0D,0xA2,0xF5,0x64,0x9C } }; // 4235E62B-DF65-5B6C-930F-640DA2F5649C - template <> inline constexpr guid guid_v{ 0xA3C905C1,0x56B5,0x58CE,{ 0xAD,0x79,0x82,0x66,0xE5,0x0A,0x1C,0x0C } }; // A3C905C1-56B5-58CE-AD79-8266E50A1C0C - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_PreferredMidiProtocol(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_RequestEndpointTransmitJitterReductionTimestamps(bool*) noexcept = 0; - virtual int32_t __stdcall get_RequestEndpointReceiveJitterReductionTimestamps(bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_DeviceEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_FunctionBlocks(void**) noexcept = 0; - virtual int32_t __stdcall UpdateFunctionBlock(void*, bool*) noexcept = 0; - virtual int32_t __stdcall UpdateEndpointName(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_SuppressHandledMessages(bool*) noexcept = 0; - virtual int32_t __stdcall put_SuppressHandledMessages(bool) noexcept = 0; - virtual int32_t __stdcall add_StreamConfigRequestReceived(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_StreamConfigRequestReceived(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall put_Name(void*) noexcept = 0; - virtual int32_t __stdcall get_Description(void**) noexcept = 0; - virtual int32_t __stdcall put_Description(void*) noexcept = 0; - virtual int32_t __stdcall get_Manufacturer(void**) noexcept = 0; - virtual int32_t __stdcall put_Manufacturer(void*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity*) noexcept = 0; - virtual int32_t __stdcall put_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity) noexcept = 0; - virtual int32_t __stdcall get_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo*) noexcept = 0; - virtual int32_t __stdcall put_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo) noexcept = 0; - virtual int32_t __stdcall get_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall put_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo) noexcept = 0; - virtual int32_t __stdcall get_FunctionBlocks(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity, struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsTransportAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall get_AbstractionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall CreateVirtualDevice(void*, void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs - { - [[nodiscard]] auto Timestamp() const; - [[nodiscard]] auto PreferredMidiProtocol() const; - [[nodiscard]] auto RequestEndpointTransmitJitterReductionTimestamps() const; - [[nodiscard]] auto RequestEndpointReceiveJitterReductionTimestamps() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice - { - [[nodiscard]] auto DeviceEndpointDeviceId() const; - [[nodiscard]] auto FunctionBlocks() const; - auto UpdateFunctionBlock(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock const& block) const; - auto UpdateEndpointName(param::hstring const& name) const; - [[nodiscard]] auto SuppressHandledMessages() const; - auto SuppressHandledMessages(bool value) const; - auto StreamConfigRequestReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using StreamConfigRequestReceived_revoker = impl::event_revoker::remove_StreamConfigRequestReceived>; - [[nodiscard]] auto StreamConfigRequestReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto StreamConfigRequestReceived(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig - { - [[nodiscard]] auto Name() const; - auto Name(param::hstring const& value) const; - [[nodiscard]] auto Description() const; - auto Description(param::hstring const& value) const; - [[nodiscard]] auto Manufacturer() const; - auto Manufacturer(param::hstring const& value) const; - [[nodiscard]] auto DeclaredDeviceIdentity() const; - auto DeclaredDeviceIdentity(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& value) const; - [[nodiscard]] auto DeclaredEndpointInfo() const; - auto DeclaredEndpointInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& value) const; - [[nodiscard]] auto UserSuppliedInfo() const; - auto UserSuppliedInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& value) const; - [[nodiscard]] auto FunctionBlocks() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory - { - auto CreateInstance(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) const; - auto CreateInstance2(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) const; - auto CreateInstance3(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManager - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManager; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics - { - [[nodiscard]] auto IsTransportAvailable() const; - [[nodiscard]] auto AbstractionId() const; - auto CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiStreamConfigRequestedSettings - { - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - int32_t PreferredMidiProtocol; - bool RequestEndpointTransmitJitterReductionTimestamps; - bool RequestEndpointReceiveJitterReductionTimestamps; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiStreamConfigRequestedSettings; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h deleted file mode 100644 index 83dc91a3a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h +++ /dev/null @@ -1,52 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct WINRT_IMPL_EMPTY_BASES IMidiStreamConfigRequestReceivedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiStreamConfigRequestReceivedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiStreamConfigRequestReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDevice : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDevice(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDevice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceCreationConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceCreationConfig(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceCreationConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceCreationConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceCreationConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceManager : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceManager(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceManagerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceManagerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceManagerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h deleted file mode 100644 index 304eccc15..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h +++ /dev/null @@ -1,70 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_0_H -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct Uri; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct IMidiServicesInitializer; - struct IMidiServicesInitializerStatics; - struct MidiServicesInitializer; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.MidiServicesInitializer"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.IMidiServicesInitializer"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.IMidiServicesInitializerStatics"; - template <> inline constexpr guid guid_v{ 0x3A60A020,0x720A,0x563F,{ 0x90,0x9C,0x9C,0x3C,0xF4,0x77,0x21,0xCE } }; // 3A60A020-720A-563F-909C-9C3CF47721CE - template <> inline constexpr guid guid_v{ 0x56FC8938,0x93CD,0x51B3,{ 0x9E,0x6E,0x5B,0xB3,0xDA,0xBD,0x19,0x0E } }; // 56FC8938-93CD-51B3-9E6E-5BB3DABD190E - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall IsOperatingSystemSupported(bool*) noexcept = 0; - virtual int32_t __stdcall EnsureServiceAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall InitializeSdkRuntime(bool*) noexcept = 0; - virtual int32_t __stdcall IsCompatibleDesktopAppSdkRuntimeInstalled(bool*) noexcept = 0; - virtual int32_t __stdcall GetLatestRuntimeReleaseInstallerUri(void**) noexcept = 0; - virtual int32_t __stdcall GetLatestSettingsAppReleaseInstallerUri(void**) noexcept = 0; - virtual int32_t __stdcall GetLatestConsoleAppReleaseInstallerUri(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializer - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializer; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics - { - auto IsOperatingSystemSupported() const; - auto EnsureServiceAvailable() const; - auto InitializeSdkRuntime() const; - auto IsCompatibleDesktopAppSdkRuntimeInstalled() const; - auto GetLatestRuntimeReleaseInstallerUri() const; - auto GetLatestSettingsAppReleaseInstallerUri() const; - auto GetLatestConsoleAppReleaseInstallerUri() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h deleted file mode 100644 index 0fe7114e6..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h +++ /dev/null @@ -1,24 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct WINRT_IMPL_EMPTY_BASES IMidiServicesInitializer : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicesInitializer(std::nullptr_t = nullptr) noexcept {} - IMidiServicesInitializer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServicesInitializerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicesInitializerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiServicesInitializerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h deleted file mode 100644 index 76c852b5f..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h +++ /dev/null @@ -1,22 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct WINRT_IMPL_EMPTY_BASES MidiServicesInitializer : winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer - { - MidiServicesInitializer(std::nullptr_t) noexcept {} - MidiServicesInitializer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer(ptr, take_ownership_from_abi) {} - static auto IsOperatingSystemSupported(); - static auto EnsureServiceAvailable(); - static auto InitializeSdkRuntime(); - static auto IsCompatibleDesktopAppSdkRuntimeInstalled(); - static auto GetLatestRuntimeReleaseInstallerUri(); - static auto GetLatestSettingsAppReleaseInstallerUri(); - static auto GetLatestConsoleAppReleaseInstallerUri(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h deleted file mode 100644 index 70023d180..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h +++ /dev/null @@ -1,331 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct IMidiUniversalPacket; - struct MidiChannel; - enum class MidiFunctionBlockDirection : int32_t; - enum class MidiFunctionBlockRepresentsMidi10Connection : int32_t; - enum class MidiFunctionBlockUIHint : int32_t; - struct MidiGroup; - struct MidiMessage128; - struct MidiMessage32; - struct MidiMessage64; - enum class MidiMessageType : int32_t; - enum class MidiPacketType : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Devices::Midi -{ - struct MidiActiveSensingMessage; - struct MidiChannelPressureMessage; - struct MidiContinueMessage; - struct MidiNoteOffMessage; - struct MidiNoteOnMessage; - struct MidiPitchBendChangeMessage; - struct MidiPolyphonicKeyPressureMessage; - struct MidiProgramChangeMessage; - struct MidiSongPositionPointerMessage; - struct MidiSongSelectMessage; - struct MidiStartMessage; - struct MidiStopMessage; - struct MidiSystemResetMessage; - struct MidiTimeCodeMessage; - struct MidiTimingClockMessage; - struct MidiTuneRequestMessage; -} -WINRT_EXPORT namespace winrt::Windows::Foundation::Collections -{ - template struct WINRT_IMPL_EMPTY_BASES IIterable; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - enum class Midi1ChannelVoiceMessageStatus : int32_t - { - NoteOff = 8, - NoteOn = 9, - PolyPressure = 10, - ControlChange = 11, - ProgramChange = 12, - ChannelPressure = 13, - PitchBend = 14, - }; - enum class Midi2ChannelVoiceMessageStatus : int32_t - { - RegisteredPerNoteController = 0, - AssignablePerNoteController = 1, - RegisteredController = 2, - AssignableController = 3, - RelativeRegisteredController = 4, - RelativeAssignableController = 5, - PerNotePitchBend = 6, - NoteOff = 8, - NoteOn = 9, - PolyPressure = 10, - ControlChange = 11, - ProgramChange = 12, - ChannelPressure = 13, - PitchBend = 14, - PerNoteManagement = 15, - }; - enum class MidiEndpointDiscoveryRequests : uint32_t - { - None = 0, - RequestEndpointInfo = 0x1, - RequestDeviceIdentity = 0x2, - RequestEndpointName = 0x4, - RequestProductInstanceId = 0x8, - RequestStreamConfiguration = 0x10, - }; - enum class MidiFunctionBlockDiscoveryRequests : uint32_t - { - None = 0, - RequestFunctionBlockInfo = 0x1, - RequestFunctionBlockName = 0x2, - }; - enum class MidiSystemExclusive8Status : int32_t - { - CompleteMessageInSingleMessagePacket = 0, - StartMessagePacket = 1, - ContinueMessagePacket = 2, - EndMessagePacket = 3, - }; - struct IMidiMessageBuilderStatics; - struct IMidiMessageConverterStatics; - struct IMidiMessageHelperStatics; - struct IMidiStreamMessageBuilderStatics; - struct MidiMessageBuilder; - struct MidiMessageConverter; - struct MidiMessageHelper; - struct MidiStreamMessageBuilder; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageBuilder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageConverter"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageHelper"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiStreamMessageBuilder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.Midi1ChannelVoiceMessageStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.Midi2ChannelVoiceMessageStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiEndpointDiscoveryRequests"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiFunctionBlockDiscoveryRequests"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiSystemExclusive8Status"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageBuilderStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageConverterStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageHelperStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiStreamMessageBuilderStatics"; - template <> inline constexpr guid guid_v{ 0x090C2C0B,0x95E4,0x5FF3,{ 0xA4,0xA9,0x2C,0x23,0x86,0x10,0x31,0x36 } }; // 090C2C0B-95E4-5FF3-A4A9-2C2386103136 - template <> inline constexpr guid guid_v{ 0x30BE1DB6,0x9E9E,0x5EAC,{ 0xB1,0xE6,0x6D,0x4F,0x11,0xFA,0x1E,0xBF } }; // 30BE1DB6-9E9E-5EAC-B1E6-6D4F11FA1EBF - template <> inline constexpr guid guid_v{ 0xCC84C703,0xE523,0x5597,{ 0xA3,0xD6,0xE8,0xAD,0x68,0x8A,0x96,0xCC } }; // CC84C703-E523-5597-A3D6-E8AD688A96CC - template <> inline constexpr guid guid_v{ 0x03E16477,0x3857,0x5ED3,{ 0x83,0x81,0x59,0xC4,0x0C,0xE4,0xA3,0x3D } }; // 03E16477-3857-5ED3-8381-59C40CE4A33D - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall BuildUtilityMessage(uint64_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemMessage(uint64_t, void*, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMidi1ChannelVoiceMessage(uint64_t, void*, int32_t, void*, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemExclusive7Message(uint64_t, void*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMidi2ChannelVoiceMessage(uint64_t, void*, int32_t, void*, uint16_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemExclusive8Message(uint64_t, void*, int32_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMixedDataSetChunkHeaderMessage(uint64_t, void*, uint8_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMixedDataSetChunkDataMessage(uint64_t, void*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFlexDataMessage(uint64_t, void*, uint8_t, uint8_t, void*, uint8_t, uint8_t, uint32_t, uint32_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamMessage(uint64_t, uint8_t, uint16_t, uint16_t, uint32_t, uint32_t, uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall ConvertMidi1Message(uint64_t, void*, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1Message2(uint64_t, void*, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1Message3(uint64_t, void*, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ChannelPressureMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1NoteOffMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1NoteOnMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1PitchBendChangeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1PolyphonicKeyPressureMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ProgramChangeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TimeCodeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SongPositionPointerMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SongSelectMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TuneRequestMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TimingClockMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1StartMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ContinueMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1StopMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ActiveSensingMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SystemResetMessage(uint64_t, void*, void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall ValidateMessage32MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage64MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage96MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage128MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall GetMessageTypeFromMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetPacketTypeFromMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall MessageTypeHasGroupField(int32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ReplaceGroupInMessageFirstWord(uint32_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetGroupFromMessageFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetStatusFromUtilityMessage(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromMidi1ChannelVoiceMessage(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusBankFromFlexDataMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromFlexDataMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromSystemCommonMessage(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromDataMessage64FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetNumberOfBytesFromDataMessage64FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromDataMessage128FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetNumberOfBytesFromDataMessage128FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall MessageTypeHasChannelField(int32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ReplaceChannelInMessageFirstWord(uint32_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetChannelFromMessageFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetFormFromStreamMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromStreamMessageFirstWord(uint32_t, uint16_t*) noexcept = 0; - virtual int32_t __stdcall GetMessageDisplayNameFromFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetPacketListFromWordList(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall GetWordListFromPacketList(void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall BuildEndpointDiscoveryMessage(uint64_t, uint8_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildEndpointInfoNotificationMessage(uint64_t, uint8_t, uint8_t, bool, uint8_t, bool, bool, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildDeviceIdentityNotificationMessage(uint64_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildEndpointNameNotificationMessages(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall BuildProductInstanceIdNotificationMessages(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseEndpointNameNotificationMessages(void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseProductInstanceIdNotificationMessages(void*, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamConfigurationRequestMessage(uint64_t, uint8_t, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamConfigurationNotificationMessage(uint64_t, uint8_t, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockDiscoveryMessage(uint64_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockInfoNotificationMessage(uint64_t, bool, uint8_t, int32_t, int32_t, int32_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockNameNotificationMessages(uint64_t, uint8_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseFunctionBlockNameNotificationMessages(void*, void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics - { - auto BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) const; - auto BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) const; - auto BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) const; - auto BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) const; - auto BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) const; - auto BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) const; - auto BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) const; - auto BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) const; - auto BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const; - auto BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics - { - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) const; - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) const; - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) const; - auto ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) const; - auto ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) const; - auto ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) const; - auto ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) const; - auto ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) const; - auto ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) const; - auto ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) const; - auto ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) const; - auto ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) const; - auto ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) const; - auto ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) const; - auto ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) const; - auto ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) const; - auto ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) const; - auto ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) const; - auto ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics - { - auto ValidateMessage32MessageType(uint32_t word0) const; - auto ValidateMessage64MessageType(uint32_t word0) const; - auto ValidateMessage96MessageType(uint32_t word0) const; - auto ValidateMessage128MessageType(uint32_t word0) const; - auto GetMessageTypeFromMessageFirstWord(uint32_t word0) const; - auto GetPacketTypeFromMessageFirstWord(uint32_t word0) const; - auto MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const; - auto ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) const; - auto GetGroupFromMessageFirstWord(uint32_t word0) const; - auto GetStatusFromUtilityMessage(uint32_t word0) const; - auto GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) const; - auto GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) const; - auto GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) const; - auto GetStatusFromFlexDataMessageFirstWord(uint32_t word0) const; - auto GetStatusFromSystemCommonMessage(uint32_t word0) const; - auto GetStatusFromDataMessage64FirstWord(uint32_t word0) const; - auto GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) const; - auto GetStatusFromDataMessage128FirstWord(uint32_t word0) const; - auto GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) const; - auto MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const; - auto ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) const; - auto GetChannelFromMessageFirstWord(uint32_t word0) const; - auto GetFormFromStreamMessageFirstWord(uint32_t word0) const; - auto GetStatusFromStreamMessageFirstWord(uint32_t word0) const; - auto GetMessageDisplayNameFromFirstWord(uint32_t word0) const; - auto GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) const; - auto GetWordListFromPacketList(param::iterable const& words) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics - { - auto BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) const; - auto BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) const; - auto BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) const; - auto BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) const; - auto BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) const; - auto ParseEndpointNameNotificationMessages(param::iterable const& messages) const; - auto ParseProductInstanceIdNotificationMessages(param::iterable const& messages) const; - auto BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) const; - auto BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) const; - auto BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) const; - auto BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) const; - auto BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) const; - auto ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h deleted file mode 100644 index e7fce06a8..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - struct WINRT_IMPL_EMPTY_BASES IMidiMessageBuilderStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageBuilderStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageBuilderStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageConverterStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageConverterStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageConverterStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageHelperStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageHelperStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageHelperStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiStreamMessageBuilderStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiStreamMessageBuilderStatics(std::nullptr_t = nullptr) noexcept {} - IMidiStreamMessageBuilderStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h deleted file mode 100644 index dd17a6032..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h +++ /dev/null @@ -1,98 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -#include "winrt/impl/Windows.Devices.Midi.1.h" -#include "winrt/impl/Windows.Foundation.Collections.1.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - struct MidiMessageBuilder - { - MidiMessageBuilder() = delete; - static auto BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved); - static auto BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3); - static auto BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4); - static auto BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5); - static auto BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data); - static auto BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12); - static auto BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2); - static auto BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13); - static auto BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data); - static auto BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data); - }; - struct MidiMessageConverter - { - MidiMessageConverter() = delete; - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte); - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1); - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2); - static auto ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage); - static auto ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage); - static auto ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage); - static auto ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage); - static auto ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage); - static auto ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage); - static auto ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage); - static auto ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage); - static auto ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage); - static auto ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage); - static auto ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage); - static auto ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage); - static auto ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage); - static auto ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage); - static auto ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage); - static auto ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage); - }; - struct MidiMessageHelper - { - MidiMessageHelper() = delete; - static auto ValidateMessage32MessageType(uint32_t word0); - static auto ValidateMessage64MessageType(uint32_t word0); - static auto ValidateMessage96MessageType(uint32_t word0); - static auto ValidateMessage128MessageType(uint32_t word0); - static auto GetMessageTypeFromMessageFirstWord(uint32_t word0); - static auto GetPacketTypeFromMessageFirstWord(uint32_t word0); - static auto MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType); - static auto ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup); - static auto GetGroupFromMessageFirstWord(uint32_t word0); - static auto GetStatusFromUtilityMessage(uint32_t word0); - static auto GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0); - static auto GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0); - static auto GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0); - static auto GetStatusFromFlexDataMessageFirstWord(uint32_t word0); - static auto GetStatusFromSystemCommonMessage(uint32_t word0); - static auto GetStatusFromDataMessage64FirstWord(uint32_t word0); - static auto GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0); - static auto GetStatusFromDataMessage128FirstWord(uint32_t word0); - static auto GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0); - static auto MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType); - static auto ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel); - static auto GetChannelFromMessageFirstWord(uint32_t word0); - static auto GetFormFromStreamMessageFirstWord(uint32_t word0); - static auto GetStatusFromStreamMessageFirstWord(uint32_t word0); - static auto GetMessageDisplayNameFromFirstWord(uint32_t word0); - static auto GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words); - static auto GetWordListFromPacketList(param::iterable const& words); - }; - struct MidiStreamMessageBuilder - { - MidiStreamMessageBuilder() = delete; - static auto BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request); - static auto BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps); - static auto BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4); - static auto BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name); - static auto BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId); - static auto ParseEndpointNameNotificationMessages(param::iterable const& messages); - static auto ParseProductInstanceIdNotificationMessages(param::iterable const& messages); - static auto BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps); - static auto BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps); - static auto BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags); - static auto BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams); - static auto BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name); - static auto ParseFunctionBlockNameNotificationMessages(param::iterable const& messages); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h deleted file mode 100644 index 5cd89b2ef..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h +++ /dev/null @@ -1,131 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - enum class MidiServiceConfigResponseStatus : int32_t - { - Success = 0, - ErrorTargetNotFound = 404, - ErrorConfigJsonNullOrEmpty = 600, - ErrorProcessingConfigJson = 601, - ErrorProcessingResponseJson = 605, - ErrorNotImplemented = 2600, - }; - struct IMidiServiceConfig; - struct IMidiServiceConfigStatics; - struct IMidiServiceMessageProcessingPluginConfig; - struct IMidiServiceTransportPluginConfig; - struct MidiServiceConfig; - struct MidiServiceConfigResponse; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfigResponseStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfigResponse"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceConfigStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceMessageProcessingPluginConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceTransportPluginConfig"; - template <> inline constexpr guid guid_v{ 0x0F1E4863,0xC76E,0x501F,{ 0x97,0x6A,0xDB,0x48,0xFC,0x0C,0x5B,0xB7 } }; // 0F1E4863-C76E-501F-976A-DB48FC0C5BB7 - template <> inline constexpr guid guid_v{ 0x20C5F99A,0x741B,0x513B,{ 0x86,0x55,0xAC,0x13,0x2F,0x05,0x16,0x6B } }; // 20C5F99A-741B-513B-8655-AC132F05166B - template <> inline constexpr guid guid_v{ 0x2EBCFA13,0x585A,0x4376,{ 0x8F,0xE1,0x63,0x57,0x84,0xFA,0x7F,0xD4 } }; // 2EBCFA13-585A-4376-8FE1-635784FA7FD4 - template <> inline constexpr guid guid_v{ 0xB2417DDE,0xEF35,0x499B,{ 0xA8,0x9B,0x0A,0x4C,0x32,0xCC,0x69,0x9A } }; // B2417DDE-EF35-499B-A89B-0A4C32CC699A - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall UpdateTransportPluginConfig(void*, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse*) noexcept = 0; - virtual int32_t __stdcall UpdateProcessingPluginConfig(void*, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_MessageProcessingPluginId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_PluginInstanceId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_IsFromCurrentConfigFile(bool*) noexcept = 0; - virtual int32_t __stdcall GetConfigJson(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_TransportId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_IsFromCurrentConfigFile(bool*) noexcept = 0; - virtual int32_t __stdcall GetConfigJson(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfig - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics - { - auto UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) const; - auto UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto MessageProcessingPluginId() const; - [[nodiscard]] auto PluginInstanceId() const; - [[nodiscard]] auto IsFromCurrentConfigFile() const; - auto GetConfigJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig - { - [[nodiscard]] auto TransportId() const; - [[nodiscard]] auto IsFromCurrentConfigFile() const; - auto GetConfigJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig; - }; - struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse - { - int32_t Status; - void* ResponseJson; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h deleted file mode 100644 index 6cc54f32d..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - struct WINRT_IMPL_EMPTY_BASES IMidiServiceConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceConfigStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceConfigStatics(std::nullptr_t = nullptr) noexcept {} - IMidiServiceConfigStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceMessageProcessingPluginConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceMessageProcessingPluginConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceMessageProcessingPluginConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceTransportPluginConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceTransportPluginConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceTransportPluginConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h deleted file mode 100644 index 66de80d94..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h +++ /dev/null @@ -1,30 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - struct MidiServiceConfigResponse - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponseStatus Status; - hstring ResponseJson; - }; - inline bool operator==(MidiServiceConfigResponse const& left, MidiServiceConfigResponse const& right) noexcept - { - return left.Status == right.Status && left.ResponseJson == right.ResponseJson; - } - inline bool operator!=(MidiServiceConfigResponse const& left, MidiServiceConfigResponse const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiServiceConfig : winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig - { - MidiServiceConfig(std::nullptr_t) noexcept {} - MidiServiceConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig(ptr, take_ownership_from_abi) {} - static auto UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate); - static auto UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 9f04cb3b7..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 9f6fbd35a..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index f6661a4d4..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index 2e35b702d..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index ad453f7b6..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 15faccfac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 350a04aed..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 7dc39cedd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index 3992c2ade..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index c568bcbd5..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 9f04cb3b7..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 9f6fbd35a..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index f6661a4d4..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index 2e35b702d..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index ad453f7b6..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 15faccfac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 350a04aed..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 7dc39cedd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index 3992c2ade..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index ce1286d12..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 17a5d258e..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index 62c9803bc..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index c568bcbd5..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index ce1286d12..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 17a5d258e..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index 62c9803bc..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/README.md b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/README.md deleted file mode 100644 index 112ed6921..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Microsoft.Windows.Devices.Midi2 - -Note. This package is currently in developer preview. Please see release notes - -https://aka.ms/midi diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props deleted file mode 100644 index b77844b02..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - $(MSBuildThisFileDirectory)..\..\ - - - - - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Messages.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd - - - $$(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Diagnostics.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd - - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Initialization.winmd - - - - - \ No newline at end of file diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets deleted file mode 100644 index 2cdea5d13..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h deleted file mode 100644 index 1d0756148..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h +++ /dev/null @@ -1,293 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte1() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte1(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte2() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte2(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte3() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte3(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte3(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte3(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte4() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte4(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte4(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte4(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::AsCombined28BitValue() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_AsCombined28BitValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::IsBroadcast() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_IsBroadcast(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::IsReserved() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_IsReserved(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory::CreateInstance(uint32_t combined28BitValue) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdFactory)->CreateInstance(combined28BitValue, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory::CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdFactory)->CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::CreateBroadcast() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->CreateBroadcast(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::CreateRandom() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->CreateRandom(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Byte1(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte1(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte2(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte2(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte2(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte3(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte3()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte3(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte3(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte4(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte4()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte4(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte4(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AsCombined28BitValue(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AsCombined28BitValue()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsBroadcast(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsBroadcast()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsReserved(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsReserved()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint32_t combined28BitValue, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(combined28BitValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateBroadcast(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateBroadcast()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateRandom(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateRandom()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - inline MidiUniqueId::MidiUniqueId() : - MidiUniqueId(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiUniqueId::MidiUniqueId(uint32_t combined28BitValue) : - MidiUniqueId(impl::call_factory([&](IMidiUniqueIdFactory const& f) { return f.CreateInstance(combined28BitValue); })) - { - } - inline MidiUniqueId::MidiUniqueId(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) : - MidiUniqueId(impl::call_factory([&](IMidiUniqueIdFactory const& f) { return f.CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4); })) - { - } - inline auto MidiUniqueId::ShortLabel() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiUniqueId::LongLabel() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiUniqueId::CreateBroadcast() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.CreateBroadcast(); }); - } - inline auto MidiUniqueId::CreateRandom() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.CreateRandom(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h deleted file mode 100644 index ddc7ab50a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h +++ /dev/null @@ -1,273 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedGroup() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_IncludedGroup(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_IncludedGroup(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedChannels() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_IncludedChannels(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::IncludedGroups() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_IncludedGroups(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::IncludedMessageTypes() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_IncludedMessageTypes(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedGroup(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IncludedGroup()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IncludedGroup(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IncludedGroup(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IncludedChannels(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedChannels()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedGroups(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedGroups()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedMessageTypes(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedMessageTypes()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - inline MidiChannelEndpointListener::MidiChannelEndpointListener() : - MidiChannelEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiGroupEndpointListener::MidiGroupEndpointListener() : - MidiGroupEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiMessageTypeEndpointListener::MidiMessageTypeEndpointListener() : - MidiMessageTypeEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h deleted file mode 100644 index 1eaad3621..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h +++ /dev/null @@ -1,333 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::DiagnosticsLoopbackAEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->get_DiagnosticsLoopbackAEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::DiagnosticsLoopbackBEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->get_DiagnosticsLoopbackBEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::PingService(uint8_t pingCount) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->PingService(pingCount, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::MidiServicePingResponseSummary{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->PingService2(pingCount, timeoutMilliseconds, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::MidiServicePingResponseSummary{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetInstalledTransportPlugins() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetInstalledTransportPlugins(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetInstalledMessageProcessingPlugins() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetInstalledMessageProcessingPlugins(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetActiveSessions() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetActiveSessions(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::Success() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_Success(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::FailureReason() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_FailureReason(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::TotalPingRoundTripMidiClock() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_TotalPingRoundTripMidiClock(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::AveragePingRoundTripMidiClock() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_AveragePingRoundTripMidiClock(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::Responses() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_Responses(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::SessionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_SessionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::ProcessId() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_ProcessId(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::ProcessName() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_ProcessName(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::SessionName() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_SessionName(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::StartTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_StartTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::Connections() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_Connections(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_DiagnosticsLoopbackAEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DiagnosticsLoopbackAEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DiagnosticsLoopbackBEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DiagnosticsLoopbackBEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PingService(uint8_t pingCount, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PingService(pingCount)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PingService2(uint8_t pingCount, uint32_t timeoutMilliseconds, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PingService(pingCount, timeoutMilliseconds)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall GetInstalledTransportPlugins(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetInstalledTransportPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetInstalledMessageProcessingPlugins(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetInstalledMessageProcessingPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetActiveSessions(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetActiveSessions()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Success(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Success()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FailureReason(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FailureReason()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TotalPingRoundTripMidiClock(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TotalPingRoundTripMidiClock()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AveragePingRoundTripMidiClock(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AveragePingRoundTripMidiClock()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Responses(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Responses()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_SessionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ProcessId(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ProcessId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ProcessName(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ProcessName()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_SessionName(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionName()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_StartTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().StartTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Connections(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Connections()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - inline auto MidiDiagnostics::DiagnosticsLoopbackAEndpointDeviceId() - { - return impl::call_factory_cast([](IMidiDiagnosticsStatics const& f) { return f.DiagnosticsLoopbackAEndpointDeviceId(); }); - } - inline auto MidiDiagnostics::DiagnosticsLoopbackBEndpointDeviceId() - { - return impl::call_factory_cast([](IMidiDiagnosticsStatics const& f) { return f.DiagnosticsLoopbackBEndpointDeviceId(); }); - } - inline auto MidiDiagnostics::PingService(uint8_t pingCount) - { - return impl::call_factory([&](IMidiDiagnosticsStatics const& f) { return f.PingService(pingCount); }); - } - inline auto MidiDiagnostics::PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) - { - return impl::call_factory([&](IMidiDiagnosticsStatics const& f) { return f.PingService(pingCount, timeoutMilliseconds); }); - } - inline auto MidiReporting::GetInstalledTransportPlugins() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetInstalledTransportPlugins(); }); - } - inline auto MidiReporting::GetInstalledMessageProcessingPlugins() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetInstalledMessageProcessingPlugins(); }); - } - inline auto MidiReporting::GetActiveSessions() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetActiveSessions(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h deleted file mode 100644 index 4122a5f63..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h +++ /dev/null @@ -1,277 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::AssociationId(winrt::guid const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_AssociationId(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionA() const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_EndpointDefinitionA(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionA(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_EndpointDefinitionA(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionB() const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_EndpointDefinitionB(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionB(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_EndpointDefinitionB(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory::CreateInstance(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfigFactory)->CreateInstance(impl::bind_in(associationId), impl::bind_in(endpointDefinitionA), impl::bind_in(endpointDefinitionB), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig::AssociationId(winrt::guid const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig)->put_AssociationId(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory::CreateInstance(winrt::guid const& associationId) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfigFactory)->CreateInstance(impl::bind_in(associationId), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::IsTransportAvailable() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->get_IsTransportAvailable(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::AbstractionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->get_AbstractionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationResult result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->CreateTransientLoopbackEndpoints(*(void**)(&creationConfig), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->RemoveTransientLoopbackEndpoints(*(void**)(&deletionConfig), &result)); - return result; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_AssociationId(winrt::guid value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AssociationId(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDefinitionA()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDefinitionA(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDefinitionB()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDefinitionB(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(winrt::guid associationId, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition endpointDefinitionA, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition endpointDefinitionB, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&associationId), *reinterpret_cast(&endpointDefinitionA), *reinterpret_cast(&endpointDefinitionB))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_AssociationId(winrt::guid value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AssociationId(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(winrt::guid associationId, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&associationId))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsTransportAvailable(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsTransportAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AbstractionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AbstractionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateTransientLoopbackEndpoints(void* creationConfig, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateTransientLoopbackEndpoints(*reinterpret_cast(&creationConfig))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall RemoveTransientLoopbackEndpoints(void* deletionConfig, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().RemoveTransientLoopbackEndpoints(*reinterpret_cast(&deletionConfig))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - inline MidiLoopbackEndpointCreationConfig::MidiLoopbackEndpointCreationConfig() : - MidiLoopbackEndpointCreationConfig(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiLoopbackEndpointCreationConfig::MidiLoopbackEndpointCreationConfig(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) : - MidiLoopbackEndpointCreationConfig(impl::call_factory([&](IMidiLoopbackEndpointCreationConfigFactory const& f) { return f.CreateInstance(associationId, endpointDefinitionA, endpointDefinitionB); })) - { - } - inline MidiLoopbackEndpointDeletionConfig::MidiLoopbackEndpointDeletionConfig(winrt::guid const& associationId) : - MidiLoopbackEndpointDeletionConfig(impl::call_factory([&](IMidiLoopbackEndpointDeletionConfigFactory const& f) { return f.CreateInstance(associationId); })) - { - } - inline auto MidiLoopbackEndpointManager::IsTransportAvailable() - { - return impl::call_factory_cast([](IMidiLoopbackEndpointManagerStatics const& f) { return f.IsTransportAvailable(); }); - } - inline auto MidiLoopbackEndpointManager::AbstractionId() - { - return impl::call_factory_cast([](IMidiLoopbackEndpointManagerStatics const& f) { return f.AbstractionId(); }); - } - inline auto MidiLoopbackEndpointManager::CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) - { - return impl::call_factory([&](IMidiLoopbackEndpointManagerStatics const& f) { return f.CreateTransientLoopbackEndpoints(creationConfig); }); - } - inline auto MidiLoopbackEndpointManager::RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) - { - return impl::call_factory([&](IMidiLoopbackEndpointManagerStatics const& f) { return f.RemoveTransientLoopbackEndpoints(deletionConfig); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h deleted file mode 100644 index ebc82f88f..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h +++ /dev/null @@ -1,502 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::PreferredMidiProtocol() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_PreferredMidiProtocol(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::RequestEndpointTransmitJitterReductionTimestamps() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_RequestEndpointTransmitJitterReductionTimestamps(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::RequestEndpointReceiveJitterReductionTimestamps() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_RequestEndpointReceiveJitterReductionTimestamps(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::DeviceEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_DeviceEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::FunctionBlocks() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_FunctionBlocks(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::UpdateFunctionBlock(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock const& block) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->UpdateFunctionBlock(*(void**)(&block), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::UpdateEndpointName(param::hstring const& name) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->UpdateEndpointName(*(void**)(&name), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::SuppressHandledMessages() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_SuppressHandledMessages(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::SuppressHandledMessages(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->put_SuppressHandledMessages(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->add_StreamConfigRequestReceived(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, StreamConfigRequestReceived(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->remove_StreamConfigRequestReceived(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Name(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Name(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Description() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Description(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Description(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Description(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Manufacturer() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Manufacturer(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Manufacturer(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Manufacturer(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredDeviceIdentity() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_DeclaredDeviceIdentity(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredDeviceIdentity(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_DeclaredDeviceIdentity(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredEndpointInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_DeclaredEndpointInfo(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredEndpointInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_DeclaredEndpointInfo(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::UserSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_UserSuppliedInfo(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::UserSuppliedInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_UserSuppliedInfo(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::FunctionBlocks() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_FunctionBlocks(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance2(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance2(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), impl::bind_in(declaredDeviceIdentity), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance3(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance3(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), impl::bind_in(declaredDeviceIdentity), impl::bind_in(userSuppliedInfo), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::IsTransportAvailable() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->get_IsTransportAvailable(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::AbstractionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->get_AbstractionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->CreateVirtualDevice(*(void**)(&creationConfig), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDevice{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreferredMidiProtocol(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreferredMidiProtocol()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RequestEndpointTransmitJitterReductionTimestamps(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RequestEndpointTransmitJitterReductionTimestamps()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RequestEndpointReceiveJitterReductionTimestamps(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RequestEndpointReceiveJitterReductionTimestamps()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_DeviceEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FunctionBlocks(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().FunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateFunctionBlock(void* block, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateFunctionBlock(*reinterpret_cast(&block))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateEndpointName(void* name, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateEndpointName(*reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_SuppressHandledMessages(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SuppressHandledMessages()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_SuppressHandledMessages(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().SuppressHandledMessages(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall add_StreamConfigRequestReceived(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().StreamConfigRequestReceived(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_StreamConfigRequestReceived(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().StreamConfigRequestReceived(*reinterpret_cast(&token)); - return 0; - } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Name(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Name(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Description(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Description()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Description(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Description(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Manufacturer(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Manufacturer()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Manufacturer(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Manufacturer(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredDeviceIdentity()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DeclaredDeviceIdentity(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredEndpointInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DeclaredEndpointInfo(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().UserSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().UserSuppliedInfo(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FunctionBlocks(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().FunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity declaredDeviceIdentity, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo), *reinterpret_cast(&declaredDeviceIdentity))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity declaredDeviceIdentity, struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo userSuppliedInfo, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo), *reinterpret_cast(&declaredDeviceIdentity), *reinterpret_cast(&userSuppliedInfo))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsTransportAvailable(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsTransportAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AbstractionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AbstractionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateVirtualDevice(void* creationConfig, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateVirtualDevice(*reinterpret_cast(&creationConfig))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance(name, description, manufacturer, declaredEndpointInfo); })) - { - } - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance2(name, description, manufacturer, declaredEndpointInfo, declaredDeviceIdentity); })) - { - } - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance3(name, description, manufacturer, declaredEndpointInfo, declaredDeviceIdentity, userSuppliedInfo); })) - { - } - inline auto MidiVirtualDeviceManager::IsTransportAvailable() - { - return impl::call_factory_cast([](IMidiVirtualDeviceManagerStatics const& f) { return f.IsTransportAvailable(); }); - } - inline auto MidiVirtualDeviceManager::AbstractionId() - { - return impl::call_factory_cast([](IMidiVirtualDeviceManagerStatics const& f) { return f.AbstractionId(); }); - } - inline auto MidiVirtualDeviceManager::CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) - { - return impl::call_factory([&](IMidiVirtualDeviceManagerStatics const& f) { return f.CreateVirtualDevice(creationConfig); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h deleted file mode 100644 index 3fec6b2d9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h +++ /dev/null @@ -1,162 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::IsOperatingSystemSupported() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->IsOperatingSystemSupported(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::EnsureServiceAvailable() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->EnsureServiceAvailable(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::InitializeSdkRuntime() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->InitializeSdkRuntime(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::IsCompatibleDesktopAppSdkRuntimeInstalled() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->IsCompatibleDesktopAppSdkRuntimeInstalled(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestRuntimeReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestRuntimeReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestSettingsAppReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestSettingsAppReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestConsoleAppReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestConsoleAppReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall IsOperatingSystemSupported(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsOperatingSystemSupported()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall EnsureServiceAvailable(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().EnsureServiceAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall InitializeSdkRuntime(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().InitializeSdkRuntime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsCompatibleDesktopAppSdkRuntimeInstalled(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsCompatibleDesktopAppSdkRuntimeInstalled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestRuntimeReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestRuntimeReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestSettingsAppReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestSettingsAppReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestConsoleAppReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestConsoleAppReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - inline auto MidiServicesInitializer::IsOperatingSystemSupported() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.IsOperatingSystemSupported(); }); - } - inline auto MidiServicesInitializer::EnsureServiceAvailable() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.EnsureServiceAvailable(); }); - } - inline auto MidiServicesInitializer::InitializeSdkRuntime() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.InitializeSdkRuntime(); }); - } - inline auto MidiServicesInitializer::IsCompatibleDesktopAppSdkRuntimeInstalled() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.IsCompatibleDesktopAppSdkRuntimeInstalled(); }); - } - inline auto MidiServicesInitializer::GetLatestRuntimeReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestRuntimeReleaseInstallerUri(); }); - } - inline auto MidiServicesInitializer::GetLatestSettingsAppReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestSettingsAppReleaseInstallerUri(); }); - } - inline auto MidiServicesInitializer::GetLatestConsoleAppReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestConsoleAppReleaseInstallerUri(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h deleted file mode 100644 index dc6388835..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h +++ /dev/null @@ -1,1341 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Windows.Devices.Midi.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildUtilityMessage(timestamp, status, dataOrReserved, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemMessage(timestamp, *(void**)(&group), status, midi1Byte2, midi1Byte3, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMidi1ChannelVoiceMessage(timestamp, *(void**)(&group), static_cast(status), *(void**)(&channel), byte3, byte4, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemExclusive7Message(timestamp, *(void**)(&group), status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMidi2ChannelVoiceMessage(timestamp, *(void**)(&group), static_cast(status), *(void**)(&channel), index, data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemExclusive8Message(timestamp, *(void**)(&group), static_cast(status), numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMixedDataSetChunkHeaderMessage(timestamp, *(void**)(&group), mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMixedDataSetChunkDataMessage(timestamp, *(void**)(&group), mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildFlexDataMessage(timestamp, *(void**)(&group), form, address, *(void**)(&channel), statusBank, status, word1Data, word2Data, word3Data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message(timestamp, *(void**)(&group), statusByte, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message2(timestamp, *(void**)(&group), statusByte, dataByte1, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message3(timestamp, *(void**)(&group), statusByte, dataByte1, dataByte2, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ChannelPressureMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1NoteOffMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1NoteOnMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1PitchBendChangeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1PolyphonicKeyPressureMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ProgramChangeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TimeCodeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SongPositionPointerMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SongSelectMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TuneRequestMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TimingClockMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1StartMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ContinueMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1StopMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ActiveSensingMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SystemResetMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage32MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage32MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage64MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage64MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage96MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage96MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage128MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage128MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetMessageTypeFromMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetMessageTypeFromMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetPacketTypeFromMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetPacketTypeFromMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->MessageTypeHasGroupField(static_cast(messageType), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ReplaceGroupInMessageFirstWord(word0, *(void**)(&newGroup), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetGroupFromMessageFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetGroupFromMessageFirstWord(word0, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromUtilityMessage(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromUtilityMessage(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromMidi1ChannelVoiceMessage(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusBankFromFlexDataMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromFlexDataMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromFlexDataMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromSystemCommonMessage(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromSystemCommonMessage(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromDataMessage64FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromDataMessage64FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetNumberOfBytesFromDataMessage64FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromDataMessage128FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromDataMessage128FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetNumberOfBytesFromDataMessage128FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->MessageTypeHasChannelField(static_cast(messageType), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ReplaceChannelInMessageFirstWord(word0, *(void**)(&newChannel), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetChannelFromMessageFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetChannelFromMessageFirstWord(word0, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiChannel{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetFormFromStreamMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetFormFromStreamMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromStreamMessageFirstWord(uint32_t word0) const - { - uint16_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromStreamMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetMessageDisplayNameFromFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetMessageDisplayNameFromFirstWord(word0, &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetPacketListFromWordList(timestamp, *(void**)(&words), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetWordListFromPacketList(param::iterable const& words) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetWordListFromPacketList(*(void**)(&words), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, static_cast(request), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointNameNotificationMessages(timestamp, *(void**)(&name), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildProductInstanceIdNotificationMessages(timestamp, *(void**)(&productInstanceId), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseEndpointNameNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseEndpointNameNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseProductInstanceIdNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseProductInstanceIdNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, static_cast(requestFlags), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, static_cast(uiHint), static_cast(midi10), static_cast(direction), firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, *(void**)(&name), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseFunctionBlockNameNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildUtilityMessage(timestamp, status, dataOrReserved)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemMessage(uint64_t timestamp, void* group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemMessage(timestamp, *reinterpret_cast(&group), status, midi1Byte2, midi1Byte3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMidi1ChannelVoiceMessage(uint64_t timestamp, void* group, int32_t status, void* channel, uint8_t byte3, uint8_t byte4, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMidi1ChannelVoiceMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), *reinterpret_cast(&channel), byte3, byte4)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemExclusive7Message(uint64_t timestamp, void* group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemExclusive7Message(timestamp, *reinterpret_cast(&group), status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMidi2ChannelVoiceMessage(uint64_t timestamp, void* group, int32_t status, void* channel, uint16_t index, uint32_t data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMidi2ChannelVoiceMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), *reinterpret_cast(&channel), index, data)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemExclusive8Message(uint64_t timestamp, void* group, int32_t status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemExclusive8Message(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, void* group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMixedDataSetChunkHeaderMessage(timestamp, *reinterpret_cast(&group), mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMixedDataSetChunkDataMessage(uint64_t timestamp, void* group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMixedDataSetChunkDataMessage(timestamp, *reinterpret_cast(&group), mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFlexDataMessage(uint64_t timestamp, void* group, uint8_t form, uint8_t address, void* channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFlexDataMessage(timestamp, *reinterpret_cast(&group), form, address, *reinterpret_cast(&channel), statusBank, status, word1Data, word2Data, word3Data)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall ConvertMidi1Message(uint64_t timestamp, void* group, uint8_t statusByte, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1Message2(uint64_t timestamp, void* group, uint8_t statusByte, uint8_t dataByte1, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte, dataByte1)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1Message3(uint64_t timestamp, void* group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte, dataByte1, dataByte2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ChannelPressureMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ChannelPressureMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1NoteOffMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1NoteOffMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1NoteOnMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1NoteOnMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1PitchBendChangeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1PolyphonicKeyPressureMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ProgramChangeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ProgramChangeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TimeCodeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TimeCodeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SongPositionPointerMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SongSelectMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SongSelectMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TuneRequestMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TuneRequestMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TimingClockMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TimingClockMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1StartMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1StartMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ContinueMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ContinueMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1StopMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1StopMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ActiveSensingMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ActiveSensingMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SystemResetMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SystemResetMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall ValidateMessage32MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage32MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage64MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage64MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage96MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage96MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage128MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage128MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessageTypeFromMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessageTypeFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetPacketTypeFromMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetPacketTypeFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall MessageTypeHasGroupField(int32_t messageType, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().MessageTypeHasGroupField(*reinterpret_cast(&messageType))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ReplaceGroupInMessageFirstWord(uint32_t word0, void* newGroup, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ReplaceGroupInMessageFirstWord(word0, *reinterpret_cast(&newGroup))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetGroupFromMessageFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetGroupFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromUtilityMessage(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromUtilityMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromMidi1ChannelVoiceMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusBankFromFlexDataMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromFlexDataMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromFlexDataMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromSystemCommonMessage(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromSystemCommonMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromDataMessage64FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromDataMessage64FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetNumberOfBytesFromDataMessage64FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromDataMessage128FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromDataMessage128FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetNumberOfBytesFromDataMessage128FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall MessageTypeHasChannelField(int32_t messageType, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().MessageTypeHasChannelField(*reinterpret_cast(&messageType))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ReplaceChannelInMessageFirstWord(uint32_t word0, void* newChannel, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ReplaceChannelInMessageFirstWord(word0, *reinterpret_cast(&newChannel))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetChannelFromMessageFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetChannelFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetFormFromStreamMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetFormFromStreamMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromStreamMessageFirstWord(uint32_t word0, uint16_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromStreamMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessageDisplayNameFromFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessageDisplayNameFromFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetPacketListFromWordList(uint64_t timestamp, void* words, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetPacketListFromWordList(timestamp, *reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetWordListFromPacketList(void* words, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetWordListFromPacketList(*reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, uint32_t request, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, *reinterpret_cast(&request))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildEndpointNameNotificationMessages(uint64_t timestamp, void* name, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildEndpointNameNotificationMessages(timestamp, *reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildProductInstanceIdNotificationMessages(uint64_t timestamp, void* productInstanceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildProductInstanceIdNotificationMessages(timestamp, *reinterpret_cast(&productInstanceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseEndpointNameNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseEndpointNameNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseProductInstanceIdNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseProductInstanceIdNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, uint32_t requestFlags, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, *reinterpret_cast(&requestFlags))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, int32_t uiHint, int32_t midi10, int32_t direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, *reinterpret_cast(&uiHint), *reinterpret_cast(&midi10), *reinterpret_cast(&direction), firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, void* name, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, *reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseFunctionBlockNameNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseFunctionBlockNameNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - constexpr auto operator|(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiEndpointDiscoveryRequests const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left ^ right; - return left; - } - constexpr auto operator|(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiFunctionBlockDiscoveryRequests const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left ^ right; - return left; - } - inline auto MidiMessageBuilder::BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildUtilityMessage(timestamp, status, dataOrReserved); }); - } - inline auto MidiMessageBuilder::BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemMessage(timestamp, group, status, midi1Byte2, midi1Byte3); }); - } - inline auto MidiMessageBuilder::BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMidi1ChannelVoiceMessage(timestamp, group, status, channel, byte3, byte4); }); - } - inline auto MidiMessageBuilder::BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemExclusive7Message(timestamp, group, status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5); }); - } - inline auto MidiMessageBuilder::BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMidi2ChannelVoiceMessage(timestamp, group, status, channel, index, data); }); - } - inline auto MidiMessageBuilder::BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemExclusive8Message(timestamp, group, status, numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12); }); - } - inline auto MidiMessageBuilder::BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMixedDataSetChunkHeaderMessage(timestamp, group, mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2); }); - } - inline auto MidiMessageBuilder::BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMixedDataSetChunkDataMessage(timestamp, group, mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13); }); - } - inline auto MidiMessageBuilder::BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildFlexDataMessage(timestamp, group, form, address, channel, statusBank, status, word1Data, word2Data, word3Data); }); - } - inline auto MidiMessageBuilder::BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte, dataByte1); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte, dataByte1, dataByte2); }); - } - inline auto MidiMessageConverter::ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ChannelPressureMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1NoteOffMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1NoteOnMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1PitchBendChangeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1PolyphonicKeyPressureMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ProgramChangeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TimeCodeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SongPositionPointerMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SongSelectMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TuneRequestMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TimingClockMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1StartMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ContinueMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1StopMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ActiveSensingMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SystemResetMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageHelper::ValidateMessage32MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage32MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage64MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage64MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage96MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage96MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage128MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage128MessageType(word0); }); - } - inline auto MidiMessageHelper::GetMessageTypeFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetMessageTypeFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetPacketTypeFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetPacketTypeFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.MessageTypeHasGroupField(messageType); }); - } - inline auto MidiMessageHelper::ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ReplaceGroupInMessageFirstWord(word0, newGroup); }); - } - inline auto MidiMessageHelper::GetGroupFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetGroupFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromUtilityMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromUtilityMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromMidi1ChannelVoiceMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusBankFromFlexDataMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromFlexDataMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromFlexDataMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromSystemCommonMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromSystemCommonMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromDataMessage64FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromDataMessage64FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetNumberOfBytesFromDataMessage64FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromDataMessage128FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromDataMessage128FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetNumberOfBytesFromDataMessage128FirstWord(word0); }); - } - inline auto MidiMessageHelper::MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.MessageTypeHasChannelField(messageType); }); - } - inline auto MidiMessageHelper::ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ReplaceChannelInMessageFirstWord(word0, newChannel); }); - } - inline auto MidiMessageHelper::GetChannelFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetChannelFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetFormFromStreamMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetFormFromStreamMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromStreamMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromStreamMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetMessageDisplayNameFromFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetMessageDisplayNameFromFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetPacketListFromWordList(timestamp, words); }); - } - inline auto MidiMessageHelper::GetWordListFromPacketList(param::iterable const& words) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetWordListFromPacketList(words); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, request); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointNameNotificationMessages(timestamp, name); }); - } - inline auto MidiStreamMessageBuilder::BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildProductInstanceIdNotificationMessages(timestamp, productInstanceId); }); - } - inline auto MidiStreamMessageBuilder::ParseEndpointNameNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseEndpointNameNotificationMessages(messages); }); - } - inline auto MidiStreamMessageBuilder::ParseProductInstanceIdNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseProductInstanceIdNotificationMessages(messages); }); - } - inline auto MidiStreamMessageBuilder::BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, requestFlags); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, uiHint, midi10, direction, firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, name); }); - } - inline auto MidiStreamMessageBuilder::ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseFunctionBlockNameNotificationMessages(messages); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h deleted file mode 100644 index e221d614e..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h +++ /dev/null @@ -1,192 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics::UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) const - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponse result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfigStatics)->UpdateTransportPluginConfig(*(void**)(&configUpdate), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics::UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) const - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponse result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfigStatics)->UpdateProcessingPluginConfig(*(void**)(&configUpdate), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::MessageProcessingPluginId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_MessageProcessingPluginId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::PluginInstanceId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_PluginInstanceId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::IsFromCurrentConfigFile() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_IsFromCurrentConfigFile(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::GetConfigJson() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->GetConfigJson(&result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::TransportId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->get_TransportId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::IsFromCurrentConfigFile() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->get_IsFromCurrentConfigFile(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::GetConfigJson() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->GetConfigJson(&result)); - return hstring{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall UpdateTransportPluginConfig(void* configUpdate, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateTransportPluginConfig(*reinterpret_cast(&configUpdate))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateProcessingPluginConfig(void* configUpdate, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateProcessingPluginConfig(*reinterpret_cast(&configUpdate))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageProcessingPluginId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageProcessingPluginId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PluginInstanceId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PluginInstanceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsFromCurrentConfigFile(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsFromCurrentConfigFile()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetConfigJson(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetConfigJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; - template - struct produce : produce_base - { - int32_t __stdcall get_TransportId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TransportId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsFromCurrentConfigFile(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsFromCurrentConfigFile()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetConfigJson(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetConfigJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - inline auto MidiServiceConfig::UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) - { - return impl::call_factory([&](IMidiServiceConfigStatics const& f) { return f.UpdateTransportPluginConfig(configUpdate); }); - } - inline auto MidiServiceConfig::UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) - { - return impl::call_factory([&](IMidiServiceConfigStatics const& f) { return f.UpdateProcessingPluginConfig(configUpdate); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h deleted file mode 100644 index f8dcd9c51..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h +++ /dev/null @@ -1,3689 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/impl/Windows.Devices.Enumeration.2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::Index() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->get_Index(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::Index(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->put_Index(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::DisplayValue() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->get_DisplayValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory::CreateInstance(uint8_t index) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelFactory)->CreateInstance(index, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiChannel{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::IsValidIndex(uint8_t index) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->IsValidIndex(index, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::Now() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_Now(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::TimestampConstantSendImmediately() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_TimestampConstantSendImmediately(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::TimestampFrequency() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_TimestampFrequency(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToNanoseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToMicroseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToMilliseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToSeconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToSeconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByTicks(timestampValue, offsetTicks, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampBySeconds(timestampValue, offsetSeconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::ConnectionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_ConnectionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::ConnectedEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_ConnectedEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Tag() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_Tag(&value)); - return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Tag(winrt::Windows::Foundation::IInspectable const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->put_Tag(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::LogMessageDataValidationErrorDetails() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_LogMessageDataValidationErrorDetails(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::LogMessageDataValidationErrorDetails(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->put_LogMessageDataValidationErrorDetails(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Settings() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_Settings(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::IsOpen() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_IsOpen(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Open() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->Open(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::IsAutoReconnectEnabled() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_IsAutoReconnectEnabled(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::MessageProcessingPlugins() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_MessageProcessingPlugins(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::AddMessageProcessingPlugin(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin const& plugin) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->AddMessageProcessingPlugin(*(void**)(&plugin))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::RemoveMessageProcessingPlugin(winrt::guid const& id) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->RemoveMessageProcessingPlugin(impl::bind_in(id))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessagePacket(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket const& message) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessagePacket(*(void**)(&message), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageStruct(timestamp, wordCount, impl::bind_in(message), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, array_view words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWordArray(timestamp, startIndex, wordCount, words.size(), get_abi(words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords(timestamp, word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords2(timestamp, word0, word1, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords3(timestamp, word0, word1, word2, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords4(timestamp, word0, word1, word2, word3, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageBuffer(timestamp, byteOffset, byteCount, *(void**)(&buffer), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesWordList(uint64_t timestamp, param::iterable const& words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesWordList(timestamp, *(void**)(&words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, array_view words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesWordArray(timestamp, startIndex, wordCount, words.size(), get_abi(words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesPacketList(param::iterable const& messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesPacketList(*(void**)(&messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesStructList(uint64_t timestamp, param::iterable const& messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesStructList(timestamp, *(void**)(&messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, array_view messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesStructArray(timestamp, startIndex, messageCount, messages.size(), get_abi(messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesBuffer(timestamp, byteOffset, byteCount, *(void**)(&buffer), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings::SettingsJson() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings)->get_SettingsJson(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->add_EndpointDeviceDisconnected(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EndpointDeviceDisconnected(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->remove_EndpointDeviceDisconnected(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->add_EndpointDeviceReconnected(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EndpointDeviceReconnected(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->remove_EndpointDeviceReconnected(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::GetDeviceSelector() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->GetDeviceSelector(&result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->SendMessageSucceeded(static_cast(sendResult), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->SendMessageFailed(static_cast(sendResult), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::ContainerId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_ContainerId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeviceInstanceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeviceInstanceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::EndpointPurpose() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDevicePurpose value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_EndpointPurpose(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredEndpointInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredEndpointInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredEndpointInfoLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredEndpointInfoLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredDeviceIdentity() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredDeviceIdentity(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredDeviceIdentityLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredDeviceIdentityLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredStreamConfiguration() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredStreamConfiguration result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredStreamConfiguration(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredStreamConfigurationLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredStreamConfigurationLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredFunctionBlocks() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredFunctionBlocks(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredFunctionBlocksLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredFunctionBlocksLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetGroupTerminalBlocks() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetGroupTerminalBlocks(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetUserSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetUserSuppliedInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetTransportSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointTransportSuppliedInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetTransportSuppliedInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetParentDeviceInformation() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetParentDeviceInformation(&result)); - return winrt::Windows::Devices::Enumeration::DeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetContainerDeviceInformation() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetContainerDeviceInformation(&result)); - return winrt::Windows::Devices::Enumeration::DeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::Properties() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_Properties(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs::AddedDevice() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs)->get_AddedDevice(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs::DeviceInformationUpdate() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs)->get_DeviceInformationUpdate(&value)); - return winrt::Windows::Devices::Enumeration::DeviceInformationUpdate{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->CreateFromEndpointDeviceId(*(void**)(&endpointDeviceId), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll2(static_cast(sortOrder), &result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll3(static_cast(sortOrder), static_cast(endpointFilters), &result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::EndpointInterfaceClass() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->get_EndpointInterfaceClass(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::GetAdditionalPropertiesList() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->GetAdditionalPropertiesList(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->DeviceMatchesFilter(*(void**)(&deviceInformation), static_cast(endpointFilters), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsNameUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsNameUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsEndpointInformationUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsEndpointInformationUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsDeviceIdentityUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsDeviceIdentityUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsStreamConfigurationUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsStreamConfigurationUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::AreFunctionBlocksUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_AreFunctionBlocksUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsUserMetadataUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsUserMetadataUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::AreAdditionalCapabilitiesUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_AreAdditionalCapabilitiesUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::DeviceInformationUpdate() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_DeviceInformationUpdate(&value)); - return winrt::Windows::Devices::Enumeration::DeviceInformationUpdate{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Start() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->Start()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stop() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->Stop()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumeratedEndpointDevices() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->get_EnumeratedEndpointDevices(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Status() const - { - winrt::Windows::Devices::Enumeration::DeviceWatcherStatus value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->get_Status(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Added(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Added(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Added(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Removed(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Removed(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Removed(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Updated(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Updated(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Updated(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_EnumerationCompleted(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EnumerationCompleted(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_EnumerationCompleted(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Stopped(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Stopped(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Stopped(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics::Create() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcherStatics)->Create(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceWatcher{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics::Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcherStatics)->Create2(static_cast(endpointFilters), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceWatcher{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Id() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_Id(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Name(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_Name(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Tag() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_Tag(&value)); - return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Tag(winrt::Windows::Foundation::IInspectable const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_Tag(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::IsEnabled() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_IsEnabled(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::IsEnabled(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_IsEnabled(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Initialize(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource const& endpointConnection) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->Initialize(*(void**)(&endpointConnection))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::OnEndpointConnectionOpened() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->OnEndpointConnectionOpened()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::ProcessIncomingMessage(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageReceivedEventArgs const& args, bool& skipFurtherListeners, bool& skipMainMessageReceivedEvent) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->ProcessIncomingMessage(*(void**)(&args), &skipFurtherListeners, &skipMainMessageReceivedEvent)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Cleanup() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->Cleanup()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsReadOnly() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_IsReadOnly(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Number() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Number(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Number(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Number(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Name(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Name(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsActive() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_IsActive(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsActive(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_IsActive(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Direction() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Direction(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Direction(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Direction(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::UIHint() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_UIHint(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::UIHint(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_UIHint(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::RepresentsMidi10Connection() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_RepresentsMidi10Connection(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::RepresentsMidi10Connection(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_RepresentsMidi10Connection(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::FirstGroupIndex() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_FirstGroupIndex(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::FirstGroupIndex(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_FirstGroupIndex(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::GroupCount() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_GroupCount(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::GroupCount(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_GroupCount(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->IncludesGroup(*(void**)(&group), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MidiCIMessageVersionFormat() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_MidiCIMessageVersionFormat(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MidiCIMessageVersionFormat(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_MidiCIMessageVersionFormat(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MaxSystemExclusive8Streams() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_MaxSystemExclusive8Streams(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MaxSystemExclusive8Streams(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_MaxSystemExclusive8Streams(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::Index() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->get_Index(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::Index(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->put_Index(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::DisplayValue() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->get_DisplayValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory::CreateInstance(uint8_t index) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupFactory)->CreateInstance(index, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::IsValidIndex(uint8_t index) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->IsValidIndex(index, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Number() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Number(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Direction() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiGroupTerminalBlockDirection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Direction(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Protocol() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiGroupTerminalBlockProtocol value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Protocol(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::FirstGroupIndex() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_FirstGroupIndex(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::GroupCount() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_GroupCount(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->IncludesGroup(*(void**)(&group), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::MaxDeviceInputBandwidthIn4KBitsPerSecondUnits() const - { - uint16_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits() const - { - uint16_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::CalculatedMaxDeviceInputBandwidthBitsPerSecond() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::CalculatedMaxDeviceOutputBandwidthBitsPerSecond() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::AsEquivalentFunctionBlock() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->AsEquivalentFunctionBlock(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word2() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word2(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word3() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word3(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word3(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word3(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance2(timestamp, word0, word1, word2, word3, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Factory)->CreateInstance2(timestamp, word0, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance2(timestamp, word0, word1, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word2() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word2(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance2(timestamp, word0, word1, word2, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::PacketType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_PacketType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::MessageType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_MessageType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::PeekFirstWord() const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->PeekFirstWord(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::GetMessagePacket() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->GetMessagePacket(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillWords(uint32_t& word0, uint32_t& word1, uint32_t& word2, uint32_t& word3) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillWords(&word0, &word1, &word2, &word3, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessageStruct(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct& message) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessageStruct(impl::bind_out(message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage32(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage32(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage64(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage64(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage96(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage96(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage128(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage128(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillWordArray(uint32_t startIndex, array_view words) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillWordArray(startIndex, words.size(), put_abi(words), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillByteArray(uint32_t startIndex, array_view bytes) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillByteArray(startIndex, bytes.size(), put_abi(bytes), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillBuffer(byteOffset, *(void**)(&buffer), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::AppendWordsToList(param::vector const& wordList) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->AppendWordsToList(*(void**)(&wordList), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventSource)->add_MessageReceived(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, MessageReceived(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventSource)->remove_MessageReceived(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::SessionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_SessionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::IsOpen() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_IsOpen(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::Connections() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_Connections(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection(*(void**)(&endpointDeviceId), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection2(*(void**)(&endpointDeviceId), autoReconnect, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect, winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings const& settings) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection3(*(void**)(&endpointDeviceId), autoReconnect, *(void**)(&settings), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::DisconnectEndpointConnection(winrt::guid const& endpointConnectionId) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->DisconnectEndpointConnection(impl::bind_in(endpointConnectionId))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::UpdateName(param::hstring const& newName) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->UpdateName(*(void**)(&newName), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics::Create(param::hstring const& sessionName) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSessionStatics)->Create(*(void**)(&sessionName), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiSession{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::Timestamp(uint64_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->put_Timestamp(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::MessageType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_MessageType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::MessageType(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->put_MessageType(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::PacketType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_PacketType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::PeekFirstWord() const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->PeekFirstWord(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::GetAllWords() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->GetAllWords(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::AppendAllMessageWordsToList(param::vector const& targetList) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->AppendAllMessageWordsToList(*(void**)(&targetList), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->FillBuffer(byteOffset, *(void**)(&buffer), &result)); - return result; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Index(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Index()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Index(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Index(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DisplayValue(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DisplayValue()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint8_t index, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsValidIndex(uint8_t index, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsValidIndex(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Now(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Now()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TimestampConstantSendImmediately(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TimestampConstantSendImmediately()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TimestampFrequency(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TimestampFrequency()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToNanoseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToNanoseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToMicroseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToMicroseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToMilliseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToMilliseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToSeconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToSeconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByTicks(timestampValue, offsetTicks)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampBySeconds(timestampValue, offsetSeconds)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ConnectionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ConnectionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ConnectedEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ConnectedEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Tag(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Tag()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Tag(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Tag(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LogMessageDataValidationErrorDetails(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LogMessageDataValidationErrorDetails()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_LogMessageDataValidationErrorDetails(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().LogMessageDataValidationErrorDetails(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Settings(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Settings()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsOpen(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsOpen()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Open(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Open()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsAutoReconnectEnabled(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsAutoReconnectEnabled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageProcessingPlugins(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().MessageProcessingPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AddMessageProcessingPlugin(void* plugin) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AddMessageProcessingPlugin(*reinterpret_cast(&plugin)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall RemoveMessageProcessingPlugin(winrt::guid id) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().RemoveMessageProcessingPlugin(*reinterpret_cast(&id)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessagePacket(void* message, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessagePacket(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct const& message, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageStruct(timestamp, wordCount, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, uint32_t __wordsSize, uint32_t* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWordArray(timestamp, startIndex, wordCount, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords3(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1, word2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords4(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1, word2, word3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, void* buffer, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageBuffer(timestamp, byteOffset, byteCount, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesWordList(uint64_t timestamp, void* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesWordList(timestamp, *reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, uint32_t __wordsSize, uint32_t* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesWordArray(timestamp, startIndex, wordCount, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesPacketList(void* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesPacketList(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesStructList(uint64_t timestamp, void* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesStructList(timestamp, *reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, uint32_t __messagesSize, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesStructArray(timestamp, startIndex, messageCount, array_view(reinterpret_cast(messages), reinterpret_cast(messages) + __messagesSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, void* buffer, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesBuffer(timestamp, byteOffset, byteCount, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_SettingsJson(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SettingsJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; - template - struct produce : produce_base - { - int32_t __stdcall add_EndpointDeviceDisconnected(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EndpointDeviceDisconnected(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EndpointDeviceDisconnected(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDeviceDisconnected(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_EndpointDeviceReconnected(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EndpointDeviceReconnected(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EndpointDeviceReconnected(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDeviceReconnected(*reinterpret_cast(&token)); - return 0; - } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall GetDeviceSelector(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeviceSelector()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMessageSucceeded(uint32_t sendResult, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMessageSucceeded(*reinterpret_cast(&sendResult))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMessageFailed(uint32_t sendResult, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMessageFailed(*reinterpret_cast(&sendResult))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ContainerId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ContainerId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInstanceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInstanceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointPurpose(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointPurpose()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredEndpointInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredEndpointInfoLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredEndpointInfoLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredDeviceIdentity()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredDeviceIdentityLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredDeviceIdentityLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredStreamConfiguration(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredStreamConfiguration()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredStreamConfigurationLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredStreamConfigurationLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredFunctionBlocks(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetDeclaredFunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredFunctionBlocksLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredFunctionBlocksLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetGroupTerminalBlocks(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetGroupTerminalBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetUserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetUserSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetTransportSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetTransportSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetParentDeviceInformation(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetParentDeviceInformation()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetContainerDeviceInformation(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetContainerDeviceInformation()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Properties(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Properties()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AddedDevice(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AddedDevice()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInformationUpdate(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInformationUpdate()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromEndpointDeviceId(void* endpointDeviceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromEndpointDeviceId(*reinterpret_cast(&endpointDeviceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll2(int32_t sortOrder, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll(*reinterpret_cast(&sortOrder))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll3(int32_t sortOrder, uint32_t endpointFilters, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll(*reinterpret_cast(&sortOrder), *reinterpret_cast(&endpointFilters))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointInterfaceClass(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointInterfaceClass()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetAdditionalPropertiesList(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetAdditionalPropertiesList()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall DeviceMatchesFilter(void* deviceInformation, uint32_t endpointFilters, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().DeviceMatchesFilter(*reinterpret_cast(&deviceInformation), *reinterpret_cast(&endpointFilters))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsNameUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsNameUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsEndpointInformationUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsEndpointInformationUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsDeviceIdentityUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsDeviceIdentityUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsStreamConfigurationUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsStreamConfigurationUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AreFunctionBlocksUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AreFunctionBlocksUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsUserMetadataUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsUserMetadataUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AreAdditionalCapabilitiesUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AreAdditionalCapabilitiesUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInformationUpdate(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInformationUpdate()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Start() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Start(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Stop() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Stop(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EnumeratedEndpointDevices(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().EnumeratedEndpointDevices()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Status(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Status()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall add_Added(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Added(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Added(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Added(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Removed(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Removed(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Removed(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Removed(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Updated(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Updated(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Updated(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Updated(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_EnumerationCompleted(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EnumerationCompleted(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EnumerationCompleted(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EnumerationCompleted(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Stopped(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Stopped(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Stopped(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Stopped(*reinterpret_cast(&token)); - return 0; - } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Create(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Create2(uint32_t endpointFilters, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create(*reinterpret_cast(&endpointFilters))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_Id(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Id()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Name(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Name(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Tag(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Tag()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Tag(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Tag(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsEnabled(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsEnabled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IsEnabled(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IsEnabled(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Initialize(void* endpointConnection) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Initialize(*reinterpret_cast(&endpointConnection)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OnEndpointConnectionOpened() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().OnEndpointConnectionOpened(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ProcessIncomingMessage(void* args, bool* skipFurtherListeners, bool* skipMainMessageReceivedEvent) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().ProcessIncomingMessage(*reinterpret_cast(&args), *skipFurtherListeners, *skipMainMessageReceivedEvent); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Cleanup() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Cleanup(); - return 0; - } - catch (...) { return to_hresult(); } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsReadOnly(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsReadOnly()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Number(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Number()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Number(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Number(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Name(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Name(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsActive(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsActive()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IsActive(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IsActive(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Direction(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Direction()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Direction(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Direction(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_UIHint(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().UIHint()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_UIHint(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().UIHint(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RepresentsMidi10Connection(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RepresentsMidi10Connection()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_RepresentsMidi10Connection(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().RepresentsMidi10Connection(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FirstGroupIndex(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FirstGroupIndex()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_FirstGroupIndex(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().FirstGroupIndex(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_GroupCount(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().GroupCount()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_GroupCount(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().GroupCount(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IncludesGroup(void* group, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IncludesGroup(*reinterpret_cast(&group))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MidiCIMessageVersionFormat(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MidiCIMessageVersionFormat()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MidiCIMessageVersionFormat(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MidiCIMessageVersionFormat(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxSystemExclusive8Streams(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxSystemExclusive8Streams()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MaxSystemExclusive8Streams(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MaxSystemExclusive8Streams(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Index(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Index()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Index(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Index(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DisplayValue(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DisplayValue()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint8_t index, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsValidIndex(uint8_t index, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsValidIndex(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Number(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Number()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Direction(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Direction()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Protocol(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Protocol()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FirstGroupIndex(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FirstGroupIndex()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_GroupCount(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().GroupCount()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IncludesGroup(void* group, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IncludesGroup(*reinterpret_cast(&group))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(uint16_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxDeviceInputBandwidthIn4KBitsPerSecondUnits()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(uint16_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CalculatedMaxDeviceInputBandwidthBitsPerSecond()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CalculatedMaxDeviceOutputBandwidthBitsPerSecond()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AsEquivalentFunctionBlock(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AsEquivalentFunctionBlock()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word2(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word2(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word2(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word3(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word3()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word3(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word3(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, word2, word3, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word2(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word2(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word2(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, word2, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PacketType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PacketType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PeekFirstWord(uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PeekFirstWord()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessagePacket(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessagePacket()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillWords(uint32_t* word0, uint32_t* word1, uint32_t* word2, uint32_t* word3, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillWords(*word0, *word1, *word2, *word3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessageStruct(struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct* message, uint8_t* result) noexcept final try - { - zero_abi(message); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessageStruct(*reinterpret_cast(message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage32(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage32(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage64(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage64(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage96(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage96(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage128(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage128(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillWordArray(uint32_t startIndex, uint32_t __wordsSize, uint32_t* words, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillWordArray(startIndex, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillByteArray(uint32_t startIndex, uint32_t __bytesSize, uint8_t* bytes, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillByteArray(startIndex, array_view(reinterpret_cast(bytes), reinterpret_cast(bytes) + __bytesSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillBuffer(uint32_t byteOffset, void* buffer, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillBuffer(byteOffset, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AppendWordsToList(void* wordList, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AppendWordsToList(*reinterpret_cast const*>(&wordList))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall add_MessageReceived(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().MessageReceived(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_MessageReceived(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().MessageReceived(*reinterpret_cast(&token)); - return 0; - } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_SessionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsOpen(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsOpen()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Connections(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Connections()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection(void* endpointDeviceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection2(void* endpointDeviceId, bool autoReconnect, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId), autoReconnect)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection3(void* endpointDeviceId, bool autoReconnect, void* settings, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId), autoReconnect, *reinterpret_cast(&settings))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall DisconnectEndpointConnection(winrt::guid endpointConnectionId) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DisconnectEndpointConnection(*reinterpret_cast(&endpointConnectionId)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateName(void* newName, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateName(*reinterpret_cast(&newName))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Create(void* sessionName, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create(*reinterpret_cast(&sessionName))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Timestamp(uint64_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Timestamp(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MessageType(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MessageType(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PacketType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PacketType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PeekFirstWord(uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PeekFirstWord()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetAllWords(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetAllWords()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AppendAllMessageWordsToList(void* targetList, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AppendAllMessageWordsToList(*reinterpret_cast const*>(&targetList))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillBuffer(uint32_t byteOffset, void* buffer, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillBuffer(byteOffset, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - }; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - constexpr auto operator|(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiEndpointDeviceInformationFilters const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left ^ right; - return left; - } - constexpr auto operator|(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiSendMessageResults const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left ^ right; - return left; - } - inline MidiChannel::MidiChannel(uint8_t index) : - MidiChannel(impl::call_factory([&](IMidiChannelFactory const& f) { return f.CreateInstance(index); })) - { - } - inline auto MidiChannel::ShortLabel() - { - return impl::call_factory_cast([](IMidiChannelStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiChannel::LongLabel() - { - return impl::call_factory_cast([](IMidiChannelStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiChannel::IsValidIndex(uint8_t index) - { - return impl::call_factory([&](IMidiChannelStatics const& f) { return f.IsValidIndex(index); }); - } - inline auto MidiClock::Now() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.Now(); }); - } - inline auto MidiClock::TimestampConstantSendImmediately() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.TimestampConstantSendImmediately(); }); - } - inline auto MidiClock::TimestampFrequency() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.TimestampFrequency(); }); - } - inline auto MidiClock::ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToNanoseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToMicroseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToMilliseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToSeconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToSeconds(timestampValue); }); - } - inline auto MidiClock::OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByTicks(timestampValue, offsetTicks); }); - } - inline auto MidiClock::OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds); }); - } - inline auto MidiClock::OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds); }); - } - inline auto MidiClock::OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampBySeconds(timestampValue, offsetSeconds); }); - } - inline auto MidiEndpointConnection::GetDeviceSelector() - { - return impl::call_factory_cast([](IMidiEndpointConnectionStatics const& f) { return f.GetDeviceSelector(); }); - } - inline auto MidiEndpointConnection::SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) - { - return impl::call_factory([&](IMidiEndpointConnectionStatics const& f) { return f.SendMessageSucceeded(sendResult); }); - } - inline auto MidiEndpointConnection::SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) - { - return impl::call_factory([&](IMidiEndpointConnectionStatics const& f) { return f.SendMessageFailed(sendResult); }); - } - inline auto MidiEndpointDeviceInformation::CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.CreateFromEndpointDeviceId(endpointDeviceId); }); - } - inline auto MidiEndpointDeviceInformation::FindAll() - { - return impl::call_factory_cast(*)(IMidiEndpointDeviceInformationStatics const&), MidiEndpointDeviceInformation, IMidiEndpointDeviceInformationStatics>([](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(); }); - } - inline auto MidiEndpointDeviceInformation::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(sortOrder); }); - } - inline auto MidiEndpointDeviceInformation::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(sortOrder, endpointFilters); }); - } - inline auto MidiEndpointDeviceInformation::EndpointInterfaceClass() - { - return impl::call_factory_cast([](IMidiEndpointDeviceInformationStatics const& f) { return f.EndpointInterfaceClass(); }); - } - inline auto MidiEndpointDeviceInformation::GetAdditionalPropertiesList() - { - return impl::call_factory_cast(*)(IMidiEndpointDeviceInformationStatics const&), MidiEndpointDeviceInformation, IMidiEndpointDeviceInformationStatics>([](IMidiEndpointDeviceInformationStatics const& f) { return f.GetAdditionalPropertiesList(); }); - } - inline auto MidiEndpointDeviceInformation::DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.DeviceMatchesFilter(deviceInformation, endpointFilters); }); - } - inline auto MidiEndpointDeviceWatcher::Create() - { - return impl::call_factory_cast([](IMidiEndpointDeviceWatcherStatics const& f) { return f.Create(); }); - } - inline auto MidiEndpointDeviceWatcher::Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) - { - return impl::call_factory([&](IMidiEndpointDeviceWatcherStatics const& f) { return f.Create(endpointFilters); }); - } - inline MidiFunctionBlock::MidiFunctionBlock() : - MidiFunctionBlock(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiGroup::MidiGroup(uint8_t index) : - MidiGroup(impl::call_factory([&](IMidiGroupFactory const& f) { return f.CreateInstance(index); })) - { - } - inline auto MidiGroup::ShortLabel() - { - return impl::call_factory_cast([](IMidiGroupStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiGroup::LongLabel() - { - return impl::call_factory_cast([](IMidiGroupStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiGroup::IsValidIndex(uint8_t index) - { - return impl::call_factory([&](IMidiGroupStatics const& f) { return f.IsValidIndex(index); }); - } - inline MidiMessage128::MidiMessage128() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage128::MidiMessage128(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, word2, word3, baseInterface, innerInterface); }); - } - inline MidiMessage128::MidiMessage128(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage128::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage128Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage32::MidiMessage32() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage32Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage32::MidiMessage32(uint64_t timestamp, uint32_t word0) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage32Factory const& f) { return f.CreateInstance2(timestamp, word0, baseInterface, innerInterface); }); - } - inline auto MidiMessage32::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage32Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage64::MidiMessage64() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage64::MidiMessage64(uint64_t timestamp, uint32_t word0, uint32_t word1) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, baseInterface, innerInterface); }); - } - inline MidiMessage64::MidiMessage64(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage64::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage64Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage96::MidiMessage96() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage96::MidiMessage96(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, word2, baseInterface, innerInterface); }); - } - inline MidiMessage96::MidiMessage96(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage96::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage96Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline auto MidiSession::Create(param::hstring const& sessionName) - { - return impl::call_factory([&](IMidiSessionStatics const& f) { return f.Create(sessionName); }); - } - template - struct MidiMessage128T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage128; - protected: - MidiMessage128T() - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage128T(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, word2, word3, *this, this->m_inner); }); - } - MidiMessage128T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; - template - struct MidiMessage32T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage32; - protected: - MidiMessage32T() - { - impl::call_factory([&](IMidiMessage32Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage32T(uint64_t timestamp, uint32_t word0) - { - impl::call_factory([&](IMidiMessage32Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, *this, this->m_inner); }); - } - }; - template - struct MidiMessage64T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage64; - protected: - MidiMessage64T() - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage64T(uint64_t timestamp, uint32_t word0, uint32_t word1) - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, *this, this->m_inner); }); - } - MidiMessage64T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; - template - struct MidiMessage96T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage96; - protected: - MidiMessage96T() - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage96T(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, word2, *this, this->m_inner); }); - } - MidiMessage96T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h deleted file mode 100644 index ed9a955bf..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h +++ /dev/null @@ -1,1524 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_0_H -WINRT_EXPORT namespace winrt::Windows::Devices::Enumeration -{ - struct DeviceInformation; - struct DeviceInformationUpdate; - enum class DeviceWatcherStatus : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct EventRegistrationToken; - struct IMemoryBuffer; - template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; -} -WINRT_EXPORT namespace winrt::Windows::Foundation::Collections -{ - template struct WINRT_IMPL_EMPTY_BASES IIterable; - template struct WINRT_IMPL_EMPTY_BASES IVector; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - enum class MidiEndpointDeviceInformationFilters : uint32_t - { - IncludeClientUmpFormatNative = 0x1, - IncludeClientByteFormatNative = 0x2, - IncludeVirtualDeviceResponder = 0x100, - IncludeDiagnosticLoopback = 0x10000, - IncludeDiagnosticPing = 0x20000, - AllTypicalEndpoints = 0x3, - }; - enum class MidiEndpointDeviceInformationSortOrder : int32_t - { - None = 0, - Name = 1, - EndpointDeviceId = 2, - DeviceInstanceId = 3, - ContainerThenName = 11, - ContainerThenEndpointDeviceId = 12, - ContainerThenDeviceInstanceId = 13, - TransportMnemonicThenName = 21, - TransportMnemonicThenEndpointDeviceId = 22, - TransportMnemonicThenDeviceInstanceId = 23, - }; - enum class MidiEndpointDevicePurpose : int32_t - { - NormalMessageEndpoint = 0, - VirtualDeviceResponder = 100, - InBoxGeneralMidiSynth = 400, - DiagnosticLoopback = 500, - DiagnosticPing = 510, - }; - enum class MidiEndpointNativeDataFormat : int32_t - { - Unknown = 0, - ByteFormat = 1, - UniversalMidiPacketFormat = 2, - }; - enum class MidiFunctionBlockDirection : int32_t - { - Undefined = 0, - BlockInput = 1, - BlockOutput = 2, - Bidirectional = 3, - }; - enum class MidiFunctionBlockRepresentsMidi10Connection : int32_t - { - Not10 = 0, - YesBandwidthUnrestricted = 1, - YesBandwidthRestricted = 2, - Reserved = 3, - }; - enum class MidiFunctionBlockUIHint : int32_t - { - Unknown = 0, - Receiver = 1, - Sender = 2, - Bidirectional = 3, - }; - enum class MidiGroupTerminalBlockDirection : int32_t - { - Bidirectional = 0, - BlockInput = 1, - BlockOutput = 2, - }; - enum class MidiGroupTerminalBlockProtocol : int32_t - { - Unknown = 0, - Midi1Message64 = 1, - Midi1Message64WithJitterReduction = 2, - Midi1Message128 = 3, - Midi1Message128WithJitterReduction = 4, - Midi2 = 17, - Midi2WithJitterReduction = 18, - }; - enum class MidiMessageType : int32_t - { - UtilityMessage32 = 0, - SystemCommon32 = 1, - Midi1ChannelVoice32 = 2, - DataMessage64 = 3, - Midi2ChannelVoice64 = 4, - DataMessage128 = 5, - FutureReserved632 = 6, - FutureReserved732 = 7, - FutureReserved864 = 8, - FutureReserved964 = 9, - FutureReservedA64 = 10, - FutureReservedB96 = 11, - FutureReservedC96 = 12, - FlexData128 = 13, - FutureReservedE128 = 14, - Stream128 = 15, - }; - enum class MidiPacketType : int32_t - { - UnknownOrInvalid = 0, - UniversalMidiPacket32 = 1, - UniversalMidiPacket64 = 2, - UniversalMidiPacket96 = 3, - UniversalMidiPacket128 = 4, - }; - enum class MidiProtocol : int32_t - { - Default = 0, - Midi1 = 1, - Midi2 = 2, - }; - enum class MidiSendMessageResults : uint32_t - { - Succeeded = 0x80000000, - Failed = 0x10000000, - BufferFull = 0x10000, - EndpointConnectionClosedOrInvalid = 0x40000, - InvalidMessageTypeForWordCount = 0x100000, - InvalidMessageOther = 0x200000, - DataIndexOutOfRange = 0x400000, - TimestampOutOfRange = 0x800000, - MessageListPartiallyProcessed = 0xf00000, - }; - struct IMidiChannel; - struct IMidiChannelFactory; - struct IMidiChannelStatics; - struct IMidiClock; - struct IMidiClockStatics; - struct IMidiEndpointConnection; - struct IMidiEndpointConnectionSettings; - struct IMidiEndpointConnectionSource; - struct IMidiEndpointConnectionStatics; - struct IMidiEndpointDeviceInformation; - struct IMidiEndpointDeviceInformationAddedEventArgs; - struct IMidiEndpointDeviceInformationRemovedEventArgs; - struct IMidiEndpointDeviceInformationStatics; - struct IMidiEndpointDeviceInformationUpdatedEventArgs; - struct IMidiEndpointDeviceWatcher; - struct IMidiEndpointDeviceWatcherStatics; - struct IMidiEndpointMessageProcessingPlugin; - struct IMidiFunctionBlock; - struct IMidiGroup; - struct IMidiGroupFactory; - struct IMidiGroupStatics; - struct IMidiGroupTerminalBlock; - struct IMidiMessage128; - struct IMidiMessage128Factory; - struct IMidiMessage128Statics; - struct IMidiMessage32; - struct IMidiMessage32Factory; - struct IMidiMessage32Statics; - struct IMidiMessage64; - struct IMidiMessage64Factory; - struct IMidiMessage64Statics; - struct IMidiMessage96; - struct IMidiMessage96Factory; - struct IMidiMessage96Statics; - struct IMidiMessageReceivedEventArgs; - struct IMidiMessageReceivedEventSource; - struct IMidiSession; - struct IMidiSessionStatics; - struct IMidiUniversalPacket; - struct MidiChannel; - struct MidiClock; - struct MidiEndpointConnection; - struct MidiEndpointDeviceInformation; - struct MidiEndpointDeviceInformationAddedEventArgs; - struct MidiEndpointDeviceInformationRemovedEventArgs; - struct MidiEndpointDeviceInformationUpdatedEventArgs; - struct MidiEndpointDeviceWatcher; - struct MidiFunctionBlock; - struct MidiGroup; - struct MidiGroupTerminalBlock; - struct MidiMessage128; - struct MidiMessage32; - struct MidiMessage64; - struct MidiMessage96; - struct MidiMessageReceivedEventArgs; - struct MidiSession; - struct MidiDeclaredDeviceIdentity; - struct MidiDeclaredEndpointInfo; - struct MidiDeclaredStreamConfiguration; - struct MidiEndpointTransportSuppliedInfo; - struct MidiEndpointUserSuppliedInfo; - struct MidiMessageStruct; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiChannel"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiClock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointConnection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformation"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationAddedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationRemovedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationUpdatedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceWatcher"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroup"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage128"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage32"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage64"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage96"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiSession"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationFilters"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationSortOrder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDevicePurpose"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointNativeDataFormat"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockDirection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockRepresentsMidi10Connection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockUIHint"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlockDirection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlockProtocol"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageType"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiPacketType"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiProtocol"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiSendMessageResults"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredDeviceIdentity"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredEndpointInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredStreamConfiguration"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointTransportSuppliedInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointUserSuppliedInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageStruct"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannel"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannelFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannelStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiClock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiClockStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionSettings"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionSource"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformation"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationAddedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationRemovedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationUpdatedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceWatcher"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceWatcherStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointMessageProcessingPlugin"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiFunctionBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroup"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupTerminalBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessageReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessageReceivedEventSource"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiSession"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiSessionStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiUniversalPacket"; - template <> inline constexpr guid guid_v{ 0x34DC7F81,0xF0C2,0x50D4,{ 0xBE,0xDF,0x42,0xFA,0xB9,0xA1,0xCE,0xF8 } }; // 34DC7F81-F0C2-50D4-BEDF-42FAB9A1CEF8 - template <> inline constexpr guid guid_v{ 0x02A0FF18,0xFE96,0x5193,{ 0x98,0xEF,0xD9,0x67,0x58,0xCD,0x68,0xD4 } }; // 02A0FF18-FE96-5193-98EF-D96758CD68D4 - template <> inline constexpr guid guid_v{ 0xEC86B553,0xADB5,0x5330,{ 0x99,0x60,0x1D,0x8B,0x3A,0x35,0xB0,0xC6 } }; // EC86B553-ADB5-5330-9960-1D8B3A35B0C6 - template <> inline constexpr guid guid_v{ 0xF065F78B,0xE4DC,0x55A7,{ 0x96,0x97,0x63,0x59,0xD0,0xEC,0xD7,0x3A } }; // F065F78B-E4DC-55A7-9697-6359D0ECD73A - template <> inline constexpr guid guid_v{ 0xF672B9EB,0xD41D,0x5CDD,{ 0xAF,0x7B,0x64,0x29,0x94,0x0B,0xE3,0xE7 } }; // F672B9EB-D41D-5CDD-AF7B-6429940BE3E7 - template <> inline constexpr guid guid_v{ 0x452EECE5,0x4FB8,0x5C0C,{ 0xB8,0xDA,0x46,0x70,0x30,0xBD,0xAC,0xE2 } }; // 452EECE5-4FB8-5C0C-B8DA-467030BDACE2 - template <> inline constexpr guid guid_v{ 0x65736736,0x35F3,0x421C,{ 0xA6,0x83,0x3A,0x03,0x4A,0xD0,0xDC,0xC2 } }; // 65736736-35F3-421C-A683-3A034AD0DCC2 - template <> inline constexpr guid guid_v{ 0x44385CDD,0xB64C,0x4195,{ 0x8F,0xAA,0x8A,0x61,0xFC,0x95,0x2A,0x23 } }; // 44385CDD-B64C-4195-8FAA-8A61FC952A23 - template <> inline constexpr guid guid_v{ 0x99355145,0xBC11,0x5B85,{ 0x9B,0x23,0x1B,0x58,0x26,0x6F,0x46,0x30 } }; // 99355145-BC11-5B85-9B23-1B58266F4630 - template <> inline constexpr guid guid_v{ 0xFB4A1253,0x4429,0x5765,{ 0x99,0xDE,0xFF,0x76,0xBB,0xED,0x58,0x8B } }; // FB4A1253-4429-5765-99DE-FF76BBED588B - template <> inline constexpr guid guid_v{ 0xECF028D0,0xEECC,0x5F99,{ 0x8A,0xDF,0x8F,0x29,0xB7,0x0B,0x29,0x6C } }; // ECF028D0-EECC-5F99-8ADF-8F29B70B296C - template <> inline constexpr guid guid_v{ 0x84D3DDE4,0xE6F8,0x5BA5,{ 0x97,0xB4,0xB8,0xD4,0xC5,0x0A,0xFD,0x9F } }; // 84D3DDE4-E6F8-5BA5-97B4-B8D4C50AFD9F - template <> inline constexpr guid guid_v{ 0x1D2C9C0A,0x428E,0x5F75,{ 0x89,0xD5,0x00,0xC3,0xA3,0x79,0x4D,0x88 } }; // 1D2C9C0A-428E-5F75-89D5-00C3A3794D88 - template <> inline constexpr guid guid_v{ 0xAA4B1E3A,0x04B6,0x5560,{ 0xBC,0x2B,0xCF,0xD1,0x64,0xC0,0xF1,0xDE } }; // AA4B1E3A-04B6-5560-BC2B-CFD164C0F1DE - template <> inline constexpr guid guid_v{ 0x5CBF4CAC,0x3409,0x5A57,{ 0x9C,0x47,0xFC,0xA8,0x3C,0x69,0xDB,0xE3 } }; // 5CBF4CAC-3409-5A57-9C47-FCA83C69DBE3 - template <> inline constexpr guid guid_v{ 0xF28F646C,0x6BE6,0x5E13,{ 0x8A,0x78,0x7F,0xD1,0xB8,0x5A,0x7E,0x95 } }; // F28F646C-6BE6-5E13-8A78-7FD1B85A7E95 - template <> inline constexpr guid guid_v{ 0x198D5EF2,0x313F,0x41AF,{ 0x92,0x59,0xA4,0x29,0x97,0xE0,0x60,0xF0 } }; // 198D5EF2-313F-41AF-9259-A42997E060F0 - template <> inline constexpr guid guid_v{ 0xEB43C123,0x5382,0x5C71,{ 0x8D,0x1B,0x22,0x3B,0x8F,0x76,0xC2,0x3B } }; // EB43C123-5382-5C71-8D1B-223B8F76C23B - template <> inline constexpr guid guid_v{ 0xD2FE009D,0x8542,0x5AE7,{ 0xA8,0xF8,0x4F,0x28,0x14,0x5E,0x3A,0x8F } }; // D2FE009D-8542-5AE7-A8F8-4F28145E3A8F - template <> inline constexpr guid guid_v{ 0xEC11AC98,0x616B,0x545C,{ 0xA0,0x6C,0x95,0xB3,0x91,0x5A,0xDB,0x41 } }; // EC11AC98-616B-545C-A06C-95B3915ADB41 - template <> inline constexpr guid guid_v{ 0x08071F7E,0xBA0B,0x5020,{ 0x8E,0x23,0xBC,0x81,0x9B,0x24,0xA4,0xE2 } }; // 08071F7E-BA0B-5020-8E23-BC819B24A4E2 - template <> inline constexpr guid guid_v{ 0x3DBA035F,0xE298,0x5F22,{ 0xB0,0x0B,0x51,0xC7,0x2D,0xCF,0xF7,0x1F } }; // 3DBA035F-E298-5F22-B00B-51C72DCFF71F - template <> inline constexpr guid guid_v{ 0xEFB9C9BB,0x4397,0x538A,{ 0xB1,0x7F,0xBC,0x83,0x00,0x12,0xE1,0xEA } }; // EFB9C9BB-4397-538A-B17F-BC830012E1EA - template <> inline constexpr guid guid_v{ 0x6FB629DF,0xE277,0x5EE8,{ 0xB7,0xB8,0x13,0xA3,0x52,0x8B,0xA2,0x55 } }; // 6FB629DF-E277-5EE8-B7B8-13A3528BA255 - template <> inline constexpr guid guid_v{ 0x722B7533,0x8EFB,0x5CA9,{ 0x93,0x99,0x74,0xEE,0x2D,0x8D,0x53,0x8C } }; // 722B7533-8EFB-5CA9-9399-74EE2D8D538C - template <> inline constexpr guid guid_v{ 0x1C2EC0A7,0xE093,0x5FF0,{ 0xA0,0x9B,0x77,0x68,0x6A,0x75,0x64,0x18 } }; // 1C2EC0A7-E093-5FF0-A09B-77686A756418 - template <> inline constexpr guid guid_v{ 0x47D7FD0F,0x7945,0x5283,{ 0xB1,0x1B,0xA4,0xF5,0xCF,0xBB,0xF6,0xF2 } }; // 47D7FD0F-7945-5283-B11B-A4F5CFBBF6F2 - template <> inline constexpr guid guid_v{ 0x52D01ECA,0x60AC,0x5229,{ 0xAA,0xC2,0xAF,0xA7,0x2E,0xF1,0x40,0x45 } }; // 52D01ECA-60AC-5229-AAC2-AFA72EF14045 - template <> inline constexpr guid guid_v{ 0x62885C57,0x325C,0x5A7C,{ 0xB1,0x8F,0xDE,0x36,0x0A,0xC3,0x77,0xBD } }; // 62885C57-325C-5A7C-B18F-DE360AC377BD - template <> inline constexpr guid guid_v{ 0x10B85E46,0xC6B8,0x593A,{ 0x93,0x85,0x11,0xAE,0x2F,0xCE,0xB9,0xF1 } }; // 10B85E46-C6B8-593A-9385-11AE2FCEB9F1 - template <> inline constexpr guid guid_v{ 0xA75E98A2,0xC6AC,0x5333,{ 0x89,0x65,0x97,0xCD,0xA8,0x80,0x85,0x2E } }; // A75E98A2-C6AC-5333-8965-97CDA880852E - template <> inline constexpr guid guid_v{ 0x82B6C4F8,0xC292,0x50DA,{ 0xBD,0xDF,0xC1,0x18,0x6D,0x3B,0x9E,0xE6 } }; // 82B6C4F8-C292-50DA-BDDF-C1186D3B9EE6 - template <> inline constexpr guid guid_v{ 0x4AC4FE62,0x41C9,0x5605,{ 0x9D,0xB8,0xDE,0xD7,0xCB,0x44,0xB8,0x59 } }; // 4AC4FE62-41C9-5605-9DB8-DED7CB44B859 - template <> inline constexpr guid guid_v{ 0x80451AFD,0xE703,0x5790,{ 0x9C,0xF7,0x4A,0x17,0xAD,0x1E,0x47,0x3B } }; // 80451AFD-E703-5790-9CF7-4A17AD1E473B - template <> inline constexpr guid guid_v{ 0x190C0204,0x845B,0x5A20,{ 0xB9,0x5E,0x91,0x78,0xA8,0xDD,0xAF,0xC6 } }; // 190C0204-845B-5A20-B95E-9178A8DDAFC6 - template <> inline constexpr guid guid_v{ 0x101CEB4B,0xCCA4,0x48A1,{ 0xB9,0x1E,0x60,0x02,0xB9,0x28,0x61,0x3C } }; // 101CEB4B-CCA4-48A1-B91E-6002B928613C - template <> inline constexpr guid guid_v{ 0x47D3E2F0,0xB352,0x5D13,{ 0x88,0x37,0xE4,0x8F,0xF4,0x84,0x5F,0xA0 } }; // 47D3E2F0-B352-5D13-8837-E48FF4845FA0 - template <> inline constexpr guid guid_v{ 0x8678C907,0x163D,0x5D86,{ 0xBF,0xC7,0xFE,0x80,0x04,0x63,0x61,0x86 } }; // 8678C907-163D-5D86-BFC7-FE8004636186 - template <> inline constexpr guid guid_v{ 0x2EB5DF8A,0xD751,0x4997,{ 0xBF,0x96,0xBA,0x9A,0x53,0x1F,0xD5,0xFF } }; // 2EB5DF8A-D751-4997-BF96-BA9A531FD5FF - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiClock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiSession; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Index(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Index(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_DisplayValue(uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall IsValidIndex(uint8_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Now(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_TimestampConstantSendImmediately(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_TimestampFrequency(uint64_t*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToNanoseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToMicroseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToMilliseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToSeconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByTicks(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByMicroseconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByMilliseconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampBySeconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ConnectionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_ConnectedEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_Tag(void**) noexcept = 0; - virtual int32_t __stdcall put_Tag(void*) noexcept = 0; - virtual int32_t __stdcall get_LogMessageDataValidationErrorDetails(bool*) noexcept = 0; - virtual int32_t __stdcall put_LogMessageDataValidationErrorDetails(bool) noexcept = 0; - virtual int32_t __stdcall get_Settings(void**) noexcept = 0; - virtual int32_t __stdcall get_IsOpen(bool*) noexcept = 0; - virtual int32_t __stdcall Open(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsAutoReconnectEnabled(bool*) noexcept = 0; - virtual int32_t __stdcall get_MessageProcessingPlugins(void**) noexcept = 0; - virtual int32_t __stdcall AddMessageProcessingPlugin(void*) noexcept = 0; - virtual int32_t __stdcall RemoveMessageProcessingPlugin(winrt::guid) noexcept = 0; - virtual int32_t __stdcall SendSingleMessagePacket(void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageStruct(uint64_t, uint8_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct const&, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWordArray(uint64_t, uint32_t, uint8_t, uint32_t, uint32_t*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords(uint64_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords2(uint64_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords3(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords4(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageBuffer(uint64_t, uint32_t, uint8_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesWordList(uint64_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesWordArray(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesPacketList(void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesStructList(uint64_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesStructArray(uint64_t, uint32_t, uint32_t, uint32_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesBuffer(uint64_t, uint32_t, uint32_t, void*, uint32_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SettingsJson(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall add_EndpointDeviceDisconnected(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EndpointDeviceDisconnected(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_EndpointDeviceReconnected(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EndpointDeviceReconnected(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall GetDeviceSelector(void**) noexcept = 0; - virtual int32_t __stdcall SendMessageSucceeded(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall SendMessageFailed(uint32_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_ContainerId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_DeviceInstanceId(void**) noexcept = 0; - virtual int32_t __stdcall get_EndpointPurpose(int32_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredEndpointInfoLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredDeviceIdentityLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredStreamConfiguration(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredStreamConfigurationLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredFunctionBlocks(void**) noexcept = 0; - virtual int32_t __stdcall get_DeclaredFunctionBlocksLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetGroupTerminalBlocks(void**) noexcept = 0; - virtual int32_t __stdcall GetUserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall GetTransportSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall GetParentDeviceInformation(void**) noexcept = 0; - virtual int32_t __stdcall GetContainerDeviceInformation(void**) noexcept = 0; - virtual int32_t __stdcall get_Properties(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AddedDevice(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_DeviceInformationUpdate(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromEndpointDeviceId(void*, void**) noexcept = 0; - virtual int32_t __stdcall FindAll(void**) noexcept = 0; - virtual int32_t __stdcall FindAll2(int32_t, void**) noexcept = 0; - virtual int32_t __stdcall FindAll3(int32_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall get_EndpointInterfaceClass(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall GetAdditionalPropertiesList(void**) noexcept = 0; - virtual int32_t __stdcall DeviceMatchesFilter(void*, uint32_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_IsNameUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsEndpointInformationUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsDeviceIdentityUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsStreamConfigurationUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_AreFunctionBlocksUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsUserMetadataUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_AreAdditionalCapabilitiesUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_DeviceInformationUpdate(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Start() noexcept = 0; - virtual int32_t __stdcall Stop() noexcept = 0; - virtual int32_t __stdcall get_EnumeratedEndpointDevices(void**) noexcept = 0; - virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; - virtual int32_t __stdcall add_Added(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Added(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Removed(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Removed(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Updated(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Updated(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_EnumerationCompleted(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EnumerationCompleted(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Stopped(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Stopped(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Create(void**) noexcept = 0; - virtual int32_t __stdcall Create2(uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Id(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall put_Name(void*) noexcept = 0; - virtual int32_t __stdcall get_Tag(void**) noexcept = 0; - virtual int32_t __stdcall put_Tag(void*) noexcept = 0; - virtual int32_t __stdcall get_IsEnabled(bool*) noexcept = 0; - virtual int32_t __stdcall put_IsEnabled(bool) noexcept = 0; - virtual int32_t __stdcall Initialize(void*) noexcept = 0; - virtual int32_t __stdcall OnEndpointConnectionOpened() noexcept = 0; - virtual int32_t __stdcall ProcessIncomingMessage(void*, bool*, bool*) noexcept = 0; - virtual int32_t __stdcall Cleanup() noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsReadOnly(bool*) noexcept = 0; - virtual int32_t __stdcall get_Number(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Number(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall put_Name(void*) noexcept = 0; - virtual int32_t __stdcall get_IsActive(bool*) noexcept = 0; - virtual int32_t __stdcall put_IsActive(bool) noexcept = 0; - virtual int32_t __stdcall get_Direction(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_Direction(int32_t) noexcept = 0; - virtual int32_t __stdcall get_UIHint(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_UIHint(int32_t) noexcept = 0; - virtual int32_t __stdcall get_RepresentsMidi10Connection(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_RepresentsMidi10Connection(int32_t) noexcept = 0; - virtual int32_t __stdcall get_FirstGroupIndex(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_FirstGroupIndex(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_GroupCount(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_GroupCount(uint8_t) noexcept = 0; - virtual int32_t __stdcall IncludesGroup(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_MidiCIMessageVersionFormat(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_MidiCIMessageVersionFormat(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_MaxSystemExclusive8Streams(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_MaxSystemExclusive8Streams(uint8_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Index(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Index(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_DisplayValue(uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall IsValidIndex(uint8_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Number(uint8_t*) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_Direction(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_Protocol(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_FirstGroupIndex(uint8_t*) noexcept = 0; - virtual int32_t __stdcall get_GroupCount(uint8_t*) noexcept = 0; - virtual int32_t __stdcall IncludesGroup(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(uint16_t*) noexcept = 0; - virtual int32_t __stdcall get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(uint16_t*) noexcept = 0; - virtual int32_t __stdcall get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(uint32_t*) noexcept = 0; - virtual int32_t __stdcall get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(uint32_t*) noexcept = 0; - virtual int32_t __stdcall AsEquivalentFunctionBlock(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word2(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word2(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word3(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word3(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word2(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word2(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_PacketType(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_MessageType(int32_t*) noexcept = 0; - virtual int32_t __stdcall PeekFirstWord(uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetMessagePacket(void**) noexcept = 0; - virtual int32_t __stdcall FillWords(uint32_t*, uint32_t*, uint32_t*, uint32_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillMessageStruct(struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillMessage32(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage64(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage96(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage128(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillWordArray(uint32_t, uint32_t, uint32_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillByteArray(uint32_t, uint32_t, uint8_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillBuffer(uint32_t, void*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall AppendWordsToList(void*, uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall add_MessageReceived(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_MessageReceived(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SessionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_IsOpen(bool*) noexcept = 0; - virtual int32_t __stdcall get_Connections(void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection(void*, void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection2(void*, bool, void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection3(void*, bool, void*, void**) noexcept = 0; - virtual int32_t __stdcall DisconnectEndpointConnection(winrt::guid) noexcept = 0; - virtual int32_t __stdcall UpdateName(void*, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Create(void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall put_Timestamp(uint64_t) noexcept = 0; - virtual int32_t __stdcall get_MessageType(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_MessageType(int32_t) noexcept = 0; - virtual int32_t __stdcall get_PacketType(int32_t*) noexcept = 0; - virtual int32_t __stdcall PeekFirstWord(uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetAllWords(void**) noexcept = 0; - virtual int32_t __stdcall AppendAllMessageWordsToList(void*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillBuffer(uint32_t, void*, uint8_t*) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannel - { - [[nodiscard]] auto Index() const; - auto Index(uint8_t value) const; - [[nodiscard]] auto DisplayValue() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannel; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory - { - auto CreateInstance(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto IsValidIndex(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiClock - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiClock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics - { - [[nodiscard]] auto Now() const; - [[nodiscard]] auto TimestampConstantSendImmediately() const; - [[nodiscard]] auto TimestampFrequency() const; - auto ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToSeconds(uint64_t timestampValue) const; - auto OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) const; - auto OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) const; - auto OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) const; - auto OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection - { - [[nodiscard]] auto ConnectionId() const; - [[nodiscard]] auto ConnectedEndpointDeviceId() const; - [[nodiscard]] auto Tag() const; - auto Tag(winrt::Windows::Foundation::IInspectable const& value) const; - [[nodiscard]] auto LogMessageDataValidationErrorDetails() const; - auto LogMessageDataValidationErrorDetails(bool value) const; - [[nodiscard]] auto Settings() const; - [[nodiscard]] auto IsOpen() const; - auto Open() const; - [[nodiscard]] auto IsAutoReconnectEnabled() const; - [[nodiscard]] auto MessageProcessingPlugins() const; - auto AddMessageProcessingPlugin(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin const& plugin) const; - auto RemoveMessageProcessingPlugin(winrt::guid const& id) const; - auto SendSingleMessagePacket(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket const& message) const; - auto SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - auto SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, array_view words) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) const; - auto SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - auto SendMultipleMessagesWordList(uint64_t timestamp, param::iterable const& words) const; - auto SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, array_view words) const; - auto SendMultipleMessagesPacketList(param::iterable const& messages) const; - auto SendMultipleMessagesStructList(uint64_t timestamp, param::iterable const& messages) const; - auto SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, array_view messages) const; - auto SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings - { - [[nodiscard]] auto SettingsJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource - { - auto EndpointDeviceDisconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EndpointDeviceDisconnected_revoker = impl::event_revoker::remove_EndpointDeviceDisconnected>; - [[nodiscard]] auto EndpointDeviceDisconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EndpointDeviceDisconnected(winrt::event_token const& token) const noexcept; - auto EndpointDeviceReconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EndpointDeviceReconnected_revoker = impl::event_revoker::remove_EndpointDeviceReconnected>; - [[nodiscard]] auto EndpointDeviceReconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EndpointDeviceReconnected(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics - { - auto GetDeviceSelector() const; - auto SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const; - auto SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto ContainerId() const; - [[nodiscard]] auto DeviceInstanceId() const; - [[nodiscard]] auto EndpointPurpose() const; - auto GetDeclaredEndpointInfo() const; - [[nodiscard]] auto DeclaredEndpointInfoLastUpdateTime() const; - auto GetDeclaredDeviceIdentity() const; - [[nodiscard]] auto DeclaredDeviceIdentityLastUpdateTime() const; - auto GetDeclaredStreamConfiguration() const; - [[nodiscard]] auto DeclaredStreamConfigurationLastUpdateTime() const; - auto GetDeclaredFunctionBlocks() const; - [[nodiscard]] auto DeclaredFunctionBlocksLastUpdateTime() const; - auto GetGroupTerminalBlocks() const; - auto GetUserSuppliedInfo() const; - auto GetTransportSuppliedInfo() const; - auto GetParentDeviceInformation() const; - auto GetContainerDeviceInformation() const; - [[nodiscard]] auto Properties() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs - { - [[nodiscard]] auto AddedDevice() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto DeviceInformationUpdate() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics - { - auto CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) const; - auto FindAll() const; - auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) const; - auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const; - [[nodiscard]] auto EndpointInterfaceClass() const; - auto GetAdditionalPropertiesList() const; - auto DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto IsNameUpdated() const; - [[nodiscard]] auto IsEndpointInformationUpdated() const; - [[nodiscard]] auto IsDeviceIdentityUpdated() const; - [[nodiscard]] auto IsStreamConfigurationUpdated() const; - [[nodiscard]] auto AreFunctionBlocksUpdated() const; - [[nodiscard]] auto IsUserMetadataUpdated() const; - [[nodiscard]] auto AreAdditionalCapabilitiesUpdated() const; - [[nodiscard]] auto DeviceInformationUpdate() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher - { - auto Start() const; - auto Stop() const; - [[nodiscard]] auto EnumeratedEndpointDevices() const; - [[nodiscard]] auto Status() const; - auto Added(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Added_revoker = impl::event_revoker::remove_Added>; - [[nodiscard]] auto Added(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Added(winrt::event_token const& token) const noexcept; - auto Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Removed_revoker = impl::event_revoker::remove_Removed>; - [[nodiscard]] auto Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Removed(winrt::event_token const& token) const noexcept; - auto Updated(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Updated_revoker = impl::event_revoker::remove_Updated>; - [[nodiscard]] auto Updated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Updated(winrt::event_token const& token) const noexcept; - auto EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EnumerationCompleted_revoker = impl::event_revoker::remove_EnumerationCompleted>; - [[nodiscard]] auto EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EnumerationCompleted(winrt::event_token const& token) const noexcept; - auto Stopped(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Stopped_revoker = impl::event_revoker::remove_Stopped>; - [[nodiscard]] auto Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Stopped(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics - { - auto Create() const; - auto Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin - { - [[nodiscard]] auto Id() const; - [[nodiscard]] auto Name() const; - auto Name(param::hstring const& value) const; - [[nodiscard]] auto Tag() const; - auto Tag(winrt::Windows::Foundation::IInspectable const& value) const; - [[nodiscard]] auto IsEnabled() const; - auto IsEnabled(bool value) const; - auto Initialize(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource const& endpointConnection) const; - auto OnEndpointConnectionOpened() const; - auto ProcessIncomingMessage(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageReceivedEventArgs const& args, bool& skipFurtherListeners, bool& skipMainMessageReceivedEvent) const; - auto Cleanup() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock - { - [[nodiscard]] auto IsReadOnly() const; - [[nodiscard]] auto Number() const; - auto Number(uint8_t value) const; - [[nodiscard]] auto Name() const; - auto Name(param::hstring const& value) const; - [[nodiscard]] auto IsActive() const; - auto IsActive(bool value) const; - [[nodiscard]] auto Direction() const; - auto Direction(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& value) const; - [[nodiscard]] auto UIHint() const; - auto UIHint(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& value) const; - [[nodiscard]] auto RepresentsMidi10Connection() const; - auto RepresentsMidi10Connection(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& value) const; - [[nodiscard]] auto FirstGroupIndex() const; - auto FirstGroupIndex(uint8_t value) const; - [[nodiscard]] auto GroupCount() const; - auto GroupCount(uint8_t value) const; - auto IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const; - [[nodiscard]] auto MidiCIMessageVersionFormat() const; - auto MidiCIMessageVersionFormat(uint8_t value) const; - [[nodiscard]] auto MaxSystemExclusive8Streams() const; - auto MaxSystemExclusive8Streams(uint8_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroup - { - [[nodiscard]] auto Index() const; - auto Index(uint8_t value) const; - [[nodiscard]] auto DisplayValue() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroup; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory - { - auto CreateInstance(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto IsValidIndex(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock - { - [[nodiscard]] auto Number() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto Direction() const; - [[nodiscard]] auto Protocol() const; - [[nodiscard]] auto FirstGroupIndex() const; - [[nodiscard]] auto GroupCount() const; - auto IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const; - [[nodiscard]] auto MaxDeviceInputBandwidthIn4KBitsPerSecondUnits() const; - [[nodiscard]] auto MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits() const; - [[nodiscard]] auto CalculatedMaxDeviceInputBandwidthBitsPerSecond() const; - [[nodiscard]] auto CalculatedMaxDeviceOutputBandwidthBitsPerSecond() const; - auto AsEquivalentFunctionBlock() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - [[nodiscard]] auto Word2() const; - auto Word2(uint32_t value) const; - [[nodiscard]] auto Word3() const; - auto Word3(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - [[nodiscard]] auto Word2() const; - auto Word2(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs - { - [[nodiscard]] auto Timestamp() const; - [[nodiscard]] auto PacketType() const; - [[nodiscard]] auto MessageType() const; - auto PeekFirstWord() const; - auto GetMessagePacket() const; - auto FillWords(uint32_t& word0, uint32_t& word1, uint32_t& word2, uint32_t& word3) const; - auto FillMessageStruct(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct& message) const; - auto FillMessage32(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32 const& message) const; - auto FillMessage64(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64 const& message) const; - auto FillMessage96(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96 const& message) const; - auto FillMessage128(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128 const& message) const; - auto FillWordArray(uint32_t startIndex, array_view words) const; - auto FillByteArray(uint32_t startIndex, array_view bytes) const; - auto FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - auto AppendWordsToList(param::vector const& wordList) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource - { - auto MessageReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using MessageReceived_revoker = impl::event_revoker::remove_MessageReceived>; - [[nodiscard]] auto MessageReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto MessageReceived(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiSession - { - [[nodiscard]] auto SessionId() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto IsOpen() const; - [[nodiscard]] auto Connections() const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId) const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect) const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect, winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings const& settings) const; - auto DisconnectEndpointConnection(winrt::guid const& endpointConnectionId) const; - auto UpdateName(param::hstring const& newName) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiSession; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics - { - auto Create(param::hstring const& sessionName) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket - { - [[nodiscard]] auto Timestamp() const; - auto Timestamp(uint64_t value) const; - [[nodiscard]] auto MessageType() const; - auto MessageType(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& value) const; - [[nodiscard]] auto PacketType() const; - auto PeekFirstWord() const; - auto GetAllWords() const; - auto AppendAllMessageWordsToList(param::vector const& targetList) const; - auto FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity - { - uint8_t SystemExclusiveIdByte1; - uint8_t SystemExclusiveIdByte2; - uint8_t SystemExclusiveIdByte3; - uint8_t DeviceFamilyLsb; - uint8_t DeviceFamilyMsb; - uint8_t DeviceFamilyModelNumberLsb; - uint8_t DeviceFamilyModelNumberMsb; - uint8_t SoftwareRevisionLevelByte1; - uint8_t SoftwareRevisionLevelByte2; - uint8_t SoftwareRevisionLevelByte3; - uint8_t SoftwareRevisionLevelByte4; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo - { - void* Name; - void* ProductInstanceId; - bool SupportsMidi10Protocol; - bool SupportsMidi20Protocol; - bool SupportsReceivingJitterReductionTimestamps; - bool SupportsSendingJitterReductionTimestamps; - bool HasStaticFunctionBlocks; - uint8_t DeclaredFunctionBlockCount; - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration - { - int32_t Protocol; - bool ReceiveJitterReductionTimestamps; - bool SendJitterReductionTimestamps; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo - { - void* Name; - void* Description; - void* SerialNumber; - uint16_t VendorId; - uint16_t ProductId; - void* ManufacturerName; - bool SupportsMultiClient; - int32_t NativeDataFormat; - winrt::guid TransportId; - void* TransportAbbreviation; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo - { - void* Name; - void* Description; - void* LargeImagePath; - void* SmallImagePath; - bool RequiresNoteOffTranslation; - uint16_t RecommendedControlChangeAutomationIntervalMilliseconds; - bool SupportsMidiPolyphonicExpression; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct - { - uint32_t Word0; - uint32_t Word1; - uint32_t Word2; - uint32_t Word3; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h deleted file mode 100644 index 3958e0869..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h +++ /dev/null @@ -1,283 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct WINRT_IMPL_EMPTY_BASES IMidiChannel : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannel(std::nullptr_t = nullptr) noexcept {} - IMidiChannel(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiChannelFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelFactory(std::nullptr_t = nullptr) noexcept {} - IMidiChannelFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiChannelStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelStatics(std::nullptr_t = nullptr) noexcept {} - IMidiChannelStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiClock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiClock(std::nullptr_t = nullptr) noexcept {} - IMidiClock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiClockStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiClockStatics(std::nullptr_t = nullptr) noexcept {} - IMidiClockStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnection : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnection(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnection(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionSettings : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionSettings(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionSettings(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionSource : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionSource(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformation : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformation(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationAddedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationAddedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationAddedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationRemovedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationRemovedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationRemovedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationUpdatedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationUpdatedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationUpdatedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceWatcher : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceWatcher(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceWatcher(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceWatcherStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceWatcherStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceWatcherStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointMessageProcessingPlugin : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointMessageProcessingPlugin(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointMessageProcessingPlugin(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiFunctionBlock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiFunctionBlock(std::nullptr_t = nullptr) noexcept {} - IMidiFunctionBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroup : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroup(std::nullptr_t = nullptr) noexcept {} - IMidiGroup(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupFactory(std::nullptr_t = nullptr) noexcept {} - IMidiGroupFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupStatics(std::nullptr_t = nullptr) noexcept {} - IMidiGroupStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupTerminalBlock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupTerminalBlock(std::nullptr_t = nullptr) noexcept {} - IMidiGroupTerminalBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageReceivedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageReceivedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiMessageReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageReceivedEventSource : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageReceivedEventSource(std::nullptr_t = nullptr) noexcept {} - IMidiMessageReceivedEventSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiSession : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiSession(std::nullptr_t = nullptr) noexcept {} - IMidiSession(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiSessionStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiSessionStatics(std::nullptr_t = nullptr) noexcept {} - IMidiSessionStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniversalPacket : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniversalPacket(std::nullptr_t = nullptr) noexcept {} - IMidiUniversalPacket(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h deleted file mode 100644 index 268cc0479..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h +++ /dev/null @@ -1,261 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_2_H -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiDeclaredDeviceIdentity - { - uint8_t SystemExclusiveIdByte1; - uint8_t SystemExclusiveIdByte2; - uint8_t SystemExclusiveIdByte3; - uint8_t DeviceFamilyLsb; - uint8_t DeviceFamilyMsb; - uint8_t DeviceFamilyModelNumberLsb; - uint8_t DeviceFamilyModelNumberMsb; - uint8_t SoftwareRevisionLevelByte1; - uint8_t SoftwareRevisionLevelByte2; - uint8_t SoftwareRevisionLevelByte3; - uint8_t SoftwareRevisionLevelByte4; - }; - inline bool operator==(MidiDeclaredDeviceIdentity const& left, MidiDeclaredDeviceIdentity const& right) noexcept - { - return left.SystemExclusiveIdByte1 == right.SystemExclusiveIdByte1 && left.SystemExclusiveIdByte2 == right.SystemExclusiveIdByte2 && left.SystemExclusiveIdByte3 == right.SystemExclusiveIdByte3 && left.DeviceFamilyLsb == right.DeviceFamilyLsb && left.DeviceFamilyMsb == right.DeviceFamilyMsb && left.DeviceFamilyModelNumberLsb == right.DeviceFamilyModelNumberLsb && left.DeviceFamilyModelNumberMsb == right.DeviceFamilyModelNumberMsb && left.SoftwareRevisionLevelByte1 == right.SoftwareRevisionLevelByte1 && left.SoftwareRevisionLevelByte2 == right.SoftwareRevisionLevelByte2 && left.SoftwareRevisionLevelByte3 == right.SoftwareRevisionLevelByte3 && left.SoftwareRevisionLevelByte4 == right.SoftwareRevisionLevelByte4; - } - inline bool operator!=(MidiDeclaredDeviceIdentity const& left, MidiDeclaredDeviceIdentity const& right) noexcept - { - return !(left == right); - } - struct MidiDeclaredEndpointInfo - { - hstring Name; - hstring ProductInstanceId; - bool SupportsMidi10Protocol; - bool SupportsMidi20Protocol; - bool SupportsReceivingJitterReductionTimestamps; - bool SupportsSendingJitterReductionTimestamps; - bool HasStaticFunctionBlocks; - uint8_t DeclaredFunctionBlockCount; - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - }; - inline bool operator==(MidiDeclaredEndpointInfo const& left, MidiDeclaredEndpointInfo const& right) noexcept - { - return left.Name == right.Name && left.ProductInstanceId == right.ProductInstanceId && left.SupportsMidi10Protocol == right.SupportsMidi10Protocol && left.SupportsMidi20Protocol == right.SupportsMidi20Protocol && left.SupportsReceivingJitterReductionTimestamps == right.SupportsReceivingJitterReductionTimestamps && left.SupportsSendingJitterReductionTimestamps == right.SupportsSendingJitterReductionTimestamps && left.HasStaticFunctionBlocks == right.HasStaticFunctionBlocks && left.DeclaredFunctionBlockCount == right.DeclaredFunctionBlockCount && left.SpecificationVersionMajor == right.SpecificationVersionMajor && left.SpecificationVersionMinor == right.SpecificationVersionMinor; - } - inline bool operator!=(MidiDeclaredEndpointInfo const& left, MidiDeclaredEndpointInfo const& right) noexcept - { - return !(left == right); - } - struct MidiDeclaredStreamConfiguration - { - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol Protocol; - bool ReceiveJitterReductionTimestamps; - bool SendJitterReductionTimestamps; - }; - inline bool operator==(MidiDeclaredStreamConfiguration const& left, MidiDeclaredStreamConfiguration const& right) noexcept - { - return left.Protocol == right.Protocol && left.ReceiveJitterReductionTimestamps == right.ReceiveJitterReductionTimestamps && left.SendJitterReductionTimestamps == right.SendJitterReductionTimestamps; - } - inline bool operator!=(MidiDeclaredStreamConfiguration const& left, MidiDeclaredStreamConfiguration const& right) noexcept - { - return !(left == right); - } - struct MidiEndpointTransportSuppliedInfo - { - hstring Name; - hstring Description; - hstring SerialNumber; - uint16_t VendorId; - uint16_t ProductId; - hstring ManufacturerName; - bool SupportsMultiClient; - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointNativeDataFormat NativeDataFormat; - winrt::guid TransportId; - hstring TransportAbbreviation; - }; - inline bool operator==(MidiEndpointTransportSuppliedInfo const& left, MidiEndpointTransportSuppliedInfo const& right) noexcept - { - return left.Name == right.Name && left.Description == right.Description && left.SerialNumber == right.SerialNumber && left.VendorId == right.VendorId && left.ProductId == right.ProductId && left.ManufacturerName == right.ManufacturerName && left.SupportsMultiClient == right.SupportsMultiClient && left.NativeDataFormat == right.NativeDataFormat && left.TransportId == right.TransportId && left.TransportAbbreviation == right.TransportAbbreviation; - } - inline bool operator!=(MidiEndpointTransportSuppliedInfo const& left, MidiEndpointTransportSuppliedInfo const& right) noexcept - { - return !(left == right); - } - struct MidiEndpointUserSuppliedInfo - { - hstring Name; - hstring Description; - hstring LargeImagePath; - hstring SmallImagePath; - bool RequiresNoteOffTranslation; - uint16_t RecommendedControlChangeAutomationIntervalMilliseconds; - bool SupportsMidiPolyphonicExpression; - }; - inline bool operator==(MidiEndpointUserSuppliedInfo const& left, MidiEndpointUserSuppliedInfo const& right) noexcept - { - return left.Name == right.Name && left.Description == right.Description && left.LargeImagePath == right.LargeImagePath && left.SmallImagePath == right.SmallImagePath && left.RequiresNoteOffTranslation == right.RequiresNoteOffTranslation && left.RecommendedControlChangeAutomationIntervalMilliseconds == right.RecommendedControlChangeAutomationIntervalMilliseconds && left.SupportsMidiPolyphonicExpression == right.SupportsMidiPolyphonicExpression; - } - inline bool operator!=(MidiEndpointUserSuppliedInfo const& left, MidiEndpointUserSuppliedInfo const& right) noexcept - { - return !(left == right); - } - struct MidiMessageStruct - { - uint32_t Word0; - uint32_t Word1; - uint32_t Word2; - uint32_t Word3; - }; - inline bool operator==(MidiMessageStruct const& left, MidiMessageStruct const& right) noexcept - { - return left.Word0 == right.Word0 && left.Word1 == right.Word1 && left.Word2 == right.Word2 && left.Word3 == right.Word3; - } - inline bool operator!=(MidiMessageStruct const& left, MidiMessageStruct const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiChannel : winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel - { - MidiChannel(std::nullptr_t) noexcept {} - MidiChannel(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel(ptr, take_ownership_from_abi) {} - explicit MidiChannel(uint8_t index); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto IsValidIndex(uint8_t index); - }; - struct WINRT_IMPL_EMPTY_BASES MidiClock : winrt::Microsoft::Windows::Devices::Midi2::IMidiClock - { - MidiClock(std::nullptr_t) noexcept {} - MidiClock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiClock(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto Now(); - [[nodiscard]] static auto TimestampConstantSendImmediately(); - [[nodiscard]] static auto TimestampFrequency(); - static auto ConvertTimestampTicksToNanoseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToMicroseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToMilliseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToSeconds(uint64_t timestampValue); - static auto OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks); - static auto OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds); - static auto OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds); - static auto OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointConnection : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection, - impl::require - { - MidiEndpointConnection(std::nullptr_t) noexcept {} - MidiEndpointConnection(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection(ptr, take_ownership_from_abi) {} - static auto GetDeviceSelector(); - static auto SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult); - static auto SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformation : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation - { - MidiEndpointDeviceInformation(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation(ptr, take_ownership_from_abi) {} - static auto CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId); - static auto FindAll(); - static auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder); - static auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters); - [[nodiscard]] static auto EndpointInterfaceClass(); - static auto GetAdditionalPropertiesList(); - static auto DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationAddedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs - { - MidiEndpointDeviceInformationAddedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationAddedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationRemovedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs - { - MidiEndpointDeviceInformationRemovedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationRemovedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationUpdatedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs - { - MidiEndpointDeviceInformationUpdatedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationUpdatedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceWatcher : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher - { - MidiEndpointDeviceWatcher(std::nullptr_t) noexcept {} - MidiEndpointDeviceWatcher(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher(ptr, take_ownership_from_abi) {} - static auto Create(); - static auto Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters); - }; - struct WINRT_IMPL_EMPTY_BASES MidiFunctionBlock : winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock - { - MidiFunctionBlock(std::nullptr_t) noexcept {} - MidiFunctionBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock(ptr, take_ownership_from_abi) {} - MidiFunctionBlock(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroup : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup - { - MidiGroup(std::nullptr_t) noexcept {} - MidiGroup(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup(ptr, take_ownership_from_abi) {} - explicit MidiGroup(uint8_t index); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto IsValidIndex(uint8_t index); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroupTerminalBlock : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock - { - MidiGroupTerminalBlock(std::nullptr_t) noexcept {} - MidiGroupTerminalBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage128 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128, - impl::require - { - MidiMessage128(std::nullptr_t) noexcept {} - MidiMessage128(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128(ptr, take_ownership_from_abi) {} - MidiMessage128(); - MidiMessage128(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3); - MidiMessage128(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage32 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32, - impl::require - { - MidiMessage32(std::nullptr_t) noexcept {} - MidiMessage32(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32(ptr, take_ownership_from_abi) {} - MidiMessage32(); - MidiMessage32(uint64_t timestamp, uint32_t word0); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage64 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64, - impl::require - { - MidiMessage64(std::nullptr_t) noexcept {} - MidiMessage64(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64(ptr, take_ownership_from_abi) {} - MidiMessage64(); - MidiMessage64(uint64_t timestamp, uint32_t word0, uint32_t word1); - MidiMessage64(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage96 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96, - impl::require - { - MidiMessage96(std::nullptr_t) noexcept {} - MidiMessage96(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96(ptr, take_ownership_from_abi) {} - MidiMessage96(); - MidiMessage96(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2); - MidiMessage96(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessageReceivedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs - { - MidiMessageReceivedEventArgs(std::nullptr_t) noexcept {} - MidiMessageReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiSession : winrt::Microsoft::Windows::Devices::Midi2::IMidiSession, - impl::require - { - MidiSession(std::nullptr_t) noexcept {} - MidiSession(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiSession(ptr, take_ownership_from_abi) {} - static auto Create(param::hstring const& sessionName); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h deleted file mode 100644 index 438febb66..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h +++ /dev/null @@ -1,104 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct IMidiUniqueId; - struct IMidiUniqueIdFactory; - struct IMidiUniqueIdStatics; - struct MidiUniqueId; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.MidiUniqueId"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueId"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueIdFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueIdStatics"; - template <> inline constexpr guid guid_v{ 0x2476DCBC,0x3CD7,0x5346,{ 0x9F,0x5C,0xE6,0xD1,0xAD,0xD1,0x67,0x41 } }; // 2476DCBC-3CD7-5346-9F5C-E6D1ADD16741 - template <> inline constexpr guid guid_v{ 0xD2F59A5C,0xE78B,0x5D7A,{ 0x9B,0x22,0x3D,0xC0,0x28,0x58,0x1A,0x64 } }; // D2F59A5C-E78B-5D7A-9B22-3DC028581A64 - template <> inline constexpr guid guid_v{ 0x27B256C2,0xB3B0,0x507A,{ 0xBC,0x6B,0x48,0xE6,0xFC,0x42,0xB4,0x68 } }; // 27B256C2-B3B0-507A-BC6B-48E6FC42B468 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Byte1(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte1(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte2(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte2(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte3(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte3(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte4(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte4(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_AsCombined28BitValue(uint32_t*) noexcept = 0; - virtual int32_t __stdcall get_IsBroadcast(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsReserved(bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall CreateBroadcast(void**) noexcept = 0; - virtual int32_t __stdcall CreateRandom(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId - { - [[nodiscard]] auto Byte1() const; - auto Byte1(uint8_t value) const; - [[nodiscard]] auto Byte2() const; - auto Byte2(uint8_t value) const; - [[nodiscard]] auto Byte3() const; - auto Byte3(uint8_t value) const; - [[nodiscard]] auto Byte4() const; - auto Byte4(uint8_t value) const; - [[nodiscard]] auto AsCombined28BitValue() const; - [[nodiscard]] auto IsBroadcast() const; - [[nodiscard]] auto IsReserved() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory - { - auto CreateInstance(uint32_t combined28BitValue) const; - auto CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto CreateBroadcast() const; - auto CreateRandom() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h deleted file mode 100644 index d105e51bc..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h +++ /dev/null @@ -1,31 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueId : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueId(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueId(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueIdFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueIdFactory(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueIdFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueIdStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueIdStatics(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueIdStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h deleted file mode 100644 index b4914e773..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h +++ /dev/null @@ -1,22 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct WINRT_IMPL_EMPTY_BASES MidiUniqueId : winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId - { - MidiUniqueId(std::nullptr_t) noexcept {} - MidiUniqueId(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId(ptr, take_ownership_from_abi) {} - MidiUniqueId(); - explicit MidiUniqueId(uint32_t combined28BitValue); - MidiUniqueId(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto CreateBroadcast(); - static auto CreateRandom(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h deleted file mode 100644 index 6bf8c9af9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h +++ /dev/null @@ -1,116 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiGroup; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct IMidiChannelEndpointListener; - struct IMidiGroupEndpointListener; - struct IMidiMessageTypeEndpointListener; - struct MidiChannelEndpointListener; - struct MidiGroupEndpointListener; - struct MidiMessageTypeEndpointListener; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiChannelEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiGroupEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiMessageTypeEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiChannelEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiGroupEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiMessageTypeEndpointListener"; - template <> inline constexpr guid guid_v{ 0xFD961EBD,0xE883,0x5C78,{ 0xB1,0x00,0xC0,0x2B,0x70,0x50,0xAE,0x59 } }; // FD961EBD-E883-5C78-B100-C02B7050AE59 - template <> inline constexpr guid guid_v{ 0xA8FE598F,0x2E81,0x507E,{ 0x99,0x46,0x44,0x45,0x45,0x26,0xBF,0x61 } }; // A8FE598F-2E81-507E-9946-44454526BF61 - template <> inline constexpr guid guid_v{ 0x3F03A513,0x6032,0x58F6,{ 0x98,0x17,0xB8,0xD3,0xC7,0xE8,0x9B,0x89 } }; // 3F03A513-6032-58F6-9817-B8D3C7E89B89 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedGroup(void**) noexcept = 0; - virtual int32_t __stdcall put_IncludedGroup(void*) noexcept = 0; - virtual int32_t __stdcall get_IncludedChannels(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedGroups(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedMessageTypes(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener - { - [[nodiscard]] auto IncludedGroup() const; - auto IncludedGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& value) const; - [[nodiscard]] auto IncludedChannels() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener - { - [[nodiscard]] auto IncludedGroups() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener - { - [[nodiscard]] auto IncludedMessageTypes() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h deleted file mode 100644 index 9cef219ea..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h +++ /dev/null @@ -1,31 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct WINRT_IMPL_EMPTY_BASES IMidiChannelEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiChannelEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiGroupEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageTypeEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageTypeEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiMessageTypeEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h deleted file mode 100644 index fde3586c8..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h +++ /dev/null @@ -1,32 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct WINRT_IMPL_EMPTY_BASES MidiChannelEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener, - impl::require - { - MidiChannelEndpointListener(std::nullptr_t) noexcept {} - MidiChannelEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener(ptr, take_ownership_from_abi) {} - MidiChannelEndpointListener(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroupEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener, - impl::require - { - MidiGroupEndpointListener(std::nullptr_t) noexcept {} - MidiGroupEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener(ptr, take_ownership_from_abi) {} - MidiGroupEndpointListener(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessageTypeEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener, - impl::require - { - MidiMessageTypeEndpointListener(std::nullptr_t) noexcept {} - MidiMessageTypeEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener(ptr, take_ownership_from_abi) {} - MidiMessageTypeEndpointListener(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h deleted file mode 100644 index 5a140177a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h +++ /dev/null @@ -1,206 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_0_H -WINRT_EXPORT namespace winrt::Windows::Foundation -{ -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct IMidiDiagnosticsStatics; - struct IMidiReportingStatics; - struct IMidiServicePingResponseSummary; - struct IMidiServiceSessionInfo; - struct MidiDiagnostics; - struct MidiReporting; - struct MidiServicePingResponseSummary; - struct MidiServiceSessionInfo; - struct MidiServiceMessageProcessingPluginInfo; - struct MidiServicePingResponse; - struct MidiServiceSessionConnectionInfo; - struct MidiServiceTransportPluginInfo; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiDiagnostics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiReporting"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServicePingResponseSummary"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceSessionInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceMessageProcessingPluginInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServicePingResponse"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceSessionConnectionInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceTransportPluginInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiDiagnosticsStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiReportingStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiServicePingResponseSummary"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiServiceSessionInfo"; - template <> inline constexpr guid guid_v{ 0x4AB631D4,0x3C9A,0x5E7D,{ 0xB3,0xDA,0xB4,0x85,0x69,0x7E,0xDF,0x9E } }; // 4AB631D4-3C9A-5E7D-B3DA-B485697EDF9E - template <> inline constexpr guid guid_v{ 0x836257F9,0xF81F,0x5C0E,{ 0xB6,0xF2,0xB2,0xD0,0xF9,0xDC,0xF6,0x8E } }; // 836257F9-F81F-5C0E-B6F2-B2D0F9DCF68E - template <> inline constexpr guid guid_v{ 0x9826B87F,0x01ED,0x56CE,{ 0xA5,0x40,0x6A,0xB9,0x89,0xA0,0x3E,0xF8 } }; // 9826B87F-01ED-56CE-A540-6AB989A03EF8 - template <> inline constexpr guid guid_v{ 0x3156AD39,0x109E,0x5B67,{ 0x86,0x1B,0xAE,0x41,0x38,0x27,0xC9,0x05 } }; // 3156AD39-109E-5B67-861B-AE413827C905 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_DiagnosticsLoopbackAEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_DiagnosticsLoopbackBEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall PingService(uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall PingService2(uint8_t, uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall GetInstalledTransportPlugins(void**) noexcept = 0; - virtual int32_t __stdcall GetInstalledMessageProcessingPlugins(void**) noexcept = 0; - virtual int32_t __stdcall GetActiveSessions(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Success(bool*) noexcept = 0; - virtual int32_t __stdcall get_FailureReason(void**) noexcept = 0; - virtual int32_t __stdcall get_TotalPingRoundTripMidiClock(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_AveragePingRoundTripMidiClock(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_Responses(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SessionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_ProcessId(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_ProcessName(void**) noexcept = 0; - virtual int32_t __stdcall get_SessionName(void**) noexcept = 0; - virtual int32_t __stdcall get_StartTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall get_Connections(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics - { - [[nodiscard]] auto DiagnosticsLoopbackAEndpointDeviceId() const; - [[nodiscard]] auto DiagnosticsLoopbackBEndpointDeviceId() const; - auto PingService(uint8_t pingCount) const; - auto PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics - { - auto GetInstalledTransportPlugins() const; - auto GetInstalledMessageProcessingPlugins() const; - auto GetActiveSessions() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary - { - [[nodiscard]] auto Success() const; - [[nodiscard]] auto FailureReason() const; - [[nodiscard]] auto TotalPingRoundTripMidiClock() const; - [[nodiscard]] auto AveragePingRoundTripMidiClock() const; - [[nodiscard]] auto Responses() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo - { - [[nodiscard]] auto SessionId() const; - [[nodiscard]] auto ProcessId() const; - [[nodiscard]] auto ProcessName() const; - [[nodiscard]] auto SessionName() const; - [[nodiscard]] auto StartTime() const; - [[nodiscard]] auto Connections() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceMessageProcessingPluginInfo - { - winrt::guid Id; - void* Name; - void* Description; - void* Author; - void* SmallImagePath; - void* Version; - bool SupportsMultipleInstancesPerDevice; - bool IsSystemManaged; - bool IsClientConfigurable; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceMessageProcessingPluginInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServicePingResponse - { - uint32_t SourceId; - uint32_t Index; - uint64_t ClientSendMidiTimestamp; - uint64_t ServiceReportedMidiTimestamp; - uint64_t ClientReceiveMidiTimestamp; - uint64_t ClientDeltaTimestamp; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServicePingResponse; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceSessionConnectionInfo - { - void* EndpointDeviceId; - uint16_t InstanceCount; - int64_t EarliestConnectionTime; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceSessionConnectionInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceTransportPluginInfo - { - winrt::guid Id; - void* Name; - void* Abbreviation; - void* Description; - void* SmallImagePath; - void* Author; - void* Version; - bool IsRuntimeCreatableByApps; - bool IsRuntimeCreatableBySettings; - bool IsSystemManaged; - bool CanConfigure; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceTransportPluginInfo; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h deleted file mode 100644 index 4138c1102..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct WINRT_IMPL_EMPTY_BASES IMidiDiagnosticsStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiDiagnosticsStatics(std::nullptr_t = nullptr) noexcept {} - IMidiDiagnosticsStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiReportingStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiReportingStatics(std::nullptr_t = nullptr) noexcept {} - IMidiReportingStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServicePingResponseSummary : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicePingResponseSummary(std::nullptr_t = nullptr) noexcept {} - IMidiServicePingResponseSummary(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceSessionInfo : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceSessionInfo(std::nullptr_t = nullptr) noexcept {} - IMidiServiceSessionInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h deleted file mode 100644 index cee0e284c..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_2_H -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct MidiServiceMessageProcessingPluginInfo - { - winrt::guid Id; - hstring Name; - hstring Description; - hstring Author; - hstring SmallImagePath; - hstring Version; - bool SupportsMultipleInstancesPerDevice; - bool IsSystemManaged; - bool IsClientConfigurable; - }; - inline bool operator==(MidiServiceMessageProcessingPluginInfo const& left, MidiServiceMessageProcessingPluginInfo const& right) noexcept - { - return left.Id == right.Id && left.Name == right.Name && left.Description == right.Description && left.Author == right.Author && left.SmallImagePath == right.SmallImagePath && left.Version == right.Version && left.SupportsMultipleInstancesPerDevice == right.SupportsMultipleInstancesPerDevice && left.IsSystemManaged == right.IsSystemManaged && left.IsClientConfigurable == right.IsClientConfigurable; - } - inline bool operator!=(MidiServiceMessageProcessingPluginInfo const& left, MidiServiceMessageProcessingPluginInfo const& right) noexcept - { - return !(left == right); - } - struct MidiServicePingResponse - { - uint32_t SourceId; - uint32_t Index; - uint64_t ClientSendMidiTimestamp; - uint64_t ServiceReportedMidiTimestamp; - uint64_t ClientReceiveMidiTimestamp; - uint64_t ClientDeltaTimestamp; - }; - inline bool operator==(MidiServicePingResponse const& left, MidiServicePingResponse const& right) noexcept - { - return left.SourceId == right.SourceId && left.Index == right.Index && left.ClientSendMidiTimestamp == right.ClientSendMidiTimestamp && left.ServiceReportedMidiTimestamp == right.ServiceReportedMidiTimestamp && left.ClientReceiveMidiTimestamp == right.ClientReceiveMidiTimestamp && left.ClientDeltaTimestamp == right.ClientDeltaTimestamp; - } - inline bool operator!=(MidiServicePingResponse const& left, MidiServicePingResponse const& right) noexcept - { - return !(left == right); - } - struct MidiServiceSessionConnectionInfo - { - hstring EndpointDeviceId; - uint16_t InstanceCount; - winrt::Windows::Foundation::DateTime EarliestConnectionTime; - }; - inline bool operator==(MidiServiceSessionConnectionInfo const& left, MidiServiceSessionConnectionInfo const& right) noexcept - { - return left.EndpointDeviceId == right.EndpointDeviceId && left.InstanceCount == right.InstanceCount && left.EarliestConnectionTime == right.EarliestConnectionTime; - } - inline bool operator!=(MidiServiceSessionConnectionInfo const& left, MidiServiceSessionConnectionInfo const& right) noexcept - { - return !(left == right); - } - struct MidiServiceTransportPluginInfo - { - winrt::guid Id; - hstring Name; - hstring Abbreviation; - hstring Description; - hstring SmallImagePath; - hstring Author; - hstring Version; - bool IsRuntimeCreatableByApps; - bool IsRuntimeCreatableBySettings; - bool IsSystemManaged; - bool CanConfigure; - }; - inline bool operator==(MidiServiceTransportPluginInfo const& left, MidiServiceTransportPluginInfo const& right) noexcept - { - return left.Id == right.Id && left.Name == right.Name && left.Abbreviation == right.Abbreviation && left.Description == right.Description && left.SmallImagePath == right.SmallImagePath && left.Author == right.Author && left.Version == right.Version && left.IsRuntimeCreatableByApps == right.IsRuntimeCreatableByApps && left.IsRuntimeCreatableBySettings == right.IsRuntimeCreatableBySettings && left.IsSystemManaged == right.IsSystemManaged && left.CanConfigure == right.CanConfigure; - } - inline bool operator!=(MidiServiceTransportPluginInfo const& left, MidiServiceTransportPluginInfo const& right) noexcept - { - return !(left == right); - } - struct MidiDiagnostics - { - MidiDiagnostics() = delete; - [[nodiscard]] static auto DiagnosticsLoopbackAEndpointDeviceId(); - [[nodiscard]] static auto DiagnosticsLoopbackBEndpointDeviceId(); - static auto PingService(uint8_t pingCount); - static auto PingService(uint8_t pingCount, uint32_t timeoutMilliseconds); - }; - struct MidiReporting - { - MidiReporting() = delete; - static auto GetInstalledTransportPlugins(); - static auto GetInstalledMessageProcessingPlugins(); - static auto GetActiveSessions(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiServicePingResponseSummary : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary - { - MidiServicePingResponseSummary(std::nullptr_t) noexcept {} - MidiServicePingResponseSummary(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiServiceSessionInfo : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo - { - MidiServiceSessionInfo(std::nullptr_t) noexcept {} - MidiServiceSessionInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h deleted file mode 100644 index cd7b9ca69..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h +++ /dev/null @@ -1,187 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct IMidiLoopbackEndpointCreationConfig; - struct IMidiLoopbackEndpointCreationConfigFactory; - struct IMidiLoopbackEndpointDeletionConfig; - struct IMidiLoopbackEndpointDeletionConfigFactory; - struct IMidiLoopbackEndpointManager; - struct IMidiLoopbackEndpointManagerStatics; - struct MidiLoopbackEndpointCreationConfig; - struct MidiLoopbackEndpointDeletionConfig; - struct MidiLoopbackEndpointManager; - struct MidiLoopbackEndpointCreationResult; - struct MidiLoopbackEndpointDefinition; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointDeletionConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointCreationResult"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointDefinition"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointCreationConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointDeletionConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointDeletionConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointManagerStatics"; - template <> inline constexpr guid guid_v{ 0x53EF39E5,0x179D,0x57AF,{ 0x98,0x4D,0xC4,0x0D,0x5C,0x29,0x99,0xFA } }; // 53EF39E5-179D-57AF-984D-C40D5C2999FA - template <> inline constexpr guid guid_v{ 0x5FA6051E,0x83EE,0x5D4D,{ 0x92,0x1C,0x48,0xBA,0xD0,0xAA,0xDE,0x61 } }; // 5FA6051E-83EE-5D4D-921C-48BAD0AADE61 - template <> inline constexpr guid guid_v{ 0x717579E3,0xE3BE,0x5D34,{ 0x87,0x79,0xA1,0x56,0x31,0x1B,0x84,0x8D } }; // 717579E3-E3BE-5D34-8779-A156311B848D - template <> inline constexpr guid guid_v{ 0x2663EB28,0xD010,0x5610,{ 0x86,0xCA,0xBD,0x68,0x40,0xDE,0x78,0xE8 } }; // 2663EB28-D010-5610-86CA-BD6840DE78E8 - template <> inline constexpr guid guid_v{ 0x1DFB714C,0x710A,0x58D5,{ 0x9E,0xAD,0x49,0xAC,0x8C,0x3F,0x34,0x98 } }; // 1DFB714C-710A-58D5-9EAD-49AC8C3F3498 - template <> inline constexpr guid guid_v{ 0x2B788E99,0x2384,0x5518,{ 0x82,0x39,0x03,0x2F,0xBE,0x23,0x2D,0x2B } }; // 2B788E99-2384-5518-8239-032FBE232D2B - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall put_AssociationId(winrt::guid) noexcept = 0; - virtual int32_t __stdcall get_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition*) noexcept = 0; - virtual int32_t __stdcall put_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition) noexcept = 0; - virtual int32_t __stdcall get_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition*) noexcept = 0; - virtual int32_t __stdcall put_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(winrt::guid, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall put_AssociationId(winrt::guid) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(winrt::guid, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsTransportAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall get_AbstractionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall CreateTransientLoopbackEndpoints(void*, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult*) noexcept = 0; - virtual int32_t __stdcall RemoveTransientLoopbackEndpoints(void*, bool*) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig - { - [[nodiscard]] auto AssociationId() const; - auto AssociationId(winrt::guid const& value) const; - [[nodiscard]] auto EndpointDefinitionA() const; - auto EndpointDefinitionA(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const; - [[nodiscard]] auto EndpointDefinitionB() const; - auto EndpointDefinitionB(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory - { - auto CreateInstance(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig - { - [[nodiscard]] auto AssociationId() const; - auto AssociationId(winrt::guid const& value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory - { - auto CreateInstance(winrt::guid const& associationId) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManager - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManager; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics - { - [[nodiscard]] auto IsTransportAvailable() const; - [[nodiscard]] auto AbstractionId() const; - auto CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) const; - auto RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult - { - bool Success; - winrt::guid AssociationId; - void* EndpointDeviceIdA; - void* EndpointDeviceIdB; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition - { - void* Name; - void* UniqueId; - void* Description; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h deleted file mode 100644 index 5a5457ec9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h +++ /dev/null @@ -1,52 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointCreationConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointCreationConfig(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointCreationConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointCreationConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointCreationConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointDeletionConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointDeletionConfig(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointDeletionConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointDeletionConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointDeletionConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointDeletionConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointManager : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointManager(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointManagerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointManagerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointManagerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h deleted file mode 100644 index 021b1a4a5..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h +++ /dev/null @@ -1,64 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct MidiLoopbackEndpointCreationResult - { - bool Success; - winrt::guid AssociationId; - hstring EndpointDeviceIdA; - hstring EndpointDeviceIdB; - }; - inline bool operator==(MidiLoopbackEndpointCreationResult const& left, MidiLoopbackEndpointCreationResult const& right) noexcept - { - return left.Success == right.Success && left.AssociationId == right.AssociationId && left.EndpointDeviceIdA == right.EndpointDeviceIdA && left.EndpointDeviceIdB == right.EndpointDeviceIdB; - } - inline bool operator!=(MidiLoopbackEndpointCreationResult const& left, MidiLoopbackEndpointCreationResult const& right) noexcept - { - return !(left == right); - } - struct MidiLoopbackEndpointDefinition - { - hstring Name; - hstring UniqueId; - hstring Description; - }; - inline bool operator==(MidiLoopbackEndpointDefinition const& left, MidiLoopbackEndpointDefinition const& right) noexcept - { - return left.Name == right.Name && left.UniqueId == right.UniqueId && left.Description == right.Description; - } - inline bool operator!=(MidiLoopbackEndpointDefinition const& left, MidiLoopbackEndpointDefinition const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointCreationConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig, - impl::require - { - MidiLoopbackEndpointCreationConfig(std::nullptr_t) noexcept {} - MidiLoopbackEndpointCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig(ptr, take_ownership_from_abi) {} - MidiLoopbackEndpointCreationConfig(); - MidiLoopbackEndpointCreationConfig(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB); - }; - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointDeletionConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig, - impl::require - { - MidiLoopbackEndpointDeletionConfig(std::nullptr_t) noexcept {} - MidiLoopbackEndpointDeletionConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig(ptr, take_ownership_from_abi) {} - explicit MidiLoopbackEndpointDeletionConfig(winrt::guid const& associationId); - }; - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointManager : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager - { - MidiLoopbackEndpointManager(std::nullptr_t) noexcept {} - MidiLoopbackEndpointManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto IsTransportAvailable(); - [[nodiscard]] static auto AbstractionId(); - static auto CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig); - static auto RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h deleted file mode 100644 index 39d0cdbd2..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h +++ /dev/null @@ -1,228 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiDeclaredDeviceIdentity; - struct MidiDeclaredEndpointInfo; - struct MidiEndpointUserSuppliedInfo; - struct MidiFunctionBlock; - enum class MidiProtocol : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct EventRegistrationToken; - template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct IMidiStreamConfigRequestReceivedEventArgs; - struct IMidiVirtualDevice; - struct IMidiVirtualDeviceCreationConfig; - struct IMidiVirtualDeviceCreationConfigFactory; - struct IMidiVirtualDeviceManager; - struct IMidiVirtualDeviceManagerStatics; - struct MidiStreamConfigRequestReceivedEventArgs; - struct MidiVirtualDevice; - struct MidiVirtualDeviceCreationConfig; - struct MidiVirtualDeviceManager; - struct MidiStreamConfigRequestedSettings; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiStreamConfigRequestReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDevice"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDeviceCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDeviceManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiStreamConfigRequestedSettings"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiStreamConfigRequestReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDevice"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceCreationConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceManagerStatics"; - template <> inline constexpr guid guid_v{ 0x95E66544,0x7629,0x50AF,{ 0x9E,0xEE,0x0B,0x10,0x99,0x40,0x8E,0xD6 } }; // 95E66544-7629-50AF-9EEE-0B1099408ED6 - template <> inline constexpr guid guid_v{ 0x6C667B8A,0x8A6F,0x59EC,{ 0xAB,0x80,0x25,0xF6,0xE5,0x62,0x93,0x4F } }; // 6C667B8A-8A6F-59EC-AB80-25F6E562934F - template <> inline constexpr guid guid_v{ 0xF6B40477,0x006F,0x575B,{ 0xBE,0xEA,0xFD,0x72,0x9E,0x84,0xDD,0xF7 } }; // F6B40477-006F-575B-BEEA-FD729E84DDF7 - template <> inline constexpr guid guid_v{ 0x6B3BFE63,0x5C8F,0x57D8,{ 0x8C,0xBA,0x20,0x8C,0x93,0x8F,0x08,0x34 } }; // 6B3BFE63-5C8F-57D8-8CBA-208C938F0834 - template <> inline constexpr guid guid_v{ 0x4235E62B,0xDF65,0x5B6C,{ 0x93,0x0F,0x64,0x0D,0xA2,0xF5,0x64,0x9C } }; // 4235E62B-DF65-5B6C-930F-640DA2F5649C - template <> inline constexpr guid guid_v{ 0xA3C905C1,0x56B5,0x58CE,{ 0xAD,0x79,0x82,0x66,0xE5,0x0A,0x1C,0x0C } }; // A3C905C1-56B5-58CE-AD79-8266E50A1C0C - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_PreferredMidiProtocol(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_RequestEndpointTransmitJitterReductionTimestamps(bool*) noexcept = 0; - virtual int32_t __stdcall get_RequestEndpointReceiveJitterReductionTimestamps(bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_DeviceEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_FunctionBlocks(void**) noexcept = 0; - virtual int32_t __stdcall UpdateFunctionBlock(void*, bool*) noexcept = 0; - virtual int32_t __stdcall UpdateEndpointName(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_SuppressHandledMessages(bool*) noexcept = 0; - virtual int32_t __stdcall put_SuppressHandledMessages(bool) noexcept = 0; - virtual int32_t __stdcall add_StreamConfigRequestReceived(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_StreamConfigRequestReceived(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall put_Name(void*) noexcept = 0; - virtual int32_t __stdcall get_Description(void**) noexcept = 0; - virtual int32_t __stdcall put_Description(void*) noexcept = 0; - virtual int32_t __stdcall get_Manufacturer(void**) noexcept = 0; - virtual int32_t __stdcall put_Manufacturer(void*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity*) noexcept = 0; - virtual int32_t __stdcall put_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity) noexcept = 0; - virtual int32_t __stdcall get_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo*) noexcept = 0; - virtual int32_t __stdcall put_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo) noexcept = 0; - virtual int32_t __stdcall get_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall put_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo) noexcept = 0; - virtual int32_t __stdcall get_FunctionBlocks(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity, struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsTransportAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall get_AbstractionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall CreateVirtualDevice(void*, void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs - { - [[nodiscard]] auto Timestamp() const; - [[nodiscard]] auto PreferredMidiProtocol() const; - [[nodiscard]] auto RequestEndpointTransmitJitterReductionTimestamps() const; - [[nodiscard]] auto RequestEndpointReceiveJitterReductionTimestamps() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice - { - [[nodiscard]] auto DeviceEndpointDeviceId() const; - [[nodiscard]] auto FunctionBlocks() const; - auto UpdateFunctionBlock(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock const& block) const; - auto UpdateEndpointName(param::hstring const& name) const; - [[nodiscard]] auto SuppressHandledMessages() const; - auto SuppressHandledMessages(bool value) const; - auto StreamConfigRequestReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using StreamConfigRequestReceived_revoker = impl::event_revoker::remove_StreamConfigRequestReceived>; - [[nodiscard]] auto StreamConfigRequestReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto StreamConfigRequestReceived(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig - { - [[nodiscard]] auto Name() const; - auto Name(param::hstring const& value) const; - [[nodiscard]] auto Description() const; - auto Description(param::hstring const& value) const; - [[nodiscard]] auto Manufacturer() const; - auto Manufacturer(param::hstring const& value) const; - [[nodiscard]] auto DeclaredDeviceIdentity() const; - auto DeclaredDeviceIdentity(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& value) const; - [[nodiscard]] auto DeclaredEndpointInfo() const; - auto DeclaredEndpointInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& value) const; - [[nodiscard]] auto UserSuppliedInfo() const; - auto UserSuppliedInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& value) const; - [[nodiscard]] auto FunctionBlocks() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory - { - auto CreateInstance(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) const; - auto CreateInstance2(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) const; - auto CreateInstance3(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManager - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManager; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics - { - [[nodiscard]] auto IsTransportAvailable() const; - [[nodiscard]] auto AbstractionId() const; - auto CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiStreamConfigRequestedSettings - { - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - int32_t PreferredMidiProtocol; - bool RequestEndpointTransmitJitterReductionTimestamps; - bool RequestEndpointReceiveJitterReductionTimestamps; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiStreamConfigRequestedSettings; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h deleted file mode 100644 index 83dc91a3a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h +++ /dev/null @@ -1,52 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct WINRT_IMPL_EMPTY_BASES IMidiStreamConfigRequestReceivedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiStreamConfigRequestReceivedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiStreamConfigRequestReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDevice : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDevice(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDevice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceCreationConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceCreationConfig(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceCreationConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceCreationConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceCreationConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceManager : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceManager(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceManagerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceManagerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceManagerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h deleted file mode 100644 index 7838b2613..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h +++ /dev/null @@ -1,56 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct MidiStreamConfigRequestedSettings - { - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol PreferredMidiProtocol; - bool RequestEndpointTransmitJitterReductionTimestamps; - bool RequestEndpointReceiveJitterReductionTimestamps; - }; - inline bool operator==(MidiStreamConfigRequestedSettings const& left, MidiStreamConfigRequestedSettings const& right) noexcept - { - return left.SpecificationVersionMajor == right.SpecificationVersionMajor && left.SpecificationVersionMinor == right.SpecificationVersionMinor && left.PreferredMidiProtocol == right.PreferredMidiProtocol && left.RequestEndpointTransmitJitterReductionTimestamps == right.RequestEndpointTransmitJitterReductionTimestamps && left.RequestEndpointReceiveJitterReductionTimestamps == right.RequestEndpointReceiveJitterReductionTimestamps; - } - inline bool operator!=(MidiStreamConfigRequestedSettings const& left, MidiStreamConfigRequestedSettings const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiStreamConfigRequestReceivedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs - { - MidiStreamConfigRequestReceivedEventArgs(std::nullptr_t) noexcept {} - MidiStreamConfigRequestReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDevice : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice, - impl::require - { - MidiVirtualDevice(std::nullptr_t) noexcept {} - MidiVirtualDevice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDeviceCreationConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig, - impl::require - { - MidiVirtualDeviceCreationConfig(std::nullptr_t) noexcept {} - MidiVirtualDeviceCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig(ptr, take_ownership_from_abi) {} - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo); - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity); - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo); - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDeviceManager : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager - { - MidiVirtualDeviceManager(std::nullptr_t) noexcept {} - MidiVirtualDeviceManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto IsTransportAvailable(); - [[nodiscard]] static auto AbstractionId(); - static auto CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h deleted file mode 100644 index 304eccc15..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h +++ /dev/null @@ -1,70 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_0_H -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct Uri; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct IMidiServicesInitializer; - struct IMidiServicesInitializerStatics; - struct MidiServicesInitializer; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.MidiServicesInitializer"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.IMidiServicesInitializer"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.IMidiServicesInitializerStatics"; - template <> inline constexpr guid guid_v{ 0x3A60A020,0x720A,0x563F,{ 0x90,0x9C,0x9C,0x3C,0xF4,0x77,0x21,0xCE } }; // 3A60A020-720A-563F-909C-9C3CF47721CE - template <> inline constexpr guid guid_v{ 0x56FC8938,0x93CD,0x51B3,{ 0x9E,0x6E,0x5B,0xB3,0xDA,0xBD,0x19,0x0E } }; // 56FC8938-93CD-51B3-9E6E-5BB3DABD190E - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall IsOperatingSystemSupported(bool*) noexcept = 0; - virtual int32_t __stdcall EnsureServiceAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall InitializeSdkRuntime(bool*) noexcept = 0; - virtual int32_t __stdcall IsCompatibleDesktopAppSdkRuntimeInstalled(bool*) noexcept = 0; - virtual int32_t __stdcall GetLatestRuntimeReleaseInstallerUri(void**) noexcept = 0; - virtual int32_t __stdcall GetLatestSettingsAppReleaseInstallerUri(void**) noexcept = 0; - virtual int32_t __stdcall GetLatestConsoleAppReleaseInstallerUri(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializer - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializer; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics - { - auto IsOperatingSystemSupported() const; - auto EnsureServiceAvailable() const; - auto InitializeSdkRuntime() const; - auto IsCompatibleDesktopAppSdkRuntimeInstalled() const; - auto GetLatestRuntimeReleaseInstallerUri() const; - auto GetLatestSettingsAppReleaseInstallerUri() const; - auto GetLatestConsoleAppReleaseInstallerUri() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h deleted file mode 100644 index 0fe7114e6..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h +++ /dev/null @@ -1,24 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct WINRT_IMPL_EMPTY_BASES IMidiServicesInitializer : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicesInitializer(std::nullptr_t = nullptr) noexcept {} - IMidiServicesInitializer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServicesInitializerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicesInitializerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiServicesInitializerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h deleted file mode 100644 index 76c852b5f..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h +++ /dev/null @@ -1,22 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct WINRT_IMPL_EMPTY_BASES MidiServicesInitializer : winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer - { - MidiServicesInitializer(std::nullptr_t) noexcept {} - MidiServicesInitializer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer(ptr, take_ownership_from_abi) {} - static auto IsOperatingSystemSupported(); - static auto EnsureServiceAvailable(); - static auto InitializeSdkRuntime(); - static auto IsCompatibleDesktopAppSdkRuntimeInstalled(); - static auto GetLatestRuntimeReleaseInstallerUri(); - static auto GetLatestSettingsAppReleaseInstallerUri(); - static auto GetLatestConsoleAppReleaseInstallerUri(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h deleted file mode 100644 index 70023d180..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h +++ /dev/null @@ -1,331 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct IMidiUniversalPacket; - struct MidiChannel; - enum class MidiFunctionBlockDirection : int32_t; - enum class MidiFunctionBlockRepresentsMidi10Connection : int32_t; - enum class MidiFunctionBlockUIHint : int32_t; - struct MidiGroup; - struct MidiMessage128; - struct MidiMessage32; - struct MidiMessage64; - enum class MidiMessageType : int32_t; - enum class MidiPacketType : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Devices::Midi -{ - struct MidiActiveSensingMessage; - struct MidiChannelPressureMessage; - struct MidiContinueMessage; - struct MidiNoteOffMessage; - struct MidiNoteOnMessage; - struct MidiPitchBendChangeMessage; - struct MidiPolyphonicKeyPressureMessage; - struct MidiProgramChangeMessage; - struct MidiSongPositionPointerMessage; - struct MidiSongSelectMessage; - struct MidiStartMessage; - struct MidiStopMessage; - struct MidiSystemResetMessage; - struct MidiTimeCodeMessage; - struct MidiTimingClockMessage; - struct MidiTuneRequestMessage; -} -WINRT_EXPORT namespace winrt::Windows::Foundation::Collections -{ - template struct WINRT_IMPL_EMPTY_BASES IIterable; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - enum class Midi1ChannelVoiceMessageStatus : int32_t - { - NoteOff = 8, - NoteOn = 9, - PolyPressure = 10, - ControlChange = 11, - ProgramChange = 12, - ChannelPressure = 13, - PitchBend = 14, - }; - enum class Midi2ChannelVoiceMessageStatus : int32_t - { - RegisteredPerNoteController = 0, - AssignablePerNoteController = 1, - RegisteredController = 2, - AssignableController = 3, - RelativeRegisteredController = 4, - RelativeAssignableController = 5, - PerNotePitchBend = 6, - NoteOff = 8, - NoteOn = 9, - PolyPressure = 10, - ControlChange = 11, - ProgramChange = 12, - ChannelPressure = 13, - PitchBend = 14, - PerNoteManagement = 15, - }; - enum class MidiEndpointDiscoveryRequests : uint32_t - { - None = 0, - RequestEndpointInfo = 0x1, - RequestDeviceIdentity = 0x2, - RequestEndpointName = 0x4, - RequestProductInstanceId = 0x8, - RequestStreamConfiguration = 0x10, - }; - enum class MidiFunctionBlockDiscoveryRequests : uint32_t - { - None = 0, - RequestFunctionBlockInfo = 0x1, - RequestFunctionBlockName = 0x2, - }; - enum class MidiSystemExclusive8Status : int32_t - { - CompleteMessageInSingleMessagePacket = 0, - StartMessagePacket = 1, - ContinueMessagePacket = 2, - EndMessagePacket = 3, - }; - struct IMidiMessageBuilderStatics; - struct IMidiMessageConverterStatics; - struct IMidiMessageHelperStatics; - struct IMidiStreamMessageBuilderStatics; - struct MidiMessageBuilder; - struct MidiMessageConverter; - struct MidiMessageHelper; - struct MidiStreamMessageBuilder; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageBuilder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageConverter"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageHelper"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiStreamMessageBuilder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.Midi1ChannelVoiceMessageStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.Midi2ChannelVoiceMessageStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiEndpointDiscoveryRequests"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiFunctionBlockDiscoveryRequests"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiSystemExclusive8Status"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageBuilderStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageConverterStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageHelperStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiStreamMessageBuilderStatics"; - template <> inline constexpr guid guid_v{ 0x090C2C0B,0x95E4,0x5FF3,{ 0xA4,0xA9,0x2C,0x23,0x86,0x10,0x31,0x36 } }; // 090C2C0B-95E4-5FF3-A4A9-2C2386103136 - template <> inline constexpr guid guid_v{ 0x30BE1DB6,0x9E9E,0x5EAC,{ 0xB1,0xE6,0x6D,0x4F,0x11,0xFA,0x1E,0xBF } }; // 30BE1DB6-9E9E-5EAC-B1E6-6D4F11FA1EBF - template <> inline constexpr guid guid_v{ 0xCC84C703,0xE523,0x5597,{ 0xA3,0xD6,0xE8,0xAD,0x68,0x8A,0x96,0xCC } }; // CC84C703-E523-5597-A3D6-E8AD688A96CC - template <> inline constexpr guid guid_v{ 0x03E16477,0x3857,0x5ED3,{ 0x83,0x81,0x59,0xC4,0x0C,0xE4,0xA3,0x3D } }; // 03E16477-3857-5ED3-8381-59C40CE4A33D - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall BuildUtilityMessage(uint64_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemMessage(uint64_t, void*, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMidi1ChannelVoiceMessage(uint64_t, void*, int32_t, void*, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemExclusive7Message(uint64_t, void*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMidi2ChannelVoiceMessage(uint64_t, void*, int32_t, void*, uint16_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemExclusive8Message(uint64_t, void*, int32_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMixedDataSetChunkHeaderMessage(uint64_t, void*, uint8_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMixedDataSetChunkDataMessage(uint64_t, void*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFlexDataMessage(uint64_t, void*, uint8_t, uint8_t, void*, uint8_t, uint8_t, uint32_t, uint32_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamMessage(uint64_t, uint8_t, uint16_t, uint16_t, uint32_t, uint32_t, uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall ConvertMidi1Message(uint64_t, void*, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1Message2(uint64_t, void*, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1Message3(uint64_t, void*, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ChannelPressureMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1NoteOffMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1NoteOnMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1PitchBendChangeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1PolyphonicKeyPressureMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ProgramChangeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TimeCodeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SongPositionPointerMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SongSelectMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TuneRequestMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TimingClockMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1StartMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ContinueMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1StopMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ActiveSensingMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SystemResetMessage(uint64_t, void*, void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall ValidateMessage32MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage64MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage96MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage128MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall GetMessageTypeFromMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetPacketTypeFromMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall MessageTypeHasGroupField(int32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ReplaceGroupInMessageFirstWord(uint32_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetGroupFromMessageFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetStatusFromUtilityMessage(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromMidi1ChannelVoiceMessage(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusBankFromFlexDataMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromFlexDataMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromSystemCommonMessage(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromDataMessage64FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetNumberOfBytesFromDataMessage64FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromDataMessage128FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetNumberOfBytesFromDataMessage128FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall MessageTypeHasChannelField(int32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ReplaceChannelInMessageFirstWord(uint32_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetChannelFromMessageFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetFormFromStreamMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromStreamMessageFirstWord(uint32_t, uint16_t*) noexcept = 0; - virtual int32_t __stdcall GetMessageDisplayNameFromFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetPacketListFromWordList(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall GetWordListFromPacketList(void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall BuildEndpointDiscoveryMessage(uint64_t, uint8_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildEndpointInfoNotificationMessage(uint64_t, uint8_t, uint8_t, bool, uint8_t, bool, bool, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildDeviceIdentityNotificationMessage(uint64_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildEndpointNameNotificationMessages(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall BuildProductInstanceIdNotificationMessages(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseEndpointNameNotificationMessages(void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseProductInstanceIdNotificationMessages(void*, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamConfigurationRequestMessage(uint64_t, uint8_t, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamConfigurationNotificationMessage(uint64_t, uint8_t, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockDiscoveryMessage(uint64_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockInfoNotificationMessage(uint64_t, bool, uint8_t, int32_t, int32_t, int32_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockNameNotificationMessages(uint64_t, uint8_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseFunctionBlockNameNotificationMessages(void*, void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics - { - auto BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) const; - auto BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) const; - auto BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) const; - auto BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) const; - auto BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) const; - auto BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) const; - auto BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) const; - auto BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) const; - auto BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const; - auto BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics - { - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) const; - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) const; - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) const; - auto ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) const; - auto ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) const; - auto ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) const; - auto ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) const; - auto ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) const; - auto ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) const; - auto ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) const; - auto ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) const; - auto ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) const; - auto ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) const; - auto ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) const; - auto ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) const; - auto ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) const; - auto ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) const; - auto ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) const; - auto ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics - { - auto ValidateMessage32MessageType(uint32_t word0) const; - auto ValidateMessage64MessageType(uint32_t word0) const; - auto ValidateMessage96MessageType(uint32_t word0) const; - auto ValidateMessage128MessageType(uint32_t word0) const; - auto GetMessageTypeFromMessageFirstWord(uint32_t word0) const; - auto GetPacketTypeFromMessageFirstWord(uint32_t word0) const; - auto MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const; - auto ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) const; - auto GetGroupFromMessageFirstWord(uint32_t word0) const; - auto GetStatusFromUtilityMessage(uint32_t word0) const; - auto GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) const; - auto GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) const; - auto GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) const; - auto GetStatusFromFlexDataMessageFirstWord(uint32_t word0) const; - auto GetStatusFromSystemCommonMessage(uint32_t word0) const; - auto GetStatusFromDataMessage64FirstWord(uint32_t word0) const; - auto GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) const; - auto GetStatusFromDataMessage128FirstWord(uint32_t word0) const; - auto GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) const; - auto MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const; - auto ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) const; - auto GetChannelFromMessageFirstWord(uint32_t word0) const; - auto GetFormFromStreamMessageFirstWord(uint32_t word0) const; - auto GetStatusFromStreamMessageFirstWord(uint32_t word0) const; - auto GetMessageDisplayNameFromFirstWord(uint32_t word0) const; - auto GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) const; - auto GetWordListFromPacketList(param::iterable const& words) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics - { - auto BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) const; - auto BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) const; - auto BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) const; - auto BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) const; - auto BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) const; - auto ParseEndpointNameNotificationMessages(param::iterable const& messages) const; - auto ParseProductInstanceIdNotificationMessages(param::iterable const& messages) const; - auto BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) const; - auto BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) const; - auto BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) const; - auto BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) const; - auto BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) const; - auto ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h deleted file mode 100644 index e7fce06a8..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - struct WINRT_IMPL_EMPTY_BASES IMidiMessageBuilderStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageBuilderStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageBuilderStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageConverterStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageConverterStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageConverterStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageHelperStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageHelperStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageHelperStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiStreamMessageBuilderStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiStreamMessageBuilderStatics(std::nullptr_t = nullptr) noexcept {} - IMidiStreamMessageBuilderStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h deleted file mode 100644 index dd17a6032..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h +++ /dev/null @@ -1,98 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -#include "winrt/impl/Windows.Devices.Midi.1.h" -#include "winrt/impl/Windows.Foundation.Collections.1.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - struct MidiMessageBuilder - { - MidiMessageBuilder() = delete; - static auto BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved); - static auto BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3); - static auto BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4); - static auto BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5); - static auto BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data); - static auto BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12); - static auto BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2); - static auto BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13); - static auto BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data); - static auto BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data); - }; - struct MidiMessageConverter - { - MidiMessageConverter() = delete; - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte); - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1); - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2); - static auto ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage); - static auto ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage); - static auto ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage); - static auto ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage); - static auto ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage); - static auto ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage); - static auto ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage); - static auto ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage); - static auto ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage); - static auto ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage); - static auto ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage); - static auto ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage); - static auto ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage); - static auto ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage); - static auto ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage); - static auto ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage); - }; - struct MidiMessageHelper - { - MidiMessageHelper() = delete; - static auto ValidateMessage32MessageType(uint32_t word0); - static auto ValidateMessage64MessageType(uint32_t word0); - static auto ValidateMessage96MessageType(uint32_t word0); - static auto ValidateMessage128MessageType(uint32_t word0); - static auto GetMessageTypeFromMessageFirstWord(uint32_t word0); - static auto GetPacketTypeFromMessageFirstWord(uint32_t word0); - static auto MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType); - static auto ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup); - static auto GetGroupFromMessageFirstWord(uint32_t word0); - static auto GetStatusFromUtilityMessage(uint32_t word0); - static auto GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0); - static auto GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0); - static auto GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0); - static auto GetStatusFromFlexDataMessageFirstWord(uint32_t word0); - static auto GetStatusFromSystemCommonMessage(uint32_t word0); - static auto GetStatusFromDataMessage64FirstWord(uint32_t word0); - static auto GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0); - static auto GetStatusFromDataMessage128FirstWord(uint32_t word0); - static auto GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0); - static auto MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType); - static auto ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel); - static auto GetChannelFromMessageFirstWord(uint32_t word0); - static auto GetFormFromStreamMessageFirstWord(uint32_t word0); - static auto GetStatusFromStreamMessageFirstWord(uint32_t word0); - static auto GetMessageDisplayNameFromFirstWord(uint32_t word0); - static auto GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words); - static auto GetWordListFromPacketList(param::iterable const& words); - }; - struct MidiStreamMessageBuilder - { - MidiStreamMessageBuilder() = delete; - static auto BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request); - static auto BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps); - static auto BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4); - static auto BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name); - static auto BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId); - static auto ParseEndpointNameNotificationMessages(param::iterable const& messages); - static auto ParseProductInstanceIdNotificationMessages(param::iterable const& messages); - static auto BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps); - static auto BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps); - static auto BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags); - static auto BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams); - static auto BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name); - static auto ParseFunctionBlockNameNotificationMessages(param::iterable const& messages); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h deleted file mode 100644 index 5cd89b2ef..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h +++ /dev/null @@ -1,131 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - enum class MidiServiceConfigResponseStatus : int32_t - { - Success = 0, - ErrorTargetNotFound = 404, - ErrorConfigJsonNullOrEmpty = 600, - ErrorProcessingConfigJson = 601, - ErrorProcessingResponseJson = 605, - ErrorNotImplemented = 2600, - }; - struct IMidiServiceConfig; - struct IMidiServiceConfigStatics; - struct IMidiServiceMessageProcessingPluginConfig; - struct IMidiServiceTransportPluginConfig; - struct MidiServiceConfig; - struct MidiServiceConfigResponse; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfigResponseStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfigResponse"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceConfigStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceMessageProcessingPluginConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceTransportPluginConfig"; - template <> inline constexpr guid guid_v{ 0x0F1E4863,0xC76E,0x501F,{ 0x97,0x6A,0xDB,0x48,0xFC,0x0C,0x5B,0xB7 } }; // 0F1E4863-C76E-501F-976A-DB48FC0C5BB7 - template <> inline constexpr guid guid_v{ 0x20C5F99A,0x741B,0x513B,{ 0x86,0x55,0xAC,0x13,0x2F,0x05,0x16,0x6B } }; // 20C5F99A-741B-513B-8655-AC132F05166B - template <> inline constexpr guid guid_v{ 0x2EBCFA13,0x585A,0x4376,{ 0x8F,0xE1,0x63,0x57,0x84,0xFA,0x7F,0xD4 } }; // 2EBCFA13-585A-4376-8FE1-635784FA7FD4 - template <> inline constexpr guid guid_v{ 0xB2417DDE,0xEF35,0x499B,{ 0xA8,0x9B,0x0A,0x4C,0x32,0xCC,0x69,0x9A } }; // B2417DDE-EF35-499B-A89B-0A4C32CC699A - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall UpdateTransportPluginConfig(void*, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse*) noexcept = 0; - virtual int32_t __stdcall UpdateProcessingPluginConfig(void*, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_MessageProcessingPluginId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_PluginInstanceId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_IsFromCurrentConfigFile(bool*) noexcept = 0; - virtual int32_t __stdcall GetConfigJson(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_TransportId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_IsFromCurrentConfigFile(bool*) noexcept = 0; - virtual int32_t __stdcall GetConfigJson(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfig - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics - { - auto UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) const; - auto UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto MessageProcessingPluginId() const; - [[nodiscard]] auto PluginInstanceId() const; - [[nodiscard]] auto IsFromCurrentConfigFile() const; - auto GetConfigJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig - { - [[nodiscard]] auto TransportId() const; - [[nodiscard]] auto IsFromCurrentConfigFile() const; - auto GetConfigJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig; - }; - struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse - { - int32_t Status; - void* ResponseJson; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h deleted file mode 100644 index 6cc54f32d..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - struct WINRT_IMPL_EMPTY_BASES IMidiServiceConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceConfigStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceConfigStatics(std::nullptr_t = nullptr) noexcept {} - IMidiServiceConfigStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceMessageProcessingPluginConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceMessageProcessingPluginConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceMessageProcessingPluginConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceTransportPluginConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceTransportPluginConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceTransportPluginConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h deleted file mode 100644 index 66de80d94..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h +++ /dev/null @@ -1,30 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - struct MidiServiceConfigResponse - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponseStatus Status; - hstring ResponseJson; - }; - inline bool operator==(MidiServiceConfigResponse const& left, MidiServiceConfigResponse const& right) noexcept - { - return left.Status == right.Status && left.ResponseJson == right.ResponseJson; - } - inline bool operator!=(MidiServiceConfigResponse const& left, MidiServiceConfigResponse const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiServiceConfig : winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig - { - MidiServiceConfig(std::nullptr_t) noexcept {} - MidiServiceConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig(ptr, take_ownership_from_abi) {} - static auto UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate); - static auto UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 9f04cb3b7..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 9f6fbd35a..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index f6661a4d4..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index 2e35b702d..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index ad453f7b6..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll deleted file mode 100644 index 3e71dd3a7..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 15faccfac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 350a04aed..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 7dc39cedd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index 3992c2ade..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index c568bcbd5..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 9f04cb3b7..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 9f6fbd35a..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index f6661a4d4..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index 2e35b702d..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index ad453f7b6..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 15faccfac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 350a04aed..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 7dc39cedd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index 3992c2ade..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 7fa3f53a0..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index ce1286d12..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index ed9db7ba8..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index d94c28773..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 17a5d258e..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 25f462d84..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 6a4532ab4..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 17d899219..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index 62c9803bc..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index c568bcbd5..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 7fa3f53a0..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index ce1286d12..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index ed9db7ba8..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index d94c28773..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 17a5d258e..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 25f462d84..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 6a4532ab4..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 17d899219..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index 62c9803bc..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/README.md b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/README.md deleted file mode 100644 index 112ed6921..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Microsoft.Windows.Devices.Midi2 - -Note. This package is currently in developer preview. Please see release notes - -https://aka.ms/midi diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props deleted file mode 100644 index b77844b02..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - $(MSBuildThisFileDirectory)..\..\ - - - - - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Messages.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd - - - $$(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Diagnostics.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd - - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Initialization.winmd - - - - - \ No newline at end of file diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets deleted file mode 100644 index 2cdea5d13..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h deleted file mode 100644 index 1d0756148..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h +++ /dev/null @@ -1,293 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte1() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte1(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte2() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte2(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte3() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte3(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte3(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte3(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte4() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte4(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte4(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte4(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::AsCombined28BitValue() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_AsCombined28BitValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::IsBroadcast() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_IsBroadcast(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::IsReserved() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_IsReserved(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory::CreateInstance(uint32_t combined28BitValue) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdFactory)->CreateInstance(combined28BitValue, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory::CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdFactory)->CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::CreateBroadcast() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->CreateBroadcast(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::CreateRandom() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->CreateRandom(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Byte1(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte1(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte2(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte2(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte2(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte3(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte3()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte3(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte3(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte4(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte4()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte4(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte4(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AsCombined28BitValue(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AsCombined28BitValue()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsBroadcast(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsBroadcast()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsReserved(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsReserved()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint32_t combined28BitValue, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(combined28BitValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateBroadcast(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateBroadcast()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateRandom(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateRandom()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - inline MidiUniqueId::MidiUniqueId() : - MidiUniqueId(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiUniqueId::MidiUniqueId(uint32_t combined28BitValue) : - MidiUniqueId(impl::call_factory([&](IMidiUniqueIdFactory const& f) { return f.CreateInstance(combined28BitValue); })) - { - } - inline MidiUniqueId::MidiUniqueId(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) : - MidiUniqueId(impl::call_factory([&](IMidiUniqueIdFactory const& f) { return f.CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4); })) - { - } - inline auto MidiUniqueId::ShortLabel() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiUniqueId::LongLabel() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiUniqueId::CreateBroadcast() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.CreateBroadcast(); }); - } - inline auto MidiUniqueId::CreateRandom() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.CreateRandom(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h deleted file mode 100644 index ddc7ab50a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h +++ /dev/null @@ -1,273 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedGroup() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_IncludedGroup(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_IncludedGroup(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedChannels() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_IncludedChannels(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::IncludedGroups() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_IncludedGroups(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::IncludedMessageTypes() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_IncludedMessageTypes(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedGroup(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IncludedGroup()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IncludedGroup(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IncludedGroup(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IncludedChannels(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedChannels()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedGroups(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedGroups()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedMessageTypes(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedMessageTypes()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - inline MidiChannelEndpointListener::MidiChannelEndpointListener() : - MidiChannelEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiGroupEndpointListener::MidiGroupEndpointListener() : - MidiGroupEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiMessageTypeEndpointListener::MidiMessageTypeEndpointListener() : - MidiMessageTypeEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h deleted file mode 100644 index 1eaad3621..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h +++ /dev/null @@ -1,333 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::DiagnosticsLoopbackAEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->get_DiagnosticsLoopbackAEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::DiagnosticsLoopbackBEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->get_DiagnosticsLoopbackBEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::PingService(uint8_t pingCount) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->PingService(pingCount, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::MidiServicePingResponseSummary{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->PingService2(pingCount, timeoutMilliseconds, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::MidiServicePingResponseSummary{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetInstalledTransportPlugins() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetInstalledTransportPlugins(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetInstalledMessageProcessingPlugins() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetInstalledMessageProcessingPlugins(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetActiveSessions() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetActiveSessions(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::Success() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_Success(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::FailureReason() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_FailureReason(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::TotalPingRoundTripMidiClock() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_TotalPingRoundTripMidiClock(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::AveragePingRoundTripMidiClock() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_AveragePingRoundTripMidiClock(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::Responses() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_Responses(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::SessionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_SessionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::ProcessId() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_ProcessId(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::ProcessName() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_ProcessName(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::SessionName() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_SessionName(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::StartTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_StartTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::Connections() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_Connections(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_DiagnosticsLoopbackAEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DiagnosticsLoopbackAEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DiagnosticsLoopbackBEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DiagnosticsLoopbackBEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PingService(uint8_t pingCount, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PingService(pingCount)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PingService2(uint8_t pingCount, uint32_t timeoutMilliseconds, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PingService(pingCount, timeoutMilliseconds)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall GetInstalledTransportPlugins(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetInstalledTransportPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetInstalledMessageProcessingPlugins(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetInstalledMessageProcessingPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetActiveSessions(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetActiveSessions()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Success(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Success()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FailureReason(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FailureReason()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TotalPingRoundTripMidiClock(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TotalPingRoundTripMidiClock()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AveragePingRoundTripMidiClock(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AveragePingRoundTripMidiClock()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Responses(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Responses()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_SessionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ProcessId(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ProcessId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ProcessName(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ProcessName()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_SessionName(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionName()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_StartTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().StartTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Connections(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Connections()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - inline auto MidiDiagnostics::DiagnosticsLoopbackAEndpointDeviceId() - { - return impl::call_factory_cast([](IMidiDiagnosticsStatics const& f) { return f.DiagnosticsLoopbackAEndpointDeviceId(); }); - } - inline auto MidiDiagnostics::DiagnosticsLoopbackBEndpointDeviceId() - { - return impl::call_factory_cast([](IMidiDiagnosticsStatics const& f) { return f.DiagnosticsLoopbackBEndpointDeviceId(); }); - } - inline auto MidiDiagnostics::PingService(uint8_t pingCount) - { - return impl::call_factory([&](IMidiDiagnosticsStatics const& f) { return f.PingService(pingCount); }); - } - inline auto MidiDiagnostics::PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) - { - return impl::call_factory([&](IMidiDiagnosticsStatics const& f) { return f.PingService(pingCount, timeoutMilliseconds); }); - } - inline auto MidiReporting::GetInstalledTransportPlugins() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetInstalledTransportPlugins(); }); - } - inline auto MidiReporting::GetInstalledMessageProcessingPlugins() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetInstalledMessageProcessingPlugins(); }); - } - inline auto MidiReporting::GetActiveSessions() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetActiveSessions(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h deleted file mode 100644 index 4122a5f63..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h +++ /dev/null @@ -1,277 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::AssociationId(winrt::guid const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_AssociationId(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionA() const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_EndpointDefinitionA(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionA(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_EndpointDefinitionA(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionB() const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_EndpointDefinitionB(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionB(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_EndpointDefinitionB(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory::CreateInstance(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfigFactory)->CreateInstance(impl::bind_in(associationId), impl::bind_in(endpointDefinitionA), impl::bind_in(endpointDefinitionB), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig::AssociationId(winrt::guid const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig)->put_AssociationId(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory::CreateInstance(winrt::guid const& associationId) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfigFactory)->CreateInstance(impl::bind_in(associationId), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::IsTransportAvailable() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->get_IsTransportAvailable(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::AbstractionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->get_AbstractionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationResult result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->CreateTransientLoopbackEndpoints(*(void**)(&creationConfig), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->RemoveTransientLoopbackEndpoints(*(void**)(&deletionConfig), &result)); - return result; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_AssociationId(winrt::guid value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AssociationId(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDefinitionA()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDefinitionA(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDefinitionB()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDefinitionB(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(winrt::guid associationId, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition endpointDefinitionA, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition endpointDefinitionB, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&associationId), *reinterpret_cast(&endpointDefinitionA), *reinterpret_cast(&endpointDefinitionB))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_AssociationId(winrt::guid value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AssociationId(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(winrt::guid associationId, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&associationId))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsTransportAvailable(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsTransportAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AbstractionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AbstractionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateTransientLoopbackEndpoints(void* creationConfig, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateTransientLoopbackEndpoints(*reinterpret_cast(&creationConfig))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall RemoveTransientLoopbackEndpoints(void* deletionConfig, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().RemoveTransientLoopbackEndpoints(*reinterpret_cast(&deletionConfig))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - inline MidiLoopbackEndpointCreationConfig::MidiLoopbackEndpointCreationConfig() : - MidiLoopbackEndpointCreationConfig(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiLoopbackEndpointCreationConfig::MidiLoopbackEndpointCreationConfig(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) : - MidiLoopbackEndpointCreationConfig(impl::call_factory([&](IMidiLoopbackEndpointCreationConfigFactory const& f) { return f.CreateInstance(associationId, endpointDefinitionA, endpointDefinitionB); })) - { - } - inline MidiLoopbackEndpointDeletionConfig::MidiLoopbackEndpointDeletionConfig(winrt::guid const& associationId) : - MidiLoopbackEndpointDeletionConfig(impl::call_factory([&](IMidiLoopbackEndpointDeletionConfigFactory const& f) { return f.CreateInstance(associationId); })) - { - } - inline auto MidiLoopbackEndpointManager::IsTransportAvailable() - { - return impl::call_factory_cast([](IMidiLoopbackEndpointManagerStatics const& f) { return f.IsTransportAvailable(); }); - } - inline auto MidiLoopbackEndpointManager::AbstractionId() - { - return impl::call_factory_cast([](IMidiLoopbackEndpointManagerStatics const& f) { return f.AbstractionId(); }); - } - inline auto MidiLoopbackEndpointManager::CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) - { - return impl::call_factory([&](IMidiLoopbackEndpointManagerStatics const& f) { return f.CreateTransientLoopbackEndpoints(creationConfig); }); - } - inline auto MidiLoopbackEndpointManager::RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) - { - return impl::call_factory([&](IMidiLoopbackEndpointManagerStatics const& f) { return f.RemoveTransientLoopbackEndpoints(deletionConfig); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h deleted file mode 100644 index 3fec6b2d9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h +++ /dev/null @@ -1,162 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::IsOperatingSystemSupported() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->IsOperatingSystemSupported(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::EnsureServiceAvailable() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->EnsureServiceAvailable(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::InitializeSdkRuntime() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->InitializeSdkRuntime(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::IsCompatibleDesktopAppSdkRuntimeInstalled() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->IsCompatibleDesktopAppSdkRuntimeInstalled(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestRuntimeReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestRuntimeReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestSettingsAppReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestSettingsAppReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestConsoleAppReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestConsoleAppReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall IsOperatingSystemSupported(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsOperatingSystemSupported()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall EnsureServiceAvailable(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().EnsureServiceAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall InitializeSdkRuntime(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().InitializeSdkRuntime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsCompatibleDesktopAppSdkRuntimeInstalled(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsCompatibleDesktopAppSdkRuntimeInstalled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestRuntimeReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestRuntimeReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestSettingsAppReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestSettingsAppReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestConsoleAppReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestConsoleAppReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - inline auto MidiServicesInitializer::IsOperatingSystemSupported() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.IsOperatingSystemSupported(); }); - } - inline auto MidiServicesInitializer::EnsureServiceAvailable() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.EnsureServiceAvailable(); }); - } - inline auto MidiServicesInitializer::InitializeSdkRuntime() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.InitializeSdkRuntime(); }); - } - inline auto MidiServicesInitializer::IsCompatibleDesktopAppSdkRuntimeInstalled() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.IsCompatibleDesktopAppSdkRuntimeInstalled(); }); - } - inline auto MidiServicesInitializer::GetLatestRuntimeReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestRuntimeReleaseInstallerUri(); }); - } - inline auto MidiServicesInitializer::GetLatestSettingsAppReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestSettingsAppReleaseInstallerUri(); }); - } - inline auto MidiServicesInitializer::GetLatestConsoleAppReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestConsoleAppReleaseInstallerUri(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h deleted file mode 100644 index dc6388835..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h +++ /dev/null @@ -1,1341 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Windows.Devices.Midi.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildUtilityMessage(timestamp, status, dataOrReserved, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemMessage(timestamp, *(void**)(&group), status, midi1Byte2, midi1Byte3, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMidi1ChannelVoiceMessage(timestamp, *(void**)(&group), static_cast(status), *(void**)(&channel), byte3, byte4, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemExclusive7Message(timestamp, *(void**)(&group), status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMidi2ChannelVoiceMessage(timestamp, *(void**)(&group), static_cast(status), *(void**)(&channel), index, data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemExclusive8Message(timestamp, *(void**)(&group), static_cast(status), numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMixedDataSetChunkHeaderMessage(timestamp, *(void**)(&group), mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMixedDataSetChunkDataMessage(timestamp, *(void**)(&group), mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildFlexDataMessage(timestamp, *(void**)(&group), form, address, *(void**)(&channel), statusBank, status, word1Data, word2Data, word3Data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message(timestamp, *(void**)(&group), statusByte, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message2(timestamp, *(void**)(&group), statusByte, dataByte1, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message3(timestamp, *(void**)(&group), statusByte, dataByte1, dataByte2, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ChannelPressureMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1NoteOffMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1NoteOnMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1PitchBendChangeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1PolyphonicKeyPressureMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ProgramChangeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TimeCodeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SongPositionPointerMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SongSelectMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TuneRequestMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TimingClockMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1StartMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ContinueMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1StopMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ActiveSensingMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SystemResetMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage32MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage32MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage64MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage64MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage96MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage96MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage128MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage128MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetMessageTypeFromMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetMessageTypeFromMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetPacketTypeFromMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetPacketTypeFromMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->MessageTypeHasGroupField(static_cast(messageType), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ReplaceGroupInMessageFirstWord(word0, *(void**)(&newGroup), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetGroupFromMessageFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetGroupFromMessageFirstWord(word0, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromUtilityMessage(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromUtilityMessage(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromMidi1ChannelVoiceMessage(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusBankFromFlexDataMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromFlexDataMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromFlexDataMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromSystemCommonMessage(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromSystemCommonMessage(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromDataMessage64FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromDataMessage64FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetNumberOfBytesFromDataMessage64FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromDataMessage128FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromDataMessage128FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetNumberOfBytesFromDataMessage128FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->MessageTypeHasChannelField(static_cast(messageType), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ReplaceChannelInMessageFirstWord(word0, *(void**)(&newChannel), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetChannelFromMessageFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetChannelFromMessageFirstWord(word0, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiChannel{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetFormFromStreamMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetFormFromStreamMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromStreamMessageFirstWord(uint32_t word0) const - { - uint16_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromStreamMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetMessageDisplayNameFromFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetMessageDisplayNameFromFirstWord(word0, &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetPacketListFromWordList(timestamp, *(void**)(&words), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetWordListFromPacketList(param::iterable const& words) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetWordListFromPacketList(*(void**)(&words), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, static_cast(request), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointNameNotificationMessages(timestamp, *(void**)(&name), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildProductInstanceIdNotificationMessages(timestamp, *(void**)(&productInstanceId), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseEndpointNameNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseEndpointNameNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseProductInstanceIdNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseProductInstanceIdNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, static_cast(requestFlags), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, static_cast(uiHint), static_cast(midi10), static_cast(direction), firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, *(void**)(&name), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseFunctionBlockNameNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildUtilityMessage(timestamp, status, dataOrReserved)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemMessage(uint64_t timestamp, void* group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemMessage(timestamp, *reinterpret_cast(&group), status, midi1Byte2, midi1Byte3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMidi1ChannelVoiceMessage(uint64_t timestamp, void* group, int32_t status, void* channel, uint8_t byte3, uint8_t byte4, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMidi1ChannelVoiceMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), *reinterpret_cast(&channel), byte3, byte4)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemExclusive7Message(uint64_t timestamp, void* group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemExclusive7Message(timestamp, *reinterpret_cast(&group), status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMidi2ChannelVoiceMessage(uint64_t timestamp, void* group, int32_t status, void* channel, uint16_t index, uint32_t data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMidi2ChannelVoiceMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), *reinterpret_cast(&channel), index, data)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemExclusive8Message(uint64_t timestamp, void* group, int32_t status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemExclusive8Message(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, void* group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMixedDataSetChunkHeaderMessage(timestamp, *reinterpret_cast(&group), mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMixedDataSetChunkDataMessage(uint64_t timestamp, void* group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMixedDataSetChunkDataMessage(timestamp, *reinterpret_cast(&group), mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFlexDataMessage(uint64_t timestamp, void* group, uint8_t form, uint8_t address, void* channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFlexDataMessage(timestamp, *reinterpret_cast(&group), form, address, *reinterpret_cast(&channel), statusBank, status, word1Data, word2Data, word3Data)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall ConvertMidi1Message(uint64_t timestamp, void* group, uint8_t statusByte, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1Message2(uint64_t timestamp, void* group, uint8_t statusByte, uint8_t dataByte1, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte, dataByte1)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1Message3(uint64_t timestamp, void* group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte, dataByte1, dataByte2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ChannelPressureMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ChannelPressureMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1NoteOffMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1NoteOffMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1NoteOnMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1NoteOnMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1PitchBendChangeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1PolyphonicKeyPressureMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ProgramChangeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ProgramChangeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TimeCodeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TimeCodeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SongPositionPointerMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SongSelectMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SongSelectMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TuneRequestMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TuneRequestMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TimingClockMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TimingClockMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1StartMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1StartMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ContinueMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ContinueMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1StopMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1StopMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ActiveSensingMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ActiveSensingMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SystemResetMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SystemResetMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall ValidateMessage32MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage32MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage64MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage64MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage96MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage96MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage128MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage128MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessageTypeFromMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessageTypeFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetPacketTypeFromMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetPacketTypeFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall MessageTypeHasGroupField(int32_t messageType, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().MessageTypeHasGroupField(*reinterpret_cast(&messageType))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ReplaceGroupInMessageFirstWord(uint32_t word0, void* newGroup, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ReplaceGroupInMessageFirstWord(word0, *reinterpret_cast(&newGroup))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetGroupFromMessageFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetGroupFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromUtilityMessage(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromUtilityMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromMidi1ChannelVoiceMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusBankFromFlexDataMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromFlexDataMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromFlexDataMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromSystemCommonMessage(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromSystemCommonMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromDataMessage64FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromDataMessage64FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetNumberOfBytesFromDataMessage64FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromDataMessage128FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromDataMessage128FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetNumberOfBytesFromDataMessage128FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall MessageTypeHasChannelField(int32_t messageType, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().MessageTypeHasChannelField(*reinterpret_cast(&messageType))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ReplaceChannelInMessageFirstWord(uint32_t word0, void* newChannel, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ReplaceChannelInMessageFirstWord(word0, *reinterpret_cast(&newChannel))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetChannelFromMessageFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetChannelFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetFormFromStreamMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetFormFromStreamMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromStreamMessageFirstWord(uint32_t word0, uint16_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromStreamMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessageDisplayNameFromFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessageDisplayNameFromFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetPacketListFromWordList(uint64_t timestamp, void* words, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetPacketListFromWordList(timestamp, *reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetWordListFromPacketList(void* words, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetWordListFromPacketList(*reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, uint32_t request, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, *reinterpret_cast(&request))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildEndpointNameNotificationMessages(uint64_t timestamp, void* name, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildEndpointNameNotificationMessages(timestamp, *reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildProductInstanceIdNotificationMessages(uint64_t timestamp, void* productInstanceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildProductInstanceIdNotificationMessages(timestamp, *reinterpret_cast(&productInstanceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseEndpointNameNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseEndpointNameNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseProductInstanceIdNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseProductInstanceIdNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, uint32_t requestFlags, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, *reinterpret_cast(&requestFlags))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, int32_t uiHint, int32_t midi10, int32_t direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, *reinterpret_cast(&uiHint), *reinterpret_cast(&midi10), *reinterpret_cast(&direction), firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, void* name, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, *reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseFunctionBlockNameNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseFunctionBlockNameNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - constexpr auto operator|(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiEndpointDiscoveryRequests const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left ^ right; - return left; - } - constexpr auto operator|(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiFunctionBlockDiscoveryRequests const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left ^ right; - return left; - } - inline auto MidiMessageBuilder::BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildUtilityMessage(timestamp, status, dataOrReserved); }); - } - inline auto MidiMessageBuilder::BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemMessage(timestamp, group, status, midi1Byte2, midi1Byte3); }); - } - inline auto MidiMessageBuilder::BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMidi1ChannelVoiceMessage(timestamp, group, status, channel, byte3, byte4); }); - } - inline auto MidiMessageBuilder::BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemExclusive7Message(timestamp, group, status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5); }); - } - inline auto MidiMessageBuilder::BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMidi2ChannelVoiceMessage(timestamp, group, status, channel, index, data); }); - } - inline auto MidiMessageBuilder::BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemExclusive8Message(timestamp, group, status, numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12); }); - } - inline auto MidiMessageBuilder::BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMixedDataSetChunkHeaderMessage(timestamp, group, mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2); }); - } - inline auto MidiMessageBuilder::BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMixedDataSetChunkDataMessage(timestamp, group, mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13); }); - } - inline auto MidiMessageBuilder::BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildFlexDataMessage(timestamp, group, form, address, channel, statusBank, status, word1Data, word2Data, word3Data); }); - } - inline auto MidiMessageBuilder::BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte, dataByte1); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte, dataByte1, dataByte2); }); - } - inline auto MidiMessageConverter::ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ChannelPressureMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1NoteOffMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1NoteOnMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1PitchBendChangeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1PolyphonicKeyPressureMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ProgramChangeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TimeCodeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SongPositionPointerMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SongSelectMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TuneRequestMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TimingClockMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1StartMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ContinueMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1StopMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ActiveSensingMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SystemResetMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageHelper::ValidateMessage32MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage32MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage64MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage64MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage96MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage96MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage128MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage128MessageType(word0); }); - } - inline auto MidiMessageHelper::GetMessageTypeFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetMessageTypeFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetPacketTypeFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetPacketTypeFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.MessageTypeHasGroupField(messageType); }); - } - inline auto MidiMessageHelper::ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ReplaceGroupInMessageFirstWord(word0, newGroup); }); - } - inline auto MidiMessageHelper::GetGroupFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetGroupFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromUtilityMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromUtilityMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromMidi1ChannelVoiceMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusBankFromFlexDataMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromFlexDataMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromFlexDataMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromSystemCommonMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromSystemCommonMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromDataMessage64FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromDataMessage64FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetNumberOfBytesFromDataMessage64FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromDataMessage128FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromDataMessage128FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetNumberOfBytesFromDataMessage128FirstWord(word0); }); - } - inline auto MidiMessageHelper::MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.MessageTypeHasChannelField(messageType); }); - } - inline auto MidiMessageHelper::ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ReplaceChannelInMessageFirstWord(word0, newChannel); }); - } - inline auto MidiMessageHelper::GetChannelFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetChannelFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetFormFromStreamMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetFormFromStreamMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromStreamMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromStreamMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetMessageDisplayNameFromFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetMessageDisplayNameFromFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetPacketListFromWordList(timestamp, words); }); - } - inline auto MidiMessageHelper::GetWordListFromPacketList(param::iterable const& words) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetWordListFromPacketList(words); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, request); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointNameNotificationMessages(timestamp, name); }); - } - inline auto MidiStreamMessageBuilder::BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildProductInstanceIdNotificationMessages(timestamp, productInstanceId); }); - } - inline auto MidiStreamMessageBuilder::ParseEndpointNameNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseEndpointNameNotificationMessages(messages); }); - } - inline auto MidiStreamMessageBuilder::ParseProductInstanceIdNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseProductInstanceIdNotificationMessages(messages); }); - } - inline auto MidiStreamMessageBuilder::BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, requestFlags); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, uiHint, midi10, direction, firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, name); }); - } - inline auto MidiStreamMessageBuilder::ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseFunctionBlockNameNotificationMessages(messages); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h deleted file mode 100644 index e221d614e..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h +++ /dev/null @@ -1,192 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics::UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) const - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponse result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfigStatics)->UpdateTransportPluginConfig(*(void**)(&configUpdate), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics::UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) const - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponse result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfigStatics)->UpdateProcessingPluginConfig(*(void**)(&configUpdate), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::MessageProcessingPluginId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_MessageProcessingPluginId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::PluginInstanceId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_PluginInstanceId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::IsFromCurrentConfigFile() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_IsFromCurrentConfigFile(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::GetConfigJson() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->GetConfigJson(&result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::TransportId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->get_TransportId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::IsFromCurrentConfigFile() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->get_IsFromCurrentConfigFile(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::GetConfigJson() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->GetConfigJson(&result)); - return hstring{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall UpdateTransportPluginConfig(void* configUpdate, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateTransportPluginConfig(*reinterpret_cast(&configUpdate))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateProcessingPluginConfig(void* configUpdate, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateProcessingPluginConfig(*reinterpret_cast(&configUpdate))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageProcessingPluginId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageProcessingPluginId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PluginInstanceId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PluginInstanceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsFromCurrentConfigFile(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsFromCurrentConfigFile()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetConfigJson(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetConfigJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; - template - struct produce : produce_base - { - int32_t __stdcall get_TransportId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TransportId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsFromCurrentConfigFile(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsFromCurrentConfigFile()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetConfigJson(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetConfigJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - inline auto MidiServiceConfig::UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) - { - return impl::call_factory([&](IMidiServiceConfigStatics const& f) { return f.UpdateTransportPluginConfig(configUpdate); }); - } - inline auto MidiServiceConfig::UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) - { - return impl::call_factory([&](IMidiServiceConfigStatics const& f) { return f.UpdateProcessingPluginConfig(configUpdate); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h deleted file mode 100644 index 3958e0869..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h +++ /dev/null @@ -1,283 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct WINRT_IMPL_EMPTY_BASES IMidiChannel : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannel(std::nullptr_t = nullptr) noexcept {} - IMidiChannel(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiChannelFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelFactory(std::nullptr_t = nullptr) noexcept {} - IMidiChannelFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiChannelStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelStatics(std::nullptr_t = nullptr) noexcept {} - IMidiChannelStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiClock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiClock(std::nullptr_t = nullptr) noexcept {} - IMidiClock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiClockStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiClockStatics(std::nullptr_t = nullptr) noexcept {} - IMidiClockStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnection : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnection(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnection(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionSettings : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionSettings(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionSettings(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionSource : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionSource(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformation : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformation(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationAddedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationAddedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationAddedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationRemovedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationRemovedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationRemovedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationUpdatedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationUpdatedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationUpdatedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceWatcher : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceWatcher(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceWatcher(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceWatcherStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceWatcherStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceWatcherStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointMessageProcessingPlugin : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointMessageProcessingPlugin(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointMessageProcessingPlugin(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiFunctionBlock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiFunctionBlock(std::nullptr_t = nullptr) noexcept {} - IMidiFunctionBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroup : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroup(std::nullptr_t = nullptr) noexcept {} - IMidiGroup(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupFactory(std::nullptr_t = nullptr) noexcept {} - IMidiGroupFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupStatics(std::nullptr_t = nullptr) noexcept {} - IMidiGroupStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupTerminalBlock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupTerminalBlock(std::nullptr_t = nullptr) noexcept {} - IMidiGroupTerminalBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageReceivedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageReceivedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiMessageReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageReceivedEventSource : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageReceivedEventSource(std::nullptr_t = nullptr) noexcept {} - IMidiMessageReceivedEventSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiSession : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiSession(std::nullptr_t = nullptr) noexcept {} - IMidiSession(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiSessionStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiSessionStatics(std::nullptr_t = nullptr) noexcept {} - IMidiSessionStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniversalPacket : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniversalPacket(std::nullptr_t = nullptr) noexcept {} - IMidiUniversalPacket(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h deleted file mode 100644 index 438febb66..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h +++ /dev/null @@ -1,104 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct IMidiUniqueId; - struct IMidiUniqueIdFactory; - struct IMidiUniqueIdStatics; - struct MidiUniqueId; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.MidiUniqueId"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueId"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueIdFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueIdStatics"; - template <> inline constexpr guid guid_v{ 0x2476DCBC,0x3CD7,0x5346,{ 0x9F,0x5C,0xE6,0xD1,0xAD,0xD1,0x67,0x41 } }; // 2476DCBC-3CD7-5346-9F5C-E6D1ADD16741 - template <> inline constexpr guid guid_v{ 0xD2F59A5C,0xE78B,0x5D7A,{ 0x9B,0x22,0x3D,0xC0,0x28,0x58,0x1A,0x64 } }; // D2F59A5C-E78B-5D7A-9B22-3DC028581A64 - template <> inline constexpr guid guid_v{ 0x27B256C2,0xB3B0,0x507A,{ 0xBC,0x6B,0x48,0xE6,0xFC,0x42,0xB4,0x68 } }; // 27B256C2-B3B0-507A-BC6B-48E6FC42B468 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Byte1(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte1(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte2(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte2(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte3(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte3(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte4(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte4(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_AsCombined28BitValue(uint32_t*) noexcept = 0; - virtual int32_t __stdcall get_IsBroadcast(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsReserved(bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall CreateBroadcast(void**) noexcept = 0; - virtual int32_t __stdcall CreateRandom(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId - { - [[nodiscard]] auto Byte1() const; - auto Byte1(uint8_t value) const; - [[nodiscard]] auto Byte2() const; - auto Byte2(uint8_t value) const; - [[nodiscard]] auto Byte3() const; - auto Byte3(uint8_t value) const; - [[nodiscard]] auto Byte4() const; - auto Byte4(uint8_t value) const; - [[nodiscard]] auto AsCombined28BitValue() const; - [[nodiscard]] auto IsBroadcast() const; - [[nodiscard]] auto IsReserved() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory - { - auto CreateInstance(uint32_t combined28BitValue) const; - auto CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto CreateBroadcast() const; - auto CreateRandom() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h deleted file mode 100644 index d105e51bc..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h +++ /dev/null @@ -1,31 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueId : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueId(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueId(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueIdFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueIdFactory(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueIdFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueIdStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueIdStatics(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueIdStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h deleted file mode 100644 index b4914e773..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h +++ /dev/null @@ -1,22 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct WINRT_IMPL_EMPTY_BASES MidiUniqueId : winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId - { - MidiUniqueId(std::nullptr_t) noexcept {} - MidiUniqueId(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId(ptr, take_ownership_from_abi) {} - MidiUniqueId(); - explicit MidiUniqueId(uint32_t combined28BitValue); - MidiUniqueId(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto CreateBroadcast(); - static auto CreateRandom(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h deleted file mode 100644 index 6bf8c9af9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h +++ /dev/null @@ -1,116 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiGroup; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct IMidiChannelEndpointListener; - struct IMidiGroupEndpointListener; - struct IMidiMessageTypeEndpointListener; - struct MidiChannelEndpointListener; - struct MidiGroupEndpointListener; - struct MidiMessageTypeEndpointListener; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiChannelEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiGroupEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiMessageTypeEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiChannelEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiGroupEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiMessageTypeEndpointListener"; - template <> inline constexpr guid guid_v{ 0xFD961EBD,0xE883,0x5C78,{ 0xB1,0x00,0xC0,0x2B,0x70,0x50,0xAE,0x59 } }; // FD961EBD-E883-5C78-B100-C02B7050AE59 - template <> inline constexpr guid guid_v{ 0xA8FE598F,0x2E81,0x507E,{ 0x99,0x46,0x44,0x45,0x45,0x26,0xBF,0x61 } }; // A8FE598F-2E81-507E-9946-44454526BF61 - template <> inline constexpr guid guid_v{ 0x3F03A513,0x6032,0x58F6,{ 0x98,0x17,0xB8,0xD3,0xC7,0xE8,0x9B,0x89 } }; // 3F03A513-6032-58F6-9817-B8D3C7E89B89 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedGroup(void**) noexcept = 0; - virtual int32_t __stdcall put_IncludedGroup(void*) noexcept = 0; - virtual int32_t __stdcall get_IncludedChannels(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedGroups(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedMessageTypes(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener - { - [[nodiscard]] auto IncludedGroup() const; - auto IncludedGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& value) const; - [[nodiscard]] auto IncludedChannels() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener - { - [[nodiscard]] auto IncludedGroups() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener - { - [[nodiscard]] auto IncludedMessageTypes() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h deleted file mode 100644 index 9cef219ea..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h +++ /dev/null @@ -1,31 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct WINRT_IMPL_EMPTY_BASES IMidiChannelEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiChannelEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiGroupEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageTypeEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageTypeEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiMessageTypeEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h deleted file mode 100644 index fde3586c8..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h +++ /dev/null @@ -1,32 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct WINRT_IMPL_EMPTY_BASES MidiChannelEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener, - impl::require - { - MidiChannelEndpointListener(std::nullptr_t) noexcept {} - MidiChannelEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener(ptr, take_ownership_from_abi) {} - MidiChannelEndpointListener(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroupEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener, - impl::require - { - MidiGroupEndpointListener(std::nullptr_t) noexcept {} - MidiGroupEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener(ptr, take_ownership_from_abi) {} - MidiGroupEndpointListener(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessageTypeEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener, - impl::require - { - MidiMessageTypeEndpointListener(std::nullptr_t) noexcept {} - MidiMessageTypeEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener(ptr, take_ownership_from_abi) {} - MidiMessageTypeEndpointListener(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h deleted file mode 100644 index 5a140177a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h +++ /dev/null @@ -1,206 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_0_H -WINRT_EXPORT namespace winrt::Windows::Foundation -{ -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct IMidiDiagnosticsStatics; - struct IMidiReportingStatics; - struct IMidiServicePingResponseSummary; - struct IMidiServiceSessionInfo; - struct MidiDiagnostics; - struct MidiReporting; - struct MidiServicePingResponseSummary; - struct MidiServiceSessionInfo; - struct MidiServiceMessageProcessingPluginInfo; - struct MidiServicePingResponse; - struct MidiServiceSessionConnectionInfo; - struct MidiServiceTransportPluginInfo; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiDiagnostics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiReporting"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServicePingResponseSummary"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceSessionInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceMessageProcessingPluginInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServicePingResponse"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceSessionConnectionInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceTransportPluginInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiDiagnosticsStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiReportingStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiServicePingResponseSummary"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiServiceSessionInfo"; - template <> inline constexpr guid guid_v{ 0x4AB631D4,0x3C9A,0x5E7D,{ 0xB3,0xDA,0xB4,0x85,0x69,0x7E,0xDF,0x9E } }; // 4AB631D4-3C9A-5E7D-B3DA-B485697EDF9E - template <> inline constexpr guid guid_v{ 0x836257F9,0xF81F,0x5C0E,{ 0xB6,0xF2,0xB2,0xD0,0xF9,0xDC,0xF6,0x8E } }; // 836257F9-F81F-5C0E-B6F2-B2D0F9DCF68E - template <> inline constexpr guid guid_v{ 0x9826B87F,0x01ED,0x56CE,{ 0xA5,0x40,0x6A,0xB9,0x89,0xA0,0x3E,0xF8 } }; // 9826B87F-01ED-56CE-A540-6AB989A03EF8 - template <> inline constexpr guid guid_v{ 0x3156AD39,0x109E,0x5B67,{ 0x86,0x1B,0xAE,0x41,0x38,0x27,0xC9,0x05 } }; // 3156AD39-109E-5B67-861B-AE413827C905 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_DiagnosticsLoopbackAEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_DiagnosticsLoopbackBEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall PingService(uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall PingService2(uint8_t, uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall GetInstalledTransportPlugins(void**) noexcept = 0; - virtual int32_t __stdcall GetInstalledMessageProcessingPlugins(void**) noexcept = 0; - virtual int32_t __stdcall GetActiveSessions(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Success(bool*) noexcept = 0; - virtual int32_t __stdcall get_FailureReason(void**) noexcept = 0; - virtual int32_t __stdcall get_TotalPingRoundTripMidiClock(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_AveragePingRoundTripMidiClock(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_Responses(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SessionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_ProcessId(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_ProcessName(void**) noexcept = 0; - virtual int32_t __stdcall get_SessionName(void**) noexcept = 0; - virtual int32_t __stdcall get_StartTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall get_Connections(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics - { - [[nodiscard]] auto DiagnosticsLoopbackAEndpointDeviceId() const; - [[nodiscard]] auto DiagnosticsLoopbackBEndpointDeviceId() const; - auto PingService(uint8_t pingCount) const; - auto PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics - { - auto GetInstalledTransportPlugins() const; - auto GetInstalledMessageProcessingPlugins() const; - auto GetActiveSessions() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary - { - [[nodiscard]] auto Success() const; - [[nodiscard]] auto FailureReason() const; - [[nodiscard]] auto TotalPingRoundTripMidiClock() const; - [[nodiscard]] auto AveragePingRoundTripMidiClock() const; - [[nodiscard]] auto Responses() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo - { - [[nodiscard]] auto SessionId() const; - [[nodiscard]] auto ProcessId() const; - [[nodiscard]] auto ProcessName() const; - [[nodiscard]] auto SessionName() const; - [[nodiscard]] auto StartTime() const; - [[nodiscard]] auto Connections() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceMessageProcessingPluginInfo - { - winrt::guid Id; - void* Name; - void* Description; - void* Author; - void* SmallImagePath; - void* Version; - bool SupportsMultipleInstancesPerDevice; - bool IsSystemManaged; - bool IsClientConfigurable; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceMessageProcessingPluginInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServicePingResponse - { - uint32_t SourceId; - uint32_t Index; - uint64_t ClientSendMidiTimestamp; - uint64_t ServiceReportedMidiTimestamp; - uint64_t ClientReceiveMidiTimestamp; - uint64_t ClientDeltaTimestamp; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServicePingResponse; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceSessionConnectionInfo - { - void* EndpointDeviceId; - uint16_t InstanceCount; - int64_t EarliestConnectionTime; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceSessionConnectionInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceTransportPluginInfo - { - winrt::guid Id; - void* Name; - void* Abbreviation; - void* Description; - void* SmallImagePath; - void* Author; - void* Version; - bool IsRuntimeCreatableByApps; - bool IsRuntimeCreatableBySettings; - bool IsSystemManaged; - bool CanConfigure; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceTransportPluginInfo; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h deleted file mode 100644 index 4138c1102..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct WINRT_IMPL_EMPTY_BASES IMidiDiagnosticsStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiDiagnosticsStatics(std::nullptr_t = nullptr) noexcept {} - IMidiDiagnosticsStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiReportingStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiReportingStatics(std::nullptr_t = nullptr) noexcept {} - IMidiReportingStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServicePingResponseSummary : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicePingResponseSummary(std::nullptr_t = nullptr) noexcept {} - IMidiServicePingResponseSummary(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceSessionInfo : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceSessionInfo(std::nullptr_t = nullptr) noexcept {} - IMidiServiceSessionInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h deleted file mode 100644 index cee0e284c..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_2_H -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct MidiServiceMessageProcessingPluginInfo - { - winrt::guid Id; - hstring Name; - hstring Description; - hstring Author; - hstring SmallImagePath; - hstring Version; - bool SupportsMultipleInstancesPerDevice; - bool IsSystemManaged; - bool IsClientConfigurable; - }; - inline bool operator==(MidiServiceMessageProcessingPluginInfo const& left, MidiServiceMessageProcessingPluginInfo const& right) noexcept - { - return left.Id == right.Id && left.Name == right.Name && left.Description == right.Description && left.Author == right.Author && left.SmallImagePath == right.SmallImagePath && left.Version == right.Version && left.SupportsMultipleInstancesPerDevice == right.SupportsMultipleInstancesPerDevice && left.IsSystemManaged == right.IsSystemManaged && left.IsClientConfigurable == right.IsClientConfigurable; - } - inline bool operator!=(MidiServiceMessageProcessingPluginInfo const& left, MidiServiceMessageProcessingPluginInfo const& right) noexcept - { - return !(left == right); - } - struct MidiServicePingResponse - { - uint32_t SourceId; - uint32_t Index; - uint64_t ClientSendMidiTimestamp; - uint64_t ServiceReportedMidiTimestamp; - uint64_t ClientReceiveMidiTimestamp; - uint64_t ClientDeltaTimestamp; - }; - inline bool operator==(MidiServicePingResponse const& left, MidiServicePingResponse const& right) noexcept - { - return left.SourceId == right.SourceId && left.Index == right.Index && left.ClientSendMidiTimestamp == right.ClientSendMidiTimestamp && left.ServiceReportedMidiTimestamp == right.ServiceReportedMidiTimestamp && left.ClientReceiveMidiTimestamp == right.ClientReceiveMidiTimestamp && left.ClientDeltaTimestamp == right.ClientDeltaTimestamp; - } - inline bool operator!=(MidiServicePingResponse const& left, MidiServicePingResponse const& right) noexcept - { - return !(left == right); - } - struct MidiServiceSessionConnectionInfo - { - hstring EndpointDeviceId; - uint16_t InstanceCount; - winrt::Windows::Foundation::DateTime EarliestConnectionTime; - }; - inline bool operator==(MidiServiceSessionConnectionInfo const& left, MidiServiceSessionConnectionInfo const& right) noexcept - { - return left.EndpointDeviceId == right.EndpointDeviceId && left.InstanceCount == right.InstanceCount && left.EarliestConnectionTime == right.EarliestConnectionTime; - } - inline bool operator!=(MidiServiceSessionConnectionInfo const& left, MidiServiceSessionConnectionInfo const& right) noexcept - { - return !(left == right); - } - struct MidiServiceTransportPluginInfo - { - winrt::guid Id; - hstring Name; - hstring Abbreviation; - hstring Description; - hstring SmallImagePath; - hstring Author; - hstring Version; - bool IsRuntimeCreatableByApps; - bool IsRuntimeCreatableBySettings; - bool IsSystemManaged; - bool CanConfigure; - }; - inline bool operator==(MidiServiceTransportPluginInfo const& left, MidiServiceTransportPluginInfo const& right) noexcept - { - return left.Id == right.Id && left.Name == right.Name && left.Abbreviation == right.Abbreviation && left.Description == right.Description && left.SmallImagePath == right.SmallImagePath && left.Author == right.Author && left.Version == right.Version && left.IsRuntimeCreatableByApps == right.IsRuntimeCreatableByApps && left.IsRuntimeCreatableBySettings == right.IsRuntimeCreatableBySettings && left.IsSystemManaged == right.IsSystemManaged && left.CanConfigure == right.CanConfigure; - } - inline bool operator!=(MidiServiceTransportPluginInfo const& left, MidiServiceTransportPluginInfo const& right) noexcept - { - return !(left == right); - } - struct MidiDiagnostics - { - MidiDiagnostics() = delete; - [[nodiscard]] static auto DiagnosticsLoopbackAEndpointDeviceId(); - [[nodiscard]] static auto DiagnosticsLoopbackBEndpointDeviceId(); - static auto PingService(uint8_t pingCount); - static auto PingService(uint8_t pingCount, uint32_t timeoutMilliseconds); - }; - struct MidiReporting - { - MidiReporting() = delete; - static auto GetInstalledTransportPlugins(); - static auto GetInstalledMessageProcessingPlugins(); - static auto GetActiveSessions(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiServicePingResponseSummary : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary - { - MidiServicePingResponseSummary(std::nullptr_t) noexcept {} - MidiServicePingResponseSummary(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiServiceSessionInfo : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo - { - MidiServiceSessionInfo(std::nullptr_t) noexcept {} - MidiServiceSessionInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h deleted file mode 100644 index cd7b9ca69..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h +++ /dev/null @@ -1,187 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct IMidiLoopbackEndpointCreationConfig; - struct IMidiLoopbackEndpointCreationConfigFactory; - struct IMidiLoopbackEndpointDeletionConfig; - struct IMidiLoopbackEndpointDeletionConfigFactory; - struct IMidiLoopbackEndpointManager; - struct IMidiLoopbackEndpointManagerStatics; - struct MidiLoopbackEndpointCreationConfig; - struct MidiLoopbackEndpointDeletionConfig; - struct MidiLoopbackEndpointManager; - struct MidiLoopbackEndpointCreationResult; - struct MidiLoopbackEndpointDefinition; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointDeletionConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointCreationResult"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointDefinition"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointCreationConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointDeletionConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointDeletionConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointManagerStatics"; - template <> inline constexpr guid guid_v{ 0x53EF39E5,0x179D,0x57AF,{ 0x98,0x4D,0xC4,0x0D,0x5C,0x29,0x99,0xFA } }; // 53EF39E5-179D-57AF-984D-C40D5C2999FA - template <> inline constexpr guid guid_v{ 0x5FA6051E,0x83EE,0x5D4D,{ 0x92,0x1C,0x48,0xBA,0xD0,0xAA,0xDE,0x61 } }; // 5FA6051E-83EE-5D4D-921C-48BAD0AADE61 - template <> inline constexpr guid guid_v{ 0x717579E3,0xE3BE,0x5D34,{ 0x87,0x79,0xA1,0x56,0x31,0x1B,0x84,0x8D } }; // 717579E3-E3BE-5D34-8779-A156311B848D - template <> inline constexpr guid guid_v{ 0x2663EB28,0xD010,0x5610,{ 0x86,0xCA,0xBD,0x68,0x40,0xDE,0x78,0xE8 } }; // 2663EB28-D010-5610-86CA-BD6840DE78E8 - template <> inline constexpr guid guid_v{ 0x1DFB714C,0x710A,0x58D5,{ 0x9E,0xAD,0x49,0xAC,0x8C,0x3F,0x34,0x98 } }; // 1DFB714C-710A-58D5-9EAD-49AC8C3F3498 - template <> inline constexpr guid guid_v{ 0x2B788E99,0x2384,0x5518,{ 0x82,0x39,0x03,0x2F,0xBE,0x23,0x2D,0x2B } }; // 2B788E99-2384-5518-8239-032FBE232D2B - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall put_AssociationId(winrt::guid) noexcept = 0; - virtual int32_t __stdcall get_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition*) noexcept = 0; - virtual int32_t __stdcall put_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition) noexcept = 0; - virtual int32_t __stdcall get_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition*) noexcept = 0; - virtual int32_t __stdcall put_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(winrt::guid, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall put_AssociationId(winrt::guid) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(winrt::guid, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsTransportAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall get_AbstractionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall CreateTransientLoopbackEndpoints(void*, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult*) noexcept = 0; - virtual int32_t __stdcall RemoveTransientLoopbackEndpoints(void*, bool*) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig - { - [[nodiscard]] auto AssociationId() const; - auto AssociationId(winrt::guid const& value) const; - [[nodiscard]] auto EndpointDefinitionA() const; - auto EndpointDefinitionA(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const; - [[nodiscard]] auto EndpointDefinitionB() const; - auto EndpointDefinitionB(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory - { - auto CreateInstance(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig - { - [[nodiscard]] auto AssociationId() const; - auto AssociationId(winrt::guid const& value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory - { - auto CreateInstance(winrt::guid const& associationId) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManager - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManager; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics - { - [[nodiscard]] auto IsTransportAvailable() const; - [[nodiscard]] auto AbstractionId() const; - auto CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) const; - auto RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult - { - bool Success; - winrt::guid AssociationId; - void* EndpointDeviceIdA; - void* EndpointDeviceIdB; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition - { - void* Name; - void* UniqueId; - void* Description; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h deleted file mode 100644 index 5a5457ec9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h +++ /dev/null @@ -1,52 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointCreationConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointCreationConfig(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointCreationConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointCreationConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointCreationConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointDeletionConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointDeletionConfig(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointDeletionConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointDeletionConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointDeletionConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointDeletionConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointManager : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointManager(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointManagerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointManagerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointManagerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h deleted file mode 100644 index 021b1a4a5..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h +++ /dev/null @@ -1,64 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct MidiLoopbackEndpointCreationResult - { - bool Success; - winrt::guid AssociationId; - hstring EndpointDeviceIdA; - hstring EndpointDeviceIdB; - }; - inline bool operator==(MidiLoopbackEndpointCreationResult const& left, MidiLoopbackEndpointCreationResult const& right) noexcept - { - return left.Success == right.Success && left.AssociationId == right.AssociationId && left.EndpointDeviceIdA == right.EndpointDeviceIdA && left.EndpointDeviceIdB == right.EndpointDeviceIdB; - } - inline bool operator!=(MidiLoopbackEndpointCreationResult const& left, MidiLoopbackEndpointCreationResult const& right) noexcept - { - return !(left == right); - } - struct MidiLoopbackEndpointDefinition - { - hstring Name; - hstring UniqueId; - hstring Description; - }; - inline bool operator==(MidiLoopbackEndpointDefinition const& left, MidiLoopbackEndpointDefinition const& right) noexcept - { - return left.Name == right.Name && left.UniqueId == right.UniqueId && left.Description == right.Description; - } - inline bool operator!=(MidiLoopbackEndpointDefinition const& left, MidiLoopbackEndpointDefinition const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointCreationConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig, - impl::require - { - MidiLoopbackEndpointCreationConfig(std::nullptr_t) noexcept {} - MidiLoopbackEndpointCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig(ptr, take_ownership_from_abi) {} - MidiLoopbackEndpointCreationConfig(); - MidiLoopbackEndpointCreationConfig(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB); - }; - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointDeletionConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig, - impl::require - { - MidiLoopbackEndpointDeletionConfig(std::nullptr_t) noexcept {} - MidiLoopbackEndpointDeletionConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig(ptr, take_ownership_from_abi) {} - explicit MidiLoopbackEndpointDeletionConfig(winrt::guid const& associationId); - }; - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointManager : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager - { - MidiLoopbackEndpointManager(std::nullptr_t) noexcept {} - MidiLoopbackEndpointManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto IsTransportAvailable(); - [[nodiscard]] static auto AbstractionId(); - static auto CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig); - static auto RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h deleted file mode 100644 index 83dc91a3a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h +++ /dev/null @@ -1,52 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct WINRT_IMPL_EMPTY_BASES IMidiStreamConfigRequestReceivedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiStreamConfigRequestReceivedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiStreamConfigRequestReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDevice : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDevice(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDevice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceCreationConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceCreationConfig(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceCreationConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceCreationConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceCreationConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceManager : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceManager(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceManagerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceManagerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceManagerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h deleted file mode 100644 index 7838b2613..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h +++ /dev/null @@ -1,56 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct MidiStreamConfigRequestedSettings - { - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol PreferredMidiProtocol; - bool RequestEndpointTransmitJitterReductionTimestamps; - bool RequestEndpointReceiveJitterReductionTimestamps; - }; - inline bool operator==(MidiStreamConfigRequestedSettings const& left, MidiStreamConfigRequestedSettings const& right) noexcept - { - return left.SpecificationVersionMajor == right.SpecificationVersionMajor && left.SpecificationVersionMinor == right.SpecificationVersionMinor && left.PreferredMidiProtocol == right.PreferredMidiProtocol && left.RequestEndpointTransmitJitterReductionTimestamps == right.RequestEndpointTransmitJitterReductionTimestamps && left.RequestEndpointReceiveJitterReductionTimestamps == right.RequestEndpointReceiveJitterReductionTimestamps; - } - inline bool operator!=(MidiStreamConfigRequestedSettings const& left, MidiStreamConfigRequestedSettings const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiStreamConfigRequestReceivedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs - { - MidiStreamConfigRequestReceivedEventArgs(std::nullptr_t) noexcept {} - MidiStreamConfigRequestReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDevice : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice, - impl::require - { - MidiVirtualDevice(std::nullptr_t) noexcept {} - MidiVirtualDevice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDeviceCreationConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig, - impl::require - { - MidiVirtualDeviceCreationConfig(std::nullptr_t) noexcept {} - MidiVirtualDeviceCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig(ptr, take_ownership_from_abi) {} - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo); - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity); - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo); - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDeviceManager : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager - { - MidiVirtualDeviceManager(std::nullptr_t) noexcept {} - MidiVirtualDeviceManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto IsTransportAvailable(); - [[nodiscard]] static auto AbstractionId(); - static auto CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h deleted file mode 100644 index 304eccc15..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h +++ /dev/null @@ -1,70 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_0_H -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct Uri; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct IMidiServicesInitializer; - struct IMidiServicesInitializerStatics; - struct MidiServicesInitializer; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.MidiServicesInitializer"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.IMidiServicesInitializer"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.IMidiServicesInitializerStatics"; - template <> inline constexpr guid guid_v{ 0x3A60A020,0x720A,0x563F,{ 0x90,0x9C,0x9C,0x3C,0xF4,0x77,0x21,0xCE } }; // 3A60A020-720A-563F-909C-9C3CF47721CE - template <> inline constexpr guid guid_v{ 0x56FC8938,0x93CD,0x51B3,{ 0x9E,0x6E,0x5B,0xB3,0xDA,0xBD,0x19,0x0E } }; // 56FC8938-93CD-51B3-9E6E-5BB3DABD190E - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall IsOperatingSystemSupported(bool*) noexcept = 0; - virtual int32_t __stdcall EnsureServiceAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall InitializeSdkRuntime(bool*) noexcept = 0; - virtual int32_t __stdcall IsCompatibleDesktopAppSdkRuntimeInstalled(bool*) noexcept = 0; - virtual int32_t __stdcall GetLatestRuntimeReleaseInstallerUri(void**) noexcept = 0; - virtual int32_t __stdcall GetLatestSettingsAppReleaseInstallerUri(void**) noexcept = 0; - virtual int32_t __stdcall GetLatestConsoleAppReleaseInstallerUri(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializer - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializer; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics - { - auto IsOperatingSystemSupported() const; - auto EnsureServiceAvailable() const; - auto InitializeSdkRuntime() const; - auto IsCompatibleDesktopAppSdkRuntimeInstalled() const; - auto GetLatestRuntimeReleaseInstallerUri() const; - auto GetLatestSettingsAppReleaseInstallerUri() const; - auto GetLatestConsoleAppReleaseInstallerUri() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h deleted file mode 100644 index 0fe7114e6..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h +++ /dev/null @@ -1,24 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct WINRT_IMPL_EMPTY_BASES IMidiServicesInitializer : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicesInitializer(std::nullptr_t = nullptr) noexcept {} - IMidiServicesInitializer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServicesInitializerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicesInitializerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiServicesInitializerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h deleted file mode 100644 index 76c852b5f..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h +++ /dev/null @@ -1,22 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct WINRT_IMPL_EMPTY_BASES MidiServicesInitializer : winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer - { - MidiServicesInitializer(std::nullptr_t) noexcept {} - MidiServicesInitializer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer(ptr, take_ownership_from_abi) {} - static auto IsOperatingSystemSupported(); - static auto EnsureServiceAvailable(); - static auto InitializeSdkRuntime(); - static auto IsCompatibleDesktopAppSdkRuntimeInstalled(); - static auto GetLatestRuntimeReleaseInstallerUri(); - static auto GetLatestSettingsAppReleaseInstallerUri(); - static auto GetLatestConsoleAppReleaseInstallerUri(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h deleted file mode 100644 index 70023d180..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h +++ /dev/null @@ -1,331 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct IMidiUniversalPacket; - struct MidiChannel; - enum class MidiFunctionBlockDirection : int32_t; - enum class MidiFunctionBlockRepresentsMidi10Connection : int32_t; - enum class MidiFunctionBlockUIHint : int32_t; - struct MidiGroup; - struct MidiMessage128; - struct MidiMessage32; - struct MidiMessage64; - enum class MidiMessageType : int32_t; - enum class MidiPacketType : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Devices::Midi -{ - struct MidiActiveSensingMessage; - struct MidiChannelPressureMessage; - struct MidiContinueMessage; - struct MidiNoteOffMessage; - struct MidiNoteOnMessage; - struct MidiPitchBendChangeMessage; - struct MidiPolyphonicKeyPressureMessage; - struct MidiProgramChangeMessage; - struct MidiSongPositionPointerMessage; - struct MidiSongSelectMessage; - struct MidiStartMessage; - struct MidiStopMessage; - struct MidiSystemResetMessage; - struct MidiTimeCodeMessage; - struct MidiTimingClockMessage; - struct MidiTuneRequestMessage; -} -WINRT_EXPORT namespace winrt::Windows::Foundation::Collections -{ - template struct WINRT_IMPL_EMPTY_BASES IIterable; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - enum class Midi1ChannelVoiceMessageStatus : int32_t - { - NoteOff = 8, - NoteOn = 9, - PolyPressure = 10, - ControlChange = 11, - ProgramChange = 12, - ChannelPressure = 13, - PitchBend = 14, - }; - enum class Midi2ChannelVoiceMessageStatus : int32_t - { - RegisteredPerNoteController = 0, - AssignablePerNoteController = 1, - RegisteredController = 2, - AssignableController = 3, - RelativeRegisteredController = 4, - RelativeAssignableController = 5, - PerNotePitchBend = 6, - NoteOff = 8, - NoteOn = 9, - PolyPressure = 10, - ControlChange = 11, - ProgramChange = 12, - ChannelPressure = 13, - PitchBend = 14, - PerNoteManagement = 15, - }; - enum class MidiEndpointDiscoveryRequests : uint32_t - { - None = 0, - RequestEndpointInfo = 0x1, - RequestDeviceIdentity = 0x2, - RequestEndpointName = 0x4, - RequestProductInstanceId = 0x8, - RequestStreamConfiguration = 0x10, - }; - enum class MidiFunctionBlockDiscoveryRequests : uint32_t - { - None = 0, - RequestFunctionBlockInfo = 0x1, - RequestFunctionBlockName = 0x2, - }; - enum class MidiSystemExclusive8Status : int32_t - { - CompleteMessageInSingleMessagePacket = 0, - StartMessagePacket = 1, - ContinueMessagePacket = 2, - EndMessagePacket = 3, - }; - struct IMidiMessageBuilderStatics; - struct IMidiMessageConverterStatics; - struct IMidiMessageHelperStatics; - struct IMidiStreamMessageBuilderStatics; - struct MidiMessageBuilder; - struct MidiMessageConverter; - struct MidiMessageHelper; - struct MidiStreamMessageBuilder; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageBuilder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageConverter"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageHelper"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiStreamMessageBuilder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.Midi1ChannelVoiceMessageStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.Midi2ChannelVoiceMessageStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiEndpointDiscoveryRequests"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiFunctionBlockDiscoveryRequests"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiSystemExclusive8Status"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageBuilderStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageConverterStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageHelperStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiStreamMessageBuilderStatics"; - template <> inline constexpr guid guid_v{ 0x090C2C0B,0x95E4,0x5FF3,{ 0xA4,0xA9,0x2C,0x23,0x86,0x10,0x31,0x36 } }; // 090C2C0B-95E4-5FF3-A4A9-2C2386103136 - template <> inline constexpr guid guid_v{ 0x30BE1DB6,0x9E9E,0x5EAC,{ 0xB1,0xE6,0x6D,0x4F,0x11,0xFA,0x1E,0xBF } }; // 30BE1DB6-9E9E-5EAC-B1E6-6D4F11FA1EBF - template <> inline constexpr guid guid_v{ 0xCC84C703,0xE523,0x5597,{ 0xA3,0xD6,0xE8,0xAD,0x68,0x8A,0x96,0xCC } }; // CC84C703-E523-5597-A3D6-E8AD688A96CC - template <> inline constexpr guid guid_v{ 0x03E16477,0x3857,0x5ED3,{ 0x83,0x81,0x59,0xC4,0x0C,0xE4,0xA3,0x3D } }; // 03E16477-3857-5ED3-8381-59C40CE4A33D - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall BuildUtilityMessage(uint64_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemMessage(uint64_t, void*, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMidi1ChannelVoiceMessage(uint64_t, void*, int32_t, void*, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemExclusive7Message(uint64_t, void*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMidi2ChannelVoiceMessage(uint64_t, void*, int32_t, void*, uint16_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemExclusive8Message(uint64_t, void*, int32_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMixedDataSetChunkHeaderMessage(uint64_t, void*, uint8_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMixedDataSetChunkDataMessage(uint64_t, void*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFlexDataMessage(uint64_t, void*, uint8_t, uint8_t, void*, uint8_t, uint8_t, uint32_t, uint32_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamMessage(uint64_t, uint8_t, uint16_t, uint16_t, uint32_t, uint32_t, uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall ConvertMidi1Message(uint64_t, void*, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1Message2(uint64_t, void*, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1Message3(uint64_t, void*, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ChannelPressureMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1NoteOffMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1NoteOnMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1PitchBendChangeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1PolyphonicKeyPressureMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ProgramChangeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TimeCodeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SongPositionPointerMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SongSelectMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TuneRequestMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TimingClockMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1StartMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ContinueMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1StopMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ActiveSensingMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SystemResetMessage(uint64_t, void*, void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall ValidateMessage32MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage64MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage96MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage128MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall GetMessageTypeFromMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetPacketTypeFromMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall MessageTypeHasGroupField(int32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ReplaceGroupInMessageFirstWord(uint32_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetGroupFromMessageFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetStatusFromUtilityMessage(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromMidi1ChannelVoiceMessage(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusBankFromFlexDataMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromFlexDataMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromSystemCommonMessage(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromDataMessage64FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetNumberOfBytesFromDataMessage64FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromDataMessage128FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetNumberOfBytesFromDataMessage128FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall MessageTypeHasChannelField(int32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ReplaceChannelInMessageFirstWord(uint32_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetChannelFromMessageFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetFormFromStreamMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromStreamMessageFirstWord(uint32_t, uint16_t*) noexcept = 0; - virtual int32_t __stdcall GetMessageDisplayNameFromFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetPacketListFromWordList(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall GetWordListFromPacketList(void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall BuildEndpointDiscoveryMessage(uint64_t, uint8_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildEndpointInfoNotificationMessage(uint64_t, uint8_t, uint8_t, bool, uint8_t, bool, bool, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildDeviceIdentityNotificationMessage(uint64_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildEndpointNameNotificationMessages(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall BuildProductInstanceIdNotificationMessages(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseEndpointNameNotificationMessages(void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseProductInstanceIdNotificationMessages(void*, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamConfigurationRequestMessage(uint64_t, uint8_t, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamConfigurationNotificationMessage(uint64_t, uint8_t, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockDiscoveryMessage(uint64_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockInfoNotificationMessage(uint64_t, bool, uint8_t, int32_t, int32_t, int32_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockNameNotificationMessages(uint64_t, uint8_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseFunctionBlockNameNotificationMessages(void*, void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics - { - auto BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) const; - auto BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) const; - auto BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) const; - auto BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) const; - auto BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) const; - auto BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) const; - auto BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) const; - auto BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) const; - auto BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const; - auto BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics - { - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) const; - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) const; - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) const; - auto ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) const; - auto ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) const; - auto ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) const; - auto ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) const; - auto ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) const; - auto ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) const; - auto ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) const; - auto ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) const; - auto ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) const; - auto ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) const; - auto ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) const; - auto ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) const; - auto ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) const; - auto ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) const; - auto ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) const; - auto ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics - { - auto ValidateMessage32MessageType(uint32_t word0) const; - auto ValidateMessage64MessageType(uint32_t word0) const; - auto ValidateMessage96MessageType(uint32_t word0) const; - auto ValidateMessage128MessageType(uint32_t word0) const; - auto GetMessageTypeFromMessageFirstWord(uint32_t word0) const; - auto GetPacketTypeFromMessageFirstWord(uint32_t word0) const; - auto MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const; - auto ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) const; - auto GetGroupFromMessageFirstWord(uint32_t word0) const; - auto GetStatusFromUtilityMessage(uint32_t word0) const; - auto GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) const; - auto GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) const; - auto GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) const; - auto GetStatusFromFlexDataMessageFirstWord(uint32_t word0) const; - auto GetStatusFromSystemCommonMessage(uint32_t word0) const; - auto GetStatusFromDataMessage64FirstWord(uint32_t word0) const; - auto GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) const; - auto GetStatusFromDataMessage128FirstWord(uint32_t word0) const; - auto GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) const; - auto MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const; - auto ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) const; - auto GetChannelFromMessageFirstWord(uint32_t word0) const; - auto GetFormFromStreamMessageFirstWord(uint32_t word0) const; - auto GetStatusFromStreamMessageFirstWord(uint32_t word0) const; - auto GetMessageDisplayNameFromFirstWord(uint32_t word0) const; - auto GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) const; - auto GetWordListFromPacketList(param::iterable const& words) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics - { - auto BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) const; - auto BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) const; - auto BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) const; - auto BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) const; - auto BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) const; - auto ParseEndpointNameNotificationMessages(param::iterable const& messages) const; - auto ParseProductInstanceIdNotificationMessages(param::iterable const& messages) const; - auto BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) const; - auto BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) const; - auto BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) const; - auto BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) const; - auto BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) const; - auto ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h deleted file mode 100644 index e7fce06a8..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - struct WINRT_IMPL_EMPTY_BASES IMidiMessageBuilderStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageBuilderStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageBuilderStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageConverterStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageConverterStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageConverterStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageHelperStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageHelperStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageHelperStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiStreamMessageBuilderStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiStreamMessageBuilderStatics(std::nullptr_t = nullptr) noexcept {} - IMidiStreamMessageBuilderStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h deleted file mode 100644 index dd17a6032..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h +++ /dev/null @@ -1,98 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -#include "winrt/impl/Windows.Devices.Midi.1.h" -#include "winrt/impl/Windows.Foundation.Collections.1.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - struct MidiMessageBuilder - { - MidiMessageBuilder() = delete; - static auto BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved); - static auto BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3); - static auto BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4); - static auto BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5); - static auto BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data); - static auto BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12); - static auto BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2); - static auto BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13); - static auto BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data); - static auto BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data); - }; - struct MidiMessageConverter - { - MidiMessageConverter() = delete; - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte); - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1); - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2); - static auto ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage); - static auto ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage); - static auto ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage); - static auto ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage); - static auto ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage); - static auto ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage); - static auto ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage); - static auto ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage); - static auto ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage); - static auto ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage); - static auto ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage); - static auto ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage); - static auto ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage); - static auto ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage); - static auto ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage); - static auto ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage); - }; - struct MidiMessageHelper - { - MidiMessageHelper() = delete; - static auto ValidateMessage32MessageType(uint32_t word0); - static auto ValidateMessage64MessageType(uint32_t word0); - static auto ValidateMessage96MessageType(uint32_t word0); - static auto ValidateMessage128MessageType(uint32_t word0); - static auto GetMessageTypeFromMessageFirstWord(uint32_t word0); - static auto GetPacketTypeFromMessageFirstWord(uint32_t word0); - static auto MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType); - static auto ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup); - static auto GetGroupFromMessageFirstWord(uint32_t word0); - static auto GetStatusFromUtilityMessage(uint32_t word0); - static auto GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0); - static auto GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0); - static auto GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0); - static auto GetStatusFromFlexDataMessageFirstWord(uint32_t word0); - static auto GetStatusFromSystemCommonMessage(uint32_t word0); - static auto GetStatusFromDataMessage64FirstWord(uint32_t word0); - static auto GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0); - static auto GetStatusFromDataMessage128FirstWord(uint32_t word0); - static auto GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0); - static auto MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType); - static auto ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel); - static auto GetChannelFromMessageFirstWord(uint32_t word0); - static auto GetFormFromStreamMessageFirstWord(uint32_t word0); - static auto GetStatusFromStreamMessageFirstWord(uint32_t word0); - static auto GetMessageDisplayNameFromFirstWord(uint32_t word0); - static auto GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words); - static auto GetWordListFromPacketList(param::iterable const& words); - }; - struct MidiStreamMessageBuilder - { - MidiStreamMessageBuilder() = delete; - static auto BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request); - static auto BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps); - static auto BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4); - static auto BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name); - static auto BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId); - static auto ParseEndpointNameNotificationMessages(param::iterable const& messages); - static auto ParseProductInstanceIdNotificationMessages(param::iterable const& messages); - static auto BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps); - static auto BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps); - static auto BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags); - static auto BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams); - static auto BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name); - static auto ParseFunctionBlockNameNotificationMessages(param::iterable const& messages); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h deleted file mode 100644 index 5cd89b2ef..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h +++ /dev/null @@ -1,131 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - enum class MidiServiceConfigResponseStatus : int32_t - { - Success = 0, - ErrorTargetNotFound = 404, - ErrorConfigJsonNullOrEmpty = 600, - ErrorProcessingConfigJson = 601, - ErrorProcessingResponseJson = 605, - ErrorNotImplemented = 2600, - }; - struct IMidiServiceConfig; - struct IMidiServiceConfigStatics; - struct IMidiServiceMessageProcessingPluginConfig; - struct IMidiServiceTransportPluginConfig; - struct MidiServiceConfig; - struct MidiServiceConfigResponse; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfigResponseStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfigResponse"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceConfigStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceMessageProcessingPluginConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceTransportPluginConfig"; - template <> inline constexpr guid guid_v{ 0x0F1E4863,0xC76E,0x501F,{ 0x97,0x6A,0xDB,0x48,0xFC,0x0C,0x5B,0xB7 } }; // 0F1E4863-C76E-501F-976A-DB48FC0C5BB7 - template <> inline constexpr guid guid_v{ 0x20C5F99A,0x741B,0x513B,{ 0x86,0x55,0xAC,0x13,0x2F,0x05,0x16,0x6B } }; // 20C5F99A-741B-513B-8655-AC132F05166B - template <> inline constexpr guid guid_v{ 0x2EBCFA13,0x585A,0x4376,{ 0x8F,0xE1,0x63,0x57,0x84,0xFA,0x7F,0xD4 } }; // 2EBCFA13-585A-4376-8FE1-635784FA7FD4 - template <> inline constexpr guid guid_v{ 0xB2417DDE,0xEF35,0x499B,{ 0xA8,0x9B,0x0A,0x4C,0x32,0xCC,0x69,0x9A } }; // B2417DDE-EF35-499B-A89B-0A4C32CC699A - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall UpdateTransportPluginConfig(void*, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse*) noexcept = 0; - virtual int32_t __stdcall UpdateProcessingPluginConfig(void*, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_MessageProcessingPluginId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_PluginInstanceId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_IsFromCurrentConfigFile(bool*) noexcept = 0; - virtual int32_t __stdcall GetConfigJson(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_TransportId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_IsFromCurrentConfigFile(bool*) noexcept = 0; - virtual int32_t __stdcall GetConfigJson(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfig - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics - { - auto UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) const; - auto UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto MessageProcessingPluginId() const; - [[nodiscard]] auto PluginInstanceId() const; - [[nodiscard]] auto IsFromCurrentConfigFile() const; - auto GetConfigJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig - { - [[nodiscard]] auto TransportId() const; - [[nodiscard]] auto IsFromCurrentConfigFile() const; - auto GetConfigJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig; - }; - struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse - { - int32_t Status; - void* ResponseJson; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h deleted file mode 100644 index 6cc54f32d..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - struct WINRT_IMPL_EMPTY_BASES IMidiServiceConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceConfigStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceConfigStatics(std::nullptr_t = nullptr) noexcept {} - IMidiServiceConfigStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceMessageProcessingPluginConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceMessageProcessingPluginConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceMessageProcessingPluginConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceTransportPluginConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceTransportPluginConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceTransportPluginConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h deleted file mode 100644 index 66de80d94..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h +++ /dev/null @@ -1,30 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - struct MidiServiceConfigResponse - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponseStatus Status; - hstring ResponseJson; - }; - inline bool operator==(MidiServiceConfigResponse const& left, MidiServiceConfigResponse const& right) noexcept - { - return left.Status == right.Status && left.ResponseJson == right.ResponseJson; - } - inline bool operator!=(MidiServiceConfigResponse const& left, MidiServiceConfigResponse const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiServiceConfig : winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig - { - MidiServiceConfig(std::nullptr_t) noexcept {} - MidiServiceConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig(ptr, take_ownership_from_abi) {} - static auto UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate); - static auto UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 1330d4afb..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 3ec3bf415..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index a6672a0fe..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index 686535059..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 61a87865f..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll deleted file mode 100644 index 3e71dd3a7..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 15faccfac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 626d4a166..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 7dc39cedd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index cc0b45d34..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 343879ebc..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 1330d4afb..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 3ec3bf415..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index a6672a0fe..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index 686535059..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 61a87865f..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 15faccfac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 626d4a166..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 7dc39cedd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index cc0b45d34..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 9e11bd949..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index 62280d0b1..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index fd62d3e7c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 25f462d84..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 7d62d0c0c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 17d899219..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 343879ebc..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 9e11bd949..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index 62280d0b1..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index fd62d3e7c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 25f462d84..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 7d62d0c0c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 17d899219..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/README.md b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/README.md deleted file mode 100644 index 112ed6921..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Microsoft.Windows.Devices.Midi2 - -Note. This package is currently in developer preview. Please see release notes - -https://aka.ms/midi diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props deleted file mode 100644 index b77844b02..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - $(MSBuildThisFileDirectory)..\..\ - - - - - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Messages.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd - - - $$(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Diagnostics.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd - - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Initialization.winmd - - - - - \ No newline at end of file diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets deleted file mode 100644 index 2cdea5d13..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h deleted file mode 100644 index 1d0756148..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h +++ /dev/null @@ -1,293 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte1() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte1(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte2() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte2(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte3() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte3(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte3(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte3(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte4() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte4(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte4(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte4(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::AsCombined28BitValue() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_AsCombined28BitValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::IsBroadcast() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_IsBroadcast(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::IsReserved() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_IsReserved(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory::CreateInstance(uint32_t combined28BitValue) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdFactory)->CreateInstance(combined28BitValue, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory::CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdFactory)->CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::CreateBroadcast() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->CreateBroadcast(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::CreateRandom() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->CreateRandom(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Byte1(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte1(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte2(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte2(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte2(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte3(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte3()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte3(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte3(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte4(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte4()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte4(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte4(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AsCombined28BitValue(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AsCombined28BitValue()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsBroadcast(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsBroadcast()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsReserved(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsReserved()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint32_t combined28BitValue, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(combined28BitValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateBroadcast(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateBroadcast()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateRandom(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateRandom()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - inline MidiUniqueId::MidiUniqueId() : - MidiUniqueId(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiUniqueId::MidiUniqueId(uint32_t combined28BitValue) : - MidiUniqueId(impl::call_factory([&](IMidiUniqueIdFactory const& f) { return f.CreateInstance(combined28BitValue); })) - { - } - inline MidiUniqueId::MidiUniqueId(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) : - MidiUniqueId(impl::call_factory([&](IMidiUniqueIdFactory const& f) { return f.CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4); })) - { - } - inline auto MidiUniqueId::ShortLabel() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiUniqueId::LongLabel() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiUniqueId::CreateBroadcast() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.CreateBroadcast(); }); - } - inline auto MidiUniqueId::CreateRandom() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.CreateRandom(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h deleted file mode 100644 index ddc7ab50a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h +++ /dev/null @@ -1,273 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedGroup() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_IncludedGroup(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_IncludedGroup(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedChannels() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_IncludedChannels(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::IncludedGroups() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_IncludedGroups(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::IncludedMessageTypes() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_IncludedMessageTypes(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedGroup(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IncludedGroup()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IncludedGroup(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IncludedGroup(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IncludedChannels(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedChannels()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedGroups(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedGroups()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedMessageTypes(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedMessageTypes()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - inline MidiChannelEndpointListener::MidiChannelEndpointListener() : - MidiChannelEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiGroupEndpointListener::MidiGroupEndpointListener() : - MidiGroupEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiMessageTypeEndpointListener::MidiMessageTypeEndpointListener() : - MidiMessageTypeEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h deleted file mode 100644 index 1eaad3621..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h +++ /dev/null @@ -1,333 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::DiagnosticsLoopbackAEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->get_DiagnosticsLoopbackAEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::DiagnosticsLoopbackBEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->get_DiagnosticsLoopbackBEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::PingService(uint8_t pingCount) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->PingService(pingCount, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::MidiServicePingResponseSummary{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->PingService2(pingCount, timeoutMilliseconds, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::MidiServicePingResponseSummary{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetInstalledTransportPlugins() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetInstalledTransportPlugins(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetInstalledMessageProcessingPlugins() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetInstalledMessageProcessingPlugins(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetActiveSessions() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetActiveSessions(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::Success() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_Success(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::FailureReason() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_FailureReason(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::TotalPingRoundTripMidiClock() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_TotalPingRoundTripMidiClock(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::AveragePingRoundTripMidiClock() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_AveragePingRoundTripMidiClock(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::Responses() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_Responses(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::SessionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_SessionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::ProcessId() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_ProcessId(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::ProcessName() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_ProcessName(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::SessionName() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_SessionName(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::StartTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_StartTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::Connections() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_Connections(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_DiagnosticsLoopbackAEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DiagnosticsLoopbackAEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DiagnosticsLoopbackBEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DiagnosticsLoopbackBEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PingService(uint8_t pingCount, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PingService(pingCount)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PingService2(uint8_t pingCount, uint32_t timeoutMilliseconds, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PingService(pingCount, timeoutMilliseconds)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall GetInstalledTransportPlugins(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetInstalledTransportPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetInstalledMessageProcessingPlugins(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetInstalledMessageProcessingPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetActiveSessions(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetActiveSessions()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Success(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Success()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FailureReason(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FailureReason()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TotalPingRoundTripMidiClock(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TotalPingRoundTripMidiClock()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AveragePingRoundTripMidiClock(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AveragePingRoundTripMidiClock()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Responses(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Responses()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_SessionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ProcessId(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ProcessId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ProcessName(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ProcessName()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_SessionName(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionName()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_StartTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().StartTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Connections(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Connections()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - inline auto MidiDiagnostics::DiagnosticsLoopbackAEndpointDeviceId() - { - return impl::call_factory_cast([](IMidiDiagnosticsStatics const& f) { return f.DiagnosticsLoopbackAEndpointDeviceId(); }); - } - inline auto MidiDiagnostics::DiagnosticsLoopbackBEndpointDeviceId() - { - return impl::call_factory_cast([](IMidiDiagnosticsStatics const& f) { return f.DiagnosticsLoopbackBEndpointDeviceId(); }); - } - inline auto MidiDiagnostics::PingService(uint8_t pingCount) - { - return impl::call_factory([&](IMidiDiagnosticsStatics const& f) { return f.PingService(pingCount); }); - } - inline auto MidiDiagnostics::PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) - { - return impl::call_factory([&](IMidiDiagnosticsStatics const& f) { return f.PingService(pingCount, timeoutMilliseconds); }); - } - inline auto MidiReporting::GetInstalledTransportPlugins() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetInstalledTransportPlugins(); }); - } - inline auto MidiReporting::GetInstalledMessageProcessingPlugins() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetInstalledMessageProcessingPlugins(); }); - } - inline auto MidiReporting::GetActiveSessions() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetActiveSessions(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h deleted file mode 100644 index 4122a5f63..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h +++ /dev/null @@ -1,277 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::AssociationId(winrt::guid const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_AssociationId(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionA() const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_EndpointDefinitionA(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionA(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_EndpointDefinitionA(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionB() const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_EndpointDefinitionB(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionB(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_EndpointDefinitionB(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory::CreateInstance(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfigFactory)->CreateInstance(impl::bind_in(associationId), impl::bind_in(endpointDefinitionA), impl::bind_in(endpointDefinitionB), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig::AssociationId(winrt::guid const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig)->put_AssociationId(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory::CreateInstance(winrt::guid const& associationId) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfigFactory)->CreateInstance(impl::bind_in(associationId), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::IsTransportAvailable() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->get_IsTransportAvailable(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::AbstractionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->get_AbstractionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationResult result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->CreateTransientLoopbackEndpoints(*(void**)(&creationConfig), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->RemoveTransientLoopbackEndpoints(*(void**)(&deletionConfig), &result)); - return result; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_AssociationId(winrt::guid value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AssociationId(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDefinitionA()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDefinitionA(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDefinitionB()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDefinitionB(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(winrt::guid associationId, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition endpointDefinitionA, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition endpointDefinitionB, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&associationId), *reinterpret_cast(&endpointDefinitionA), *reinterpret_cast(&endpointDefinitionB))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_AssociationId(winrt::guid value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AssociationId(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(winrt::guid associationId, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&associationId))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsTransportAvailable(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsTransportAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AbstractionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AbstractionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateTransientLoopbackEndpoints(void* creationConfig, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateTransientLoopbackEndpoints(*reinterpret_cast(&creationConfig))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall RemoveTransientLoopbackEndpoints(void* deletionConfig, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().RemoveTransientLoopbackEndpoints(*reinterpret_cast(&deletionConfig))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - inline MidiLoopbackEndpointCreationConfig::MidiLoopbackEndpointCreationConfig() : - MidiLoopbackEndpointCreationConfig(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiLoopbackEndpointCreationConfig::MidiLoopbackEndpointCreationConfig(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) : - MidiLoopbackEndpointCreationConfig(impl::call_factory([&](IMidiLoopbackEndpointCreationConfigFactory const& f) { return f.CreateInstance(associationId, endpointDefinitionA, endpointDefinitionB); })) - { - } - inline MidiLoopbackEndpointDeletionConfig::MidiLoopbackEndpointDeletionConfig(winrt::guid const& associationId) : - MidiLoopbackEndpointDeletionConfig(impl::call_factory([&](IMidiLoopbackEndpointDeletionConfigFactory const& f) { return f.CreateInstance(associationId); })) - { - } - inline auto MidiLoopbackEndpointManager::IsTransportAvailable() - { - return impl::call_factory_cast([](IMidiLoopbackEndpointManagerStatics const& f) { return f.IsTransportAvailable(); }); - } - inline auto MidiLoopbackEndpointManager::AbstractionId() - { - return impl::call_factory_cast([](IMidiLoopbackEndpointManagerStatics const& f) { return f.AbstractionId(); }); - } - inline auto MidiLoopbackEndpointManager::CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) - { - return impl::call_factory([&](IMidiLoopbackEndpointManagerStatics const& f) { return f.CreateTransientLoopbackEndpoints(creationConfig); }); - } - inline auto MidiLoopbackEndpointManager::RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) - { - return impl::call_factory([&](IMidiLoopbackEndpointManagerStatics const& f) { return f.RemoveTransientLoopbackEndpoints(deletionConfig); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h deleted file mode 100644 index 7cb112476..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h +++ /dev/null @@ -1,528 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::PreferredMidiProtocol() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_PreferredMidiProtocol(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::RequestEndpointTransmitJitterReductionTimestamps() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_RequestEndpointTransmitJitterReductionTimestamps(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::RequestEndpointReceiveJitterReductionTimestamps() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_RequestEndpointReceiveJitterReductionTimestamps(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::DeviceEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_DeviceEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::FunctionBlocks() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_FunctionBlocks(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::UpdateFunctionBlock(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock const& block) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->UpdateFunctionBlock(*(void**)(&block), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::UpdateEndpointName(param::hstring const& name) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->UpdateEndpointName(*(void**)(&name), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::SuppressHandledMessages() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_SuppressHandledMessages(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::SuppressHandledMessages(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->put_SuppressHandledMessages(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->add_StreamConfigRequestReceived(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, StreamConfigRequestReceived(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->remove_StreamConfigRequestReceived(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Name(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Name(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Description() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Description(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Description(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Description(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Manufacturer() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Manufacturer(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Manufacturer(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Manufacturer(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredDeviceIdentity() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_DeclaredDeviceIdentity(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredDeviceIdentity(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_DeclaredDeviceIdentity(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredEndpointInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_DeclaredEndpointInfo(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredEndpointInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_DeclaredEndpointInfo(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::UserSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_UserSuppliedInfo(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::UserSuppliedInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_UserSuppliedInfo(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::FunctionBlocks() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_FunctionBlocks(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance2(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance2(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), impl::bind_in(declaredDeviceIdentity), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance3(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance3(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), impl::bind_in(declaredDeviceIdentity), impl::bind_in(userSuppliedInfo), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::IsTransportAvailable() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->get_IsTransportAvailable(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::AbstractionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->get_AbstractionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->CreateVirtualDevice(*(void**)(&creationConfig), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDevice{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreferredMidiProtocol(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreferredMidiProtocol()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RequestEndpointTransmitJitterReductionTimestamps(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RequestEndpointTransmitJitterReductionTimestamps()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RequestEndpointReceiveJitterReductionTimestamps(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RequestEndpointReceiveJitterReductionTimestamps()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_DeviceEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FunctionBlocks(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().FunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateFunctionBlock(void* block, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateFunctionBlock(*reinterpret_cast(&block))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateEndpointName(void* name, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateEndpointName(*reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_SuppressHandledMessages(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SuppressHandledMessages()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_SuppressHandledMessages(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().SuppressHandledMessages(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall add_StreamConfigRequestReceived(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().StreamConfigRequestReceived(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_StreamConfigRequestReceived(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().StreamConfigRequestReceived(*reinterpret_cast(&token)); - return 0; - } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Name(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Name(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Description(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Description()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Description(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Description(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Manufacturer(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Manufacturer()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Manufacturer(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Manufacturer(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredDeviceIdentity()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DeclaredDeviceIdentity(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredEndpointInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DeclaredEndpointInfo(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().UserSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().UserSuppliedInfo(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FunctionBlocks(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().FunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity declaredDeviceIdentity, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo), *reinterpret_cast(&declaredDeviceIdentity))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity declaredDeviceIdentity, struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo userSuppliedInfo, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo), *reinterpret_cast(&declaredDeviceIdentity), *reinterpret_cast(&userSuppliedInfo))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsTransportAvailable(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsTransportAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AbstractionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AbstractionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateVirtualDevice(void* creationConfig, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateVirtualDevice(*reinterpret_cast(&creationConfig))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance(name, description, manufacturer, declaredEndpointInfo); })) - { - } - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance2(name, description, manufacturer, declaredEndpointInfo, declaredDeviceIdentity); })) - { - } - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance3(name, description, manufacturer, declaredEndpointInfo, declaredDeviceIdentity, userSuppliedInfo); })) - { - } - inline auto MidiVirtualDeviceManager::IsTransportAvailable() - { - return impl::call_factory_cast([](IMidiVirtualDeviceManagerStatics const& f) { return f.IsTransportAvailable(); }); - } - inline auto MidiVirtualDeviceManager::AbstractionId() - { - return impl::call_factory_cast([](IMidiVirtualDeviceManagerStatics const& f) { return f.AbstractionId(); }); - } - inline auto MidiVirtualDeviceManager::CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) - { - return impl::call_factory([&](IMidiVirtualDeviceManagerStatics const& f) { return f.CreateVirtualDevice(creationConfig); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h deleted file mode 100644 index 3fec6b2d9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h +++ /dev/null @@ -1,162 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::IsOperatingSystemSupported() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->IsOperatingSystemSupported(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::EnsureServiceAvailable() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->EnsureServiceAvailable(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::InitializeSdkRuntime() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->InitializeSdkRuntime(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::IsCompatibleDesktopAppSdkRuntimeInstalled() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->IsCompatibleDesktopAppSdkRuntimeInstalled(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestRuntimeReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestRuntimeReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestSettingsAppReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestSettingsAppReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestConsoleAppReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestConsoleAppReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall IsOperatingSystemSupported(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsOperatingSystemSupported()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall EnsureServiceAvailable(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().EnsureServiceAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall InitializeSdkRuntime(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().InitializeSdkRuntime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsCompatibleDesktopAppSdkRuntimeInstalled(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsCompatibleDesktopAppSdkRuntimeInstalled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestRuntimeReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestRuntimeReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestSettingsAppReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestSettingsAppReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestConsoleAppReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestConsoleAppReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - inline auto MidiServicesInitializer::IsOperatingSystemSupported() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.IsOperatingSystemSupported(); }); - } - inline auto MidiServicesInitializer::EnsureServiceAvailable() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.EnsureServiceAvailable(); }); - } - inline auto MidiServicesInitializer::InitializeSdkRuntime() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.InitializeSdkRuntime(); }); - } - inline auto MidiServicesInitializer::IsCompatibleDesktopAppSdkRuntimeInstalled() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.IsCompatibleDesktopAppSdkRuntimeInstalled(); }); - } - inline auto MidiServicesInitializer::GetLatestRuntimeReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestRuntimeReleaseInstallerUri(); }); - } - inline auto MidiServicesInitializer::GetLatestSettingsAppReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestSettingsAppReleaseInstallerUri(); }); - } - inline auto MidiServicesInitializer::GetLatestConsoleAppReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestConsoleAppReleaseInstallerUri(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h deleted file mode 100644 index dc6388835..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h +++ /dev/null @@ -1,1341 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Windows.Devices.Midi.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildUtilityMessage(timestamp, status, dataOrReserved, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemMessage(timestamp, *(void**)(&group), status, midi1Byte2, midi1Byte3, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMidi1ChannelVoiceMessage(timestamp, *(void**)(&group), static_cast(status), *(void**)(&channel), byte3, byte4, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemExclusive7Message(timestamp, *(void**)(&group), status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMidi2ChannelVoiceMessage(timestamp, *(void**)(&group), static_cast(status), *(void**)(&channel), index, data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemExclusive8Message(timestamp, *(void**)(&group), static_cast(status), numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMixedDataSetChunkHeaderMessage(timestamp, *(void**)(&group), mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMixedDataSetChunkDataMessage(timestamp, *(void**)(&group), mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildFlexDataMessage(timestamp, *(void**)(&group), form, address, *(void**)(&channel), statusBank, status, word1Data, word2Data, word3Data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message(timestamp, *(void**)(&group), statusByte, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message2(timestamp, *(void**)(&group), statusByte, dataByte1, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message3(timestamp, *(void**)(&group), statusByte, dataByte1, dataByte2, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ChannelPressureMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1NoteOffMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1NoteOnMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1PitchBendChangeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1PolyphonicKeyPressureMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ProgramChangeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TimeCodeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SongPositionPointerMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SongSelectMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TuneRequestMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TimingClockMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1StartMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ContinueMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1StopMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ActiveSensingMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SystemResetMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage32MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage32MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage64MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage64MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage96MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage96MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage128MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage128MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetMessageTypeFromMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetMessageTypeFromMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetPacketTypeFromMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetPacketTypeFromMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->MessageTypeHasGroupField(static_cast(messageType), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ReplaceGroupInMessageFirstWord(word0, *(void**)(&newGroup), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetGroupFromMessageFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetGroupFromMessageFirstWord(word0, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromUtilityMessage(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromUtilityMessage(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromMidi1ChannelVoiceMessage(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusBankFromFlexDataMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromFlexDataMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromFlexDataMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromSystemCommonMessage(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromSystemCommonMessage(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromDataMessage64FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromDataMessage64FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetNumberOfBytesFromDataMessage64FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromDataMessage128FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromDataMessage128FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetNumberOfBytesFromDataMessage128FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->MessageTypeHasChannelField(static_cast(messageType), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ReplaceChannelInMessageFirstWord(word0, *(void**)(&newChannel), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetChannelFromMessageFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetChannelFromMessageFirstWord(word0, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiChannel{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetFormFromStreamMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetFormFromStreamMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromStreamMessageFirstWord(uint32_t word0) const - { - uint16_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromStreamMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetMessageDisplayNameFromFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetMessageDisplayNameFromFirstWord(word0, &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetPacketListFromWordList(timestamp, *(void**)(&words), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetWordListFromPacketList(param::iterable const& words) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetWordListFromPacketList(*(void**)(&words), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, static_cast(request), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointNameNotificationMessages(timestamp, *(void**)(&name), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildProductInstanceIdNotificationMessages(timestamp, *(void**)(&productInstanceId), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseEndpointNameNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseEndpointNameNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseProductInstanceIdNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseProductInstanceIdNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, static_cast(requestFlags), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, static_cast(uiHint), static_cast(midi10), static_cast(direction), firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, *(void**)(&name), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseFunctionBlockNameNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildUtilityMessage(timestamp, status, dataOrReserved)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemMessage(uint64_t timestamp, void* group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemMessage(timestamp, *reinterpret_cast(&group), status, midi1Byte2, midi1Byte3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMidi1ChannelVoiceMessage(uint64_t timestamp, void* group, int32_t status, void* channel, uint8_t byte3, uint8_t byte4, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMidi1ChannelVoiceMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), *reinterpret_cast(&channel), byte3, byte4)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemExclusive7Message(uint64_t timestamp, void* group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemExclusive7Message(timestamp, *reinterpret_cast(&group), status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMidi2ChannelVoiceMessage(uint64_t timestamp, void* group, int32_t status, void* channel, uint16_t index, uint32_t data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMidi2ChannelVoiceMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), *reinterpret_cast(&channel), index, data)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemExclusive8Message(uint64_t timestamp, void* group, int32_t status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemExclusive8Message(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, void* group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMixedDataSetChunkHeaderMessage(timestamp, *reinterpret_cast(&group), mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMixedDataSetChunkDataMessage(uint64_t timestamp, void* group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMixedDataSetChunkDataMessage(timestamp, *reinterpret_cast(&group), mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFlexDataMessage(uint64_t timestamp, void* group, uint8_t form, uint8_t address, void* channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFlexDataMessage(timestamp, *reinterpret_cast(&group), form, address, *reinterpret_cast(&channel), statusBank, status, word1Data, word2Data, word3Data)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall ConvertMidi1Message(uint64_t timestamp, void* group, uint8_t statusByte, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1Message2(uint64_t timestamp, void* group, uint8_t statusByte, uint8_t dataByte1, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte, dataByte1)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1Message3(uint64_t timestamp, void* group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte, dataByte1, dataByte2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ChannelPressureMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ChannelPressureMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1NoteOffMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1NoteOffMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1NoteOnMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1NoteOnMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1PitchBendChangeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1PolyphonicKeyPressureMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ProgramChangeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ProgramChangeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TimeCodeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TimeCodeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SongPositionPointerMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SongSelectMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SongSelectMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TuneRequestMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TuneRequestMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TimingClockMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TimingClockMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1StartMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1StartMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ContinueMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ContinueMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1StopMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1StopMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ActiveSensingMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ActiveSensingMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SystemResetMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SystemResetMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall ValidateMessage32MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage32MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage64MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage64MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage96MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage96MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage128MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage128MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessageTypeFromMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessageTypeFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetPacketTypeFromMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetPacketTypeFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall MessageTypeHasGroupField(int32_t messageType, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().MessageTypeHasGroupField(*reinterpret_cast(&messageType))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ReplaceGroupInMessageFirstWord(uint32_t word0, void* newGroup, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ReplaceGroupInMessageFirstWord(word0, *reinterpret_cast(&newGroup))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetGroupFromMessageFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetGroupFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromUtilityMessage(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromUtilityMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromMidi1ChannelVoiceMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusBankFromFlexDataMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromFlexDataMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromFlexDataMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromSystemCommonMessage(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromSystemCommonMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromDataMessage64FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromDataMessage64FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetNumberOfBytesFromDataMessage64FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromDataMessage128FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromDataMessage128FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetNumberOfBytesFromDataMessage128FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall MessageTypeHasChannelField(int32_t messageType, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().MessageTypeHasChannelField(*reinterpret_cast(&messageType))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ReplaceChannelInMessageFirstWord(uint32_t word0, void* newChannel, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ReplaceChannelInMessageFirstWord(word0, *reinterpret_cast(&newChannel))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetChannelFromMessageFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetChannelFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetFormFromStreamMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetFormFromStreamMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromStreamMessageFirstWord(uint32_t word0, uint16_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromStreamMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessageDisplayNameFromFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessageDisplayNameFromFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetPacketListFromWordList(uint64_t timestamp, void* words, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetPacketListFromWordList(timestamp, *reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetWordListFromPacketList(void* words, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetWordListFromPacketList(*reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, uint32_t request, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, *reinterpret_cast(&request))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildEndpointNameNotificationMessages(uint64_t timestamp, void* name, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildEndpointNameNotificationMessages(timestamp, *reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildProductInstanceIdNotificationMessages(uint64_t timestamp, void* productInstanceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildProductInstanceIdNotificationMessages(timestamp, *reinterpret_cast(&productInstanceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseEndpointNameNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseEndpointNameNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseProductInstanceIdNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseProductInstanceIdNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, uint32_t requestFlags, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, *reinterpret_cast(&requestFlags))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, int32_t uiHint, int32_t midi10, int32_t direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, *reinterpret_cast(&uiHint), *reinterpret_cast(&midi10), *reinterpret_cast(&direction), firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, void* name, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, *reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseFunctionBlockNameNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseFunctionBlockNameNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - constexpr auto operator|(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiEndpointDiscoveryRequests const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left ^ right; - return left; - } - constexpr auto operator|(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiFunctionBlockDiscoveryRequests const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left ^ right; - return left; - } - inline auto MidiMessageBuilder::BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildUtilityMessage(timestamp, status, dataOrReserved); }); - } - inline auto MidiMessageBuilder::BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemMessage(timestamp, group, status, midi1Byte2, midi1Byte3); }); - } - inline auto MidiMessageBuilder::BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMidi1ChannelVoiceMessage(timestamp, group, status, channel, byte3, byte4); }); - } - inline auto MidiMessageBuilder::BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemExclusive7Message(timestamp, group, status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5); }); - } - inline auto MidiMessageBuilder::BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMidi2ChannelVoiceMessage(timestamp, group, status, channel, index, data); }); - } - inline auto MidiMessageBuilder::BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemExclusive8Message(timestamp, group, status, numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12); }); - } - inline auto MidiMessageBuilder::BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMixedDataSetChunkHeaderMessage(timestamp, group, mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2); }); - } - inline auto MidiMessageBuilder::BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMixedDataSetChunkDataMessage(timestamp, group, mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13); }); - } - inline auto MidiMessageBuilder::BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildFlexDataMessage(timestamp, group, form, address, channel, statusBank, status, word1Data, word2Data, word3Data); }); - } - inline auto MidiMessageBuilder::BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte, dataByte1); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte, dataByte1, dataByte2); }); - } - inline auto MidiMessageConverter::ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ChannelPressureMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1NoteOffMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1NoteOnMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1PitchBendChangeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1PolyphonicKeyPressureMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ProgramChangeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TimeCodeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SongPositionPointerMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SongSelectMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TuneRequestMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TimingClockMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1StartMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ContinueMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1StopMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ActiveSensingMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SystemResetMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageHelper::ValidateMessage32MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage32MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage64MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage64MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage96MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage96MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage128MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage128MessageType(word0); }); - } - inline auto MidiMessageHelper::GetMessageTypeFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetMessageTypeFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetPacketTypeFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetPacketTypeFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.MessageTypeHasGroupField(messageType); }); - } - inline auto MidiMessageHelper::ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ReplaceGroupInMessageFirstWord(word0, newGroup); }); - } - inline auto MidiMessageHelper::GetGroupFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetGroupFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromUtilityMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromUtilityMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromMidi1ChannelVoiceMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusBankFromFlexDataMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromFlexDataMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromFlexDataMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromSystemCommonMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromSystemCommonMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromDataMessage64FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromDataMessage64FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetNumberOfBytesFromDataMessage64FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromDataMessage128FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromDataMessage128FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetNumberOfBytesFromDataMessage128FirstWord(word0); }); - } - inline auto MidiMessageHelper::MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.MessageTypeHasChannelField(messageType); }); - } - inline auto MidiMessageHelper::ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ReplaceChannelInMessageFirstWord(word0, newChannel); }); - } - inline auto MidiMessageHelper::GetChannelFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetChannelFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetFormFromStreamMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetFormFromStreamMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromStreamMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromStreamMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetMessageDisplayNameFromFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetMessageDisplayNameFromFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetPacketListFromWordList(timestamp, words); }); - } - inline auto MidiMessageHelper::GetWordListFromPacketList(param::iterable const& words) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetWordListFromPacketList(words); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, request); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointNameNotificationMessages(timestamp, name); }); - } - inline auto MidiStreamMessageBuilder::BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildProductInstanceIdNotificationMessages(timestamp, productInstanceId); }); - } - inline auto MidiStreamMessageBuilder::ParseEndpointNameNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseEndpointNameNotificationMessages(messages); }); - } - inline auto MidiStreamMessageBuilder::ParseProductInstanceIdNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseProductInstanceIdNotificationMessages(messages); }); - } - inline auto MidiStreamMessageBuilder::BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, requestFlags); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, uiHint, midi10, direction, firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, name); }); - } - inline auto MidiStreamMessageBuilder::ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseFunctionBlockNameNotificationMessages(messages); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h deleted file mode 100644 index e221d614e..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h +++ /dev/null @@ -1,192 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics::UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) const - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponse result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfigStatics)->UpdateTransportPluginConfig(*(void**)(&configUpdate), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics::UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) const - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponse result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfigStatics)->UpdateProcessingPluginConfig(*(void**)(&configUpdate), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::MessageProcessingPluginId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_MessageProcessingPluginId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::PluginInstanceId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_PluginInstanceId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::IsFromCurrentConfigFile() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_IsFromCurrentConfigFile(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::GetConfigJson() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->GetConfigJson(&result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::TransportId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->get_TransportId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::IsFromCurrentConfigFile() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->get_IsFromCurrentConfigFile(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::GetConfigJson() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->GetConfigJson(&result)); - return hstring{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall UpdateTransportPluginConfig(void* configUpdate, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateTransportPluginConfig(*reinterpret_cast(&configUpdate))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateProcessingPluginConfig(void* configUpdate, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateProcessingPluginConfig(*reinterpret_cast(&configUpdate))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageProcessingPluginId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageProcessingPluginId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PluginInstanceId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PluginInstanceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsFromCurrentConfigFile(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsFromCurrentConfigFile()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetConfigJson(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetConfigJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; - template - struct produce : produce_base - { - int32_t __stdcall get_TransportId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TransportId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsFromCurrentConfigFile(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsFromCurrentConfigFile()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetConfigJson(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetConfigJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - inline auto MidiServiceConfig::UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) - { - return impl::call_factory([&](IMidiServiceConfigStatics const& f) { return f.UpdateTransportPluginConfig(configUpdate); }); - } - inline auto MidiServiceConfig::UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) - { - return impl::call_factory([&](IMidiServiceConfigStatics const& f) { return f.UpdateProcessingPluginConfig(configUpdate); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h deleted file mode 100644 index 3a83fd447..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h +++ /dev/null @@ -1,3689 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/impl/Windows.Devices.Enumeration.2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::Index() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->get_Index(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::Index(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->put_Index(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::DisplayValue() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->get_DisplayValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory::CreateInstance(uint8_t index) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelFactory)->CreateInstance(index, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiChannel{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::IsValidIndex(uint8_t index) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->IsValidIndex(index, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::Now() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_Now(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::TimestampConstantSendImmediately() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_TimestampConstantSendImmediately(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::TimestampFrequency() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_TimestampFrequency(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToNanoseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToMicroseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToMilliseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToSeconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToSeconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByTicks(timestampValue, offsetTicks, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampBySeconds(timestampValue, offsetSeconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::ConnectionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_ConnectionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::ConnectedEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_ConnectedEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Tag() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_Tag(&value)); - return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Tag(winrt::Windows::Foundation::IInspectable const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->put_Tag(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::LogMessageDataValidationErrorDetails() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_LogMessageDataValidationErrorDetails(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::LogMessageDataValidationErrorDetails(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->put_LogMessageDataValidationErrorDetails(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Settings() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_Settings(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::IsOpen() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_IsOpen(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Open() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->Open(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::IsAutoReconnectEnabled() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_IsAutoReconnectEnabled(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::MessageProcessingPlugins() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_MessageProcessingPlugins(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::AddMessageProcessingPlugin(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin const& plugin) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->AddMessageProcessingPlugin(*(void**)(&plugin))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::RemoveMessageProcessingPlugin(winrt::guid const& id) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->RemoveMessageProcessingPlugin(impl::bind_in(id))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessagePacket(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket const& message) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessagePacket(*(void**)(&message), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageStruct(timestamp, wordCount, impl::bind_in(message), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, array_view words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWordArray(timestamp, startIndex, wordCount, words.size(), get_abi(words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords(timestamp, word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords2(timestamp, word0, word1, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords3(timestamp, word0, word1, word2, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords4(timestamp, word0, word1, word2, word3, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageBuffer(timestamp, byteOffset, byteCount, *(void**)(&buffer), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesWordList(uint64_t timestamp, param::iterable const& words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesWordList(timestamp, *(void**)(&words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, array_view words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesWordArray(timestamp, startIndex, wordCount, words.size(), get_abi(words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesPacketList(param::iterable const& messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesPacketList(*(void**)(&messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesStructList(uint64_t timestamp, param::iterable const& messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesStructList(timestamp, *(void**)(&messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, array_view messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesStructArray(timestamp, startIndex, messageCount, messages.size(), get_abi(messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesBuffer(timestamp, byteOffset, byteCount, *(void**)(&buffer), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings::SettingsJson() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings)->get_SettingsJson(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->add_EndpointDeviceDisconnected(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EndpointDeviceDisconnected(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->remove_EndpointDeviceDisconnected(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->add_EndpointDeviceReconnected(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EndpointDeviceReconnected(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->remove_EndpointDeviceReconnected(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::GetDeviceSelector() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->GetDeviceSelector(&result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->SendMessageSucceeded(static_cast(sendResult), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->SendMessageFailed(static_cast(sendResult), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::ContainerId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_ContainerId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeviceInstanceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeviceInstanceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::EndpointPurpose() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDevicePurpose value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_EndpointPurpose(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredEndpointInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredEndpointInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredEndpointInfoLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredEndpointInfoLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredDeviceIdentity() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredDeviceIdentity(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredDeviceIdentityLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredDeviceIdentityLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredStreamConfiguration() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredStreamConfiguration result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredStreamConfiguration(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredStreamConfigurationLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredStreamConfigurationLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredFunctionBlocks() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredFunctionBlocks(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredFunctionBlocksLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredFunctionBlocksLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetGroupTerminalBlocks() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetGroupTerminalBlocks(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetUserSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetUserSuppliedInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetTransportSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointTransportSuppliedInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetTransportSuppliedInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetParentDeviceInformation() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetParentDeviceInformation(&result)); - return winrt::Windows::Devices::Enumeration::DeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetContainerDeviceInformation() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetContainerDeviceInformation(&result)); - return winrt::Windows::Devices::Enumeration::DeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::Properties() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_Properties(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs::AddedDevice() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs)->get_AddedDevice(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs::DeviceInformationUpdate() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs)->get_DeviceInformationUpdate(&value)); - return winrt::Windows::Devices::Enumeration::DeviceInformationUpdate{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->CreateFromEndpointDeviceId(*(void**)(&endpointDeviceId), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll2(static_cast(sortOrder), &result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll3(static_cast(sortOrder), static_cast(endpointTypesToInclude), &result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::EndpointInterfaceClass() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->get_EndpointInterfaceClass(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::GetAdditionalPropertiesList() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->GetAdditionalPropertiesList(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->DeviceMatchesFilter(*(void**)(&deviceInformation), static_cast(endpointTypesToInclude), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsNameUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsNameUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsEndpointInformationUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsEndpointInformationUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsDeviceIdentityUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsDeviceIdentityUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsStreamConfigurationUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsStreamConfigurationUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::AreFunctionBlocksUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_AreFunctionBlocksUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsUserMetadataUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsUserMetadataUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::AreAdditionalCapabilitiesUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_AreAdditionalCapabilitiesUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::DeviceInformationUpdate() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_DeviceInformationUpdate(&value)); - return winrt::Windows::Devices::Enumeration::DeviceInformationUpdate{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Start() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->Start()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stop() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->Stop()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumeratedEndpointDevices() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->get_EnumeratedEndpointDevices(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Status() const - { - winrt::Windows::Devices::Enumeration::DeviceWatcherStatus value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->get_Status(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Added(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Added(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Added(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Removed(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Removed(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Removed(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Updated(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Updated(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Updated(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_EnumerationCompleted(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EnumerationCompleted(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_EnumerationCompleted(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Stopped(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Stopped(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Stopped(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics::Create() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcherStatics)->Create(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceWatcher{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics::Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcherStatics)->Create2(static_cast(endpointFilters), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceWatcher{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::PluginId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_PluginId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::PluginName() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_PluginName(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::PluginName(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_PluginName(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::PluginTag() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_PluginTag(&value)); - return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::PluginTag(winrt::Windows::Foundation::IInspectable const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_PluginTag(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::IsEnabled() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_IsEnabled(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::IsEnabled(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_IsEnabled(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Initialize(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource const& endpointConnection) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->Initialize(*(void**)(&endpointConnection))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::OnEndpointConnectionOpened() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->OnEndpointConnectionOpened()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::ProcessIncomingMessage(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageReceivedEventArgs const& args, bool& skipFurtherListeners, bool& skipMainMessageReceivedEvent) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->ProcessIncomingMessage(*(void**)(&args), &skipFurtherListeners, &skipMainMessageReceivedEvent)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Cleanup() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->Cleanup()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsReadOnly() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_IsReadOnly(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Number() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Number(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Number(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Number(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Name(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Name(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsActive() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_IsActive(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsActive(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_IsActive(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Direction() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Direction(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Direction(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Direction(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::UIHint() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_UIHint(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::UIHint(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_UIHint(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::RepresentsMidi10Connection() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_RepresentsMidi10Connection(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::RepresentsMidi10Connection(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_RepresentsMidi10Connection(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::FirstGroupIndex() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_FirstGroupIndex(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::FirstGroupIndex(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_FirstGroupIndex(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::GroupCount() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_GroupCount(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::GroupCount(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_GroupCount(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->IncludesGroup(*(void**)(&group), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MidiCIMessageVersionFormat() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_MidiCIMessageVersionFormat(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MidiCIMessageVersionFormat(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_MidiCIMessageVersionFormat(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MaxSystemExclusive8Streams() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_MaxSystemExclusive8Streams(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MaxSystemExclusive8Streams(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_MaxSystemExclusive8Streams(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::Index() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->get_Index(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::Index(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->put_Index(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::DisplayValue() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->get_DisplayValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory::CreateInstance(uint8_t index) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupFactory)->CreateInstance(index, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::IsValidIndex(uint8_t index) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->IsValidIndex(index, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Number() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Number(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Direction() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiGroupTerminalBlockDirection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Direction(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Protocol() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiGroupTerminalBlockProtocol value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Protocol(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::FirstGroupIndex() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_FirstGroupIndex(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::GroupCount() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_GroupCount(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->IncludesGroup(*(void**)(&group), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::MaxDeviceInputBandwidthIn4KBitsPerSecondUnits() const - { - uint16_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits() const - { - uint16_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::CalculatedMaxDeviceInputBandwidthBitsPerSecond() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::CalculatedMaxDeviceOutputBandwidthBitsPerSecond() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::AsEquivalentFunctionBlock() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->AsEquivalentFunctionBlock(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word2() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word2(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word3() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word3(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word3(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word3(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance2(timestamp, word0, word1, word2, word3, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Factory)->CreateInstance2(timestamp, word0, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance2(timestamp, word0, word1, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word2() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word2(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance2(timestamp, word0, word1, word2, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::PacketType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_PacketType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::MessageType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_MessageType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::PeekFirstWord() const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->PeekFirstWord(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::GetMessagePacket() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->GetMessagePacket(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillWords(uint32_t& word0, uint32_t& word1, uint32_t& word2, uint32_t& word3) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillWords(&word0, &word1, &word2, &word3, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessageStruct(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct& message) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessageStruct(impl::bind_out(message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage32(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage32(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage64(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage64(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage96(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage96(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage128(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage128(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillWordArray(uint32_t startIndex, array_view words) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillWordArray(startIndex, words.size(), put_abi(words), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillByteArray(uint32_t startIndex, array_view bytes) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillByteArray(startIndex, bytes.size(), put_abi(bytes), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillBuffer(byteOffset, *(void**)(&buffer), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::AppendWordsToList(param::vector const& wordList) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->AppendWordsToList(*(void**)(&wordList), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventSource)->add_MessageReceived(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, MessageReceived(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventSource)->remove_MessageReceived(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::SessionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_SessionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::IsOpen() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_IsOpen(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::Connections() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_Connections(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection(*(void**)(&endpointDeviceId), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection2(*(void**)(&endpointDeviceId), autoReconnect, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect, winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings const& settings) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection3(*(void**)(&endpointDeviceId), autoReconnect, *(void**)(&settings), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::DisconnectEndpointConnection(winrt::guid const& endpointConnectionId) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->DisconnectEndpointConnection(impl::bind_in(endpointConnectionId))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::UpdateName(param::hstring const& newName) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->UpdateName(*(void**)(&newName), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics::Create(param::hstring const& sessionName) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSessionStatics)->Create(*(void**)(&sessionName), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiSession{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::Timestamp(uint64_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->put_Timestamp(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::MessageType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_MessageType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::MessageType(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->put_MessageType(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::PacketType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_PacketType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::PeekFirstWord() const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->PeekFirstWord(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::GetAllWords() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->GetAllWords(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::AppendAllMessageWordsToList(param::vector const& targetList) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->AppendAllMessageWordsToList(*(void**)(&targetList), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->FillBuffer(byteOffset, *(void**)(&buffer), &result)); - return result; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Index(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Index()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Index(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Index(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DisplayValue(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DisplayValue()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint8_t index, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsValidIndex(uint8_t index, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsValidIndex(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Now(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Now()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TimestampConstantSendImmediately(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TimestampConstantSendImmediately()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TimestampFrequency(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TimestampFrequency()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToNanoseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToNanoseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToMicroseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToMicroseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToMilliseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToMilliseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToSeconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToSeconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByTicks(timestampValue, offsetTicks)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampBySeconds(timestampValue, offsetSeconds)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ConnectionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ConnectionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ConnectedEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ConnectedEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Tag(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Tag()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Tag(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Tag(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LogMessageDataValidationErrorDetails(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LogMessageDataValidationErrorDetails()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_LogMessageDataValidationErrorDetails(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().LogMessageDataValidationErrorDetails(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Settings(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Settings()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsOpen(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsOpen()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Open(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Open()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsAutoReconnectEnabled(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsAutoReconnectEnabled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageProcessingPlugins(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().MessageProcessingPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AddMessageProcessingPlugin(void* plugin) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AddMessageProcessingPlugin(*reinterpret_cast(&plugin)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall RemoveMessageProcessingPlugin(winrt::guid id) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().RemoveMessageProcessingPlugin(*reinterpret_cast(&id)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessagePacket(void* message, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessagePacket(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct const& message, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageStruct(timestamp, wordCount, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, uint32_t __wordsSize, uint32_t* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWordArray(timestamp, startIndex, wordCount, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords3(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1, word2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords4(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1, word2, word3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, void* buffer, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageBuffer(timestamp, byteOffset, byteCount, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesWordList(uint64_t timestamp, void* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesWordList(timestamp, *reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, uint32_t __wordsSize, uint32_t* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesWordArray(timestamp, startIndex, wordCount, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesPacketList(void* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesPacketList(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesStructList(uint64_t timestamp, void* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesStructList(timestamp, *reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, uint32_t __messagesSize, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesStructArray(timestamp, startIndex, messageCount, array_view(reinterpret_cast(messages), reinterpret_cast(messages) + __messagesSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, void* buffer, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesBuffer(timestamp, byteOffset, byteCount, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_SettingsJson(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SettingsJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; - template - struct produce : produce_base - { - int32_t __stdcall add_EndpointDeviceDisconnected(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EndpointDeviceDisconnected(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EndpointDeviceDisconnected(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDeviceDisconnected(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_EndpointDeviceReconnected(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EndpointDeviceReconnected(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EndpointDeviceReconnected(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDeviceReconnected(*reinterpret_cast(&token)); - return 0; - } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall GetDeviceSelector(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeviceSelector()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMessageSucceeded(uint32_t sendResult, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMessageSucceeded(*reinterpret_cast(&sendResult))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMessageFailed(uint32_t sendResult, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMessageFailed(*reinterpret_cast(&sendResult))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ContainerId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ContainerId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInstanceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInstanceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointPurpose(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointPurpose()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredEndpointInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredEndpointInfoLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredEndpointInfoLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredDeviceIdentity()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredDeviceIdentityLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredDeviceIdentityLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredStreamConfiguration(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredStreamConfiguration()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredStreamConfigurationLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredStreamConfigurationLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredFunctionBlocks(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetDeclaredFunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredFunctionBlocksLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredFunctionBlocksLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetGroupTerminalBlocks(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetGroupTerminalBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetUserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetUserSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetTransportSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetTransportSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetParentDeviceInformation(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetParentDeviceInformation()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetContainerDeviceInformation(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetContainerDeviceInformation()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Properties(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Properties()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AddedDevice(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AddedDevice()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInformationUpdate(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInformationUpdate()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromEndpointDeviceId(void* endpointDeviceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromEndpointDeviceId(*reinterpret_cast(&endpointDeviceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll2(int32_t sortOrder, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll(*reinterpret_cast(&sortOrder))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll3(int32_t sortOrder, uint32_t endpointTypesToInclude, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll(*reinterpret_cast(&sortOrder), *reinterpret_cast(&endpointTypesToInclude))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointInterfaceClass(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointInterfaceClass()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetAdditionalPropertiesList(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetAdditionalPropertiesList()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall DeviceMatchesFilter(void* deviceInformation, uint32_t endpointTypesToInclude, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().DeviceMatchesFilter(*reinterpret_cast(&deviceInformation), *reinterpret_cast(&endpointTypesToInclude))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsNameUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsNameUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsEndpointInformationUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsEndpointInformationUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsDeviceIdentityUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsDeviceIdentityUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsStreamConfigurationUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsStreamConfigurationUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AreFunctionBlocksUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AreFunctionBlocksUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsUserMetadataUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsUserMetadataUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AreAdditionalCapabilitiesUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AreAdditionalCapabilitiesUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInformationUpdate(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInformationUpdate()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Start() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Start(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Stop() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Stop(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EnumeratedEndpointDevices(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().EnumeratedEndpointDevices()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Status(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Status()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall add_Added(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Added(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Added(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Added(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Removed(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Removed(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Removed(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Removed(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Updated(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Updated(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Updated(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Updated(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_EnumerationCompleted(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EnumerationCompleted(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EnumerationCompleted(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EnumerationCompleted(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Stopped(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Stopped(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Stopped(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Stopped(*reinterpret_cast(&token)); - return 0; - } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Create(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Create2(uint32_t endpointFilters, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create(*reinterpret_cast(&endpointFilters))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_PluginId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PluginId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PluginName(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PluginName()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PluginName(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PluginName(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PluginTag(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PluginTag()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PluginTag(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PluginTag(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsEnabled(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsEnabled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IsEnabled(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IsEnabled(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Initialize(void* endpointConnection) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Initialize(*reinterpret_cast(&endpointConnection)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OnEndpointConnectionOpened() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().OnEndpointConnectionOpened(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ProcessIncomingMessage(void* args, bool* skipFurtherListeners, bool* skipMainMessageReceivedEvent) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().ProcessIncomingMessage(*reinterpret_cast(&args), *skipFurtherListeners, *skipMainMessageReceivedEvent); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Cleanup() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Cleanup(); - return 0; - } - catch (...) { return to_hresult(); } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsReadOnly(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsReadOnly()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Number(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Number()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Number(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Number(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Name(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Name(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsActive(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsActive()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IsActive(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IsActive(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Direction(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Direction()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Direction(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Direction(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_UIHint(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().UIHint()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_UIHint(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().UIHint(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RepresentsMidi10Connection(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RepresentsMidi10Connection()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_RepresentsMidi10Connection(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().RepresentsMidi10Connection(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FirstGroupIndex(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FirstGroupIndex()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_FirstGroupIndex(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().FirstGroupIndex(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_GroupCount(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().GroupCount()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_GroupCount(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().GroupCount(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IncludesGroup(void* group, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IncludesGroup(*reinterpret_cast(&group))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MidiCIMessageVersionFormat(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MidiCIMessageVersionFormat()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MidiCIMessageVersionFormat(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MidiCIMessageVersionFormat(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxSystemExclusive8Streams(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxSystemExclusive8Streams()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MaxSystemExclusive8Streams(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MaxSystemExclusive8Streams(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Index(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Index()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Index(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Index(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DisplayValue(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DisplayValue()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint8_t index, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsValidIndex(uint8_t index, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsValidIndex(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Number(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Number()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Direction(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Direction()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Protocol(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Protocol()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FirstGroupIndex(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FirstGroupIndex()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_GroupCount(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().GroupCount()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IncludesGroup(void* group, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IncludesGroup(*reinterpret_cast(&group))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(uint16_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxDeviceInputBandwidthIn4KBitsPerSecondUnits()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(uint16_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CalculatedMaxDeviceInputBandwidthBitsPerSecond()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CalculatedMaxDeviceOutputBandwidthBitsPerSecond()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AsEquivalentFunctionBlock(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AsEquivalentFunctionBlock()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word2(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word2(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word2(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word3(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word3()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word3(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word3(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, word2, word3, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word2(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word2(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word2(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, word2, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PacketType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PacketType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PeekFirstWord(uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PeekFirstWord()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessagePacket(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessagePacket()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillWords(uint32_t* word0, uint32_t* word1, uint32_t* word2, uint32_t* word3, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillWords(*word0, *word1, *word2, *word3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessageStruct(struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct* message, uint8_t* result) noexcept final try - { - zero_abi(message); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessageStruct(*reinterpret_cast(message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage32(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage32(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage64(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage64(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage96(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage96(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage128(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage128(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillWordArray(uint32_t startIndex, uint32_t __wordsSize, uint32_t* words, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillWordArray(startIndex, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillByteArray(uint32_t startIndex, uint32_t __bytesSize, uint8_t* bytes, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillByteArray(startIndex, array_view(reinterpret_cast(bytes), reinterpret_cast(bytes) + __bytesSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillBuffer(uint32_t byteOffset, void* buffer, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillBuffer(byteOffset, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AppendWordsToList(void* wordList, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AppendWordsToList(*reinterpret_cast const*>(&wordList))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall add_MessageReceived(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().MessageReceived(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_MessageReceived(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().MessageReceived(*reinterpret_cast(&token)); - return 0; - } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_SessionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsOpen(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsOpen()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Connections(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Connections()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection(void* endpointDeviceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection2(void* endpointDeviceId, bool autoReconnect, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId), autoReconnect)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection3(void* endpointDeviceId, bool autoReconnect, void* settings, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId), autoReconnect, *reinterpret_cast(&settings))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall DisconnectEndpointConnection(winrt::guid endpointConnectionId) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DisconnectEndpointConnection(*reinterpret_cast(&endpointConnectionId)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateName(void* newName, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateName(*reinterpret_cast(&newName))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Create(void* sessionName, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create(*reinterpret_cast(&sessionName))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Timestamp(uint64_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Timestamp(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MessageType(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MessageType(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PacketType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PacketType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PeekFirstWord(uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PeekFirstWord()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetAllWords(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetAllWords()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AppendAllMessageWordsToList(void* targetList, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AppendAllMessageWordsToList(*reinterpret_cast const*>(&targetList))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillBuffer(uint32_t byteOffset, void* buffer, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillBuffer(byteOffset, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - }; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - constexpr auto operator|(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiEndpointDeviceInformationFilters const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left ^ right; - return left; - } - constexpr auto operator|(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiSendMessageResults const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left ^ right; - return left; - } - inline MidiChannel::MidiChannel(uint8_t index) : - MidiChannel(impl::call_factory([&](IMidiChannelFactory const& f) { return f.CreateInstance(index); })) - { - } - inline auto MidiChannel::ShortLabel() - { - return impl::call_factory_cast([](IMidiChannelStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiChannel::LongLabel() - { - return impl::call_factory_cast([](IMidiChannelStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiChannel::IsValidIndex(uint8_t index) - { - return impl::call_factory([&](IMidiChannelStatics const& f) { return f.IsValidIndex(index); }); - } - inline auto MidiClock::Now() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.Now(); }); - } - inline auto MidiClock::TimestampConstantSendImmediately() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.TimestampConstantSendImmediately(); }); - } - inline auto MidiClock::TimestampFrequency() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.TimestampFrequency(); }); - } - inline auto MidiClock::ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToNanoseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToMicroseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToMilliseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToSeconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToSeconds(timestampValue); }); - } - inline auto MidiClock::OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByTicks(timestampValue, offsetTicks); }); - } - inline auto MidiClock::OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds); }); - } - inline auto MidiClock::OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds); }); - } - inline auto MidiClock::OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampBySeconds(timestampValue, offsetSeconds); }); - } - inline auto MidiEndpointConnection::GetDeviceSelector() - { - return impl::call_factory_cast([](IMidiEndpointConnectionStatics const& f) { return f.GetDeviceSelector(); }); - } - inline auto MidiEndpointConnection::SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) - { - return impl::call_factory([&](IMidiEndpointConnectionStatics const& f) { return f.SendMessageSucceeded(sendResult); }); - } - inline auto MidiEndpointConnection::SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) - { - return impl::call_factory([&](IMidiEndpointConnectionStatics const& f) { return f.SendMessageFailed(sendResult); }); - } - inline auto MidiEndpointDeviceInformation::CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.CreateFromEndpointDeviceId(endpointDeviceId); }); - } - inline auto MidiEndpointDeviceInformation::FindAll() - { - return impl::call_factory_cast(*)(IMidiEndpointDeviceInformationStatics const&), MidiEndpointDeviceInformation, IMidiEndpointDeviceInformationStatics>([](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(); }); - } - inline auto MidiEndpointDeviceInformation::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(sortOrder); }); - } - inline auto MidiEndpointDeviceInformation::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(sortOrder, endpointTypesToInclude); }); - } - inline auto MidiEndpointDeviceInformation::EndpointInterfaceClass() - { - return impl::call_factory_cast([](IMidiEndpointDeviceInformationStatics const& f) { return f.EndpointInterfaceClass(); }); - } - inline auto MidiEndpointDeviceInformation::GetAdditionalPropertiesList() - { - return impl::call_factory_cast(*)(IMidiEndpointDeviceInformationStatics const&), MidiEndpointDeviceInformation, IMidiEndpointDeviceInformationStatics>([](IMidiEndpointDeviceInformationStatics const& f) { return f.GetAdditionalPropertiesList(); }); - } - inline auto MidiEndpointDeviceInformation::DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.DeviceMatchesFilter(deviceInformation, endpointTypesToInclude); }); - } - inline auto MidiEndpointDeviceWatcher::Create() - { - return impl::call_factory_cast([](IMidiEndpointDeviceWatcherStatics const& f) { return f.Create(); }); - } - inline auto MidiEndpointDeviceWatcher::Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) - { - return impl::call_factory([&](IMidiEndpointDeviceWatcherStatics const& f) { return f.Create(endpointFilters); }); - } - inline MidiFunctionBlock::MidiFunctionBlock() : - MidiFunctionBlock(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiGroup::MidiGroup(uint8_t index) : - MidiGroup(impl::call_factory([&](IMidiGroupFactory const& f) { return f.CreateInstance(index); })) - { - } - inline auto MidiGroup::ShortLabel() - { - return impl::call_factory_cast([](IMidiGroupStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiGroup::LongLabel() - { - return impl::call_factory_cast([](IMidiGroupStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiGroup::IsValidIndex(uint8_t index) - { - return impl::call_factory([&](IMidiGroupStatics const& f) { return f.IsValidIndex(index); }); - } - inline MidiMessage128::MidiMessage128() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage128::MidiMessage128(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, word2, word3, baseInterface, innerInterface); }); - } - inline MidiMessage128::MidiMessage128(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage128::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage128Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage32::MidiMessage32() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage32Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage32::MidiMessage32(uint64_t timestamp, uint32_t word0) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage32Factory const& f) { return f.CreateInstance2(timestamp, word0, baseInterface, innerInterface); }); - } - inline auto MidiMessage32::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage32Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage64::MidiMessage64() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage64::MidiMessage64(uint64_t timestamp, uint32_t word0, uint32_t word1) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, baseInterface, innerInterface); }); - } - inline MidiMessage64::MidiMessage64(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage64::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage64Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage96::MidiMessage96() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage96::MidiMessage96(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, word2, baseInterface, innerInterface); }); - } - inline MidiMessage96::MidiMessage96(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage96::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage96Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline auto MidiSession::Create(param::hstring const& sessionName) - { - return impl::call_factory([&](IMidiSessionStatics const& f) { return f.Create(sessionName); }); - } - template - struct MidiMessage128T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage128; - protected: - MidiMessage128T() - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage128T(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, word2, word3, *this, this->m_inner); }); - } - MidiMessage128T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; - template - struct MidiMessage32T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage32; - protected: - MidiMessage32T() - { - impl::call_factory([&](IMidiMessage32Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage32T(uint64_t timestamp, uint32_t word0) - { - impl::call_factory([&](IMidiMessage32Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, *this, this->m_inner); }); - } - }; - template - struct MidiMessage64T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage64; - protected: - MidiMessage64T() - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage64T(uint64_t timestamp, uint32_t word0, uint32_t word1) - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, *this, this->m_inner); }); - } - MidiMessage64T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; - template - struct MidiMessage96T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage96; - protected: - MidiMessage96T() - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage96T(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, word2, *this, this->m_inner); }); - } - MidiMessage96T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h deleted file mode 100644 index 7ba28d513..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h +++ /dev/null @@ -1,1524 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_0_H -WINRT_EXPORT namespace winrt::Windows::Devices::Enumeration -{ - struct DeviceInformation; - struct DeviceInformationUpdate; - enum class DeviceWatcherStatus : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct EventRegistrationToken; - struct IMemoryBuffer; - template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; -} -WINRT_EXPORT namespace winrt::Windows::Foundation::Collections -{ - template struct WINRT_IMPL_EMPTY_BASES IIterable; - template struct WINRT_IMPL_EMPTY_BASES IVector; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - enum class MidiEndpointDeviceInformationFilters : uint32_t - { - StandardNativeUniversalMidiPacketFormat = 0x1, - StandardNativeMidi1ByteFormat = 0x2, - VirtualDeviceResponder = 0x100, - DiagnosticLoopback = 0x10000, - DiagnosticPing = 0x20000, - AllStandardEndpoints = 0x3, - }; - enum class MidiEndpointDeviceInformationSortOrder : int32_t - { - None = 0, - Name = 1, - EndpointDeviceId = 2, - DeviceInstanceId = 3, - ContainerThenName = 11, - ContainerThenEndpointDeviceId = 12, - ContainerThenDeviceInstanceId = 13, - TransportMnemonicThenName = 21, - TransportMnemonicThenEndpointDeviceId = 22, - TransportMnemonicThenDeviceInstanceId = 23, - }; - enum class MidiEndpointDevicePurpose : int32_t - { - NormalMessageEndpoint = 0, - VirtualDeviceResponder = 100, - InBoxGeneralMidiSynth = 400, - DiagnosticLoopback = 500, - DiagnosticPing = 510, - }; - enum class MidiEndpointNativeDataFormat : int32_t - { - Unknown = 0, - Midi1ByteFormat = 1, - UniversalMidiPacketFormat = 2, - }; - enum class MidiFunctionBlockDirection : int32_t - { - Undefined = 0, - BlockInput = 1, - BlockOutput = 2, - Bidirectional = 3, - }; - enum class MidiFunctionBlockRepresentsMidi10Connection : int32_t - { - Not10 = 0, - YesBandwidthUnrestricted = 1, - YesBandwidthRestricted = 2, - Reserved = 3, - }; - enum class MidiFunctionBlockUIHint : int32_t - { - Unknown = 0, - Receiver = 1, - Sender = 2, - Bidirectional = 3, - }; - enum class MidiGroupTerminalBlockDirection : int32_t - { - Bidirectional = 0, - BlockInput = 1, - BlockOutput = 2, - }; - enum class MidiGroupTerminalBlockProtocol : int32_t - { - Unknown = 0, - Midi1Message64 = 1, - Midi1Message64WithJitterReduction = 2, - Midi1Message128 = 3, - Midi1Message128WithJitterReduction = 4, - Midi2 = 17, - Midi2WithJitterReduction = 18, - }; - enum class MidiMessageType : int32_t - { - UtilityMessage32 = 0, - SystemCommon32 = 1, - Midi1ChannelVoice32 = 2, - DataMessage64 = 3, - Midi2ChannelVoice64 = 4, - DataMessage128 = 5, - FutureReserved632 = 6, - FutureReserved732 = 7, - FutureReserved864 = 8, - FutureReserved964 = 9, - FutureReservedA64 = 10, - FutureReservedB96 = 11, - FutureReservedC96 = 12, - FlexData128 = 13, - FutureReservedE128 = 14, - Stream128 = 15, - }; - enum class MidiPacketType : int32_t - { - UnknownOrInvalid = 0, - UniversalMidiPacket32 = 1, - UniversalMidiPacket64 = 2, - UniversalMidiPacket96 = 3, - UniversalMidiPacket128 = 4, - }; - enum class MidiProtocol : int32_t - { - Default = 0, - Midi1 = 1, - Midi2 = 2, - }; - enum class MidiSendMessageResults : uint32_t - { - Succeeded = 0x80000000, - Failed = 0x10000000, - BufferFull = 0x10000, - EndpointConnectionClosedOrInvalid = 0x40000, - InvalidMessageTypeForWordCount = 0x100000, - InvalidMessageOther = 0x200000, - DataIndexOutOfRange = 0x400000, - TimestampOutOfRange = 0x800000, - MessageListPartiallyProcessed = 0xf00000, - }; - struct IMidiChannel; - struct IMidiChannelFactory; - struct IMidiChannelStatics; - struct IMidiClock; - struct IMidiClockStatics; - struct IMidiEndpointConnection; - struct IMidiEndpointConnectionSettings; - struct IMidiEndpointConnectionSource; - struct IMidiEndpointConnectionStatics; - struct IMidiEndpointDeviceInformation; - struct IMidiEndpointDeviceInformationAddedEventArgs; - struct IMidiEndpointDeviceInformationRemovedEventArgs; - struct IMidiEndpointDeviceInformationStatics; - struct IMidiEndpointDeviceInformationUpdatedEventArgs; - struct IMidiEndpointDeviceWatcher; - struct IMidiEndpointDeviceWatcherStatics; - struct IMidiEndpointMessageProcessingPlugin; - struct IMidiFunctionBlock; - struct IMidiGroup; - struct IMidiGroupFactory; - struct IMidiGroupStatics; - struct IMidiGroupTerminalBlock; - struct IMidiMessage128; - struct IMidiMessage128Factory; - struct IMidiMessage128Statics; - struct IMidiMessage32; - struct IMidiMessage32Factory; - struct IMidiMessage32Statics; - struct IMidiMessage64; - struct IMidiMessage64Factory; - struct IMidiMessage64Statics; - struct IMidiMessage96; - struct IMidiMessage96Factory; - struct IMidiMessage96Statics; - struct IMidiMessageReceivedEventArgs; - struct IMidiMessageReceivedEventSource; - struct IMidiSession; - struct IMidiSessionStatics; - struct IMidiUniversalPacket; - struct MidiChannel; - struct MidiClock; - struct MidiEndpointConnection; - struct MidiEndpointDeviceInformation; - struct MidiEndpointDeviceInformationAddedEventArgs; - struct MidiEndpointDeviceInformationRemovedEventArgs; - struct MidiEndpointDeviceInformationUpdatedEventArgs; - struct MidiEndpointDeviceWatcher; - struct MidiFunctionBlock; - struct MidiGroup; - struct MidiGroupTerminalBlock; - struct MidiMessage128; - struct MidiMessage32; - struct MidiMessage64; - struct MidiMessage96; - struct MidiMessageReceivedEventArgs; - struct MidiSession; - struct MidiDeclaredDeviceIdentity; - struct MidiDeclaredEndpointInfo; - struct MidiDeclaredStreamConfiguration; - struct MidiEndpointTransportSuppliedInfo; - struct MidiEndpointUserSuppliedInfo; - struct MidiMessageStruct; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiChannel"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiClock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointConnection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformation"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationAddedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationRemovedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationUpdatedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceWatcher"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroup"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage128"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage32"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage64"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage96"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiSession"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationFilters"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationSortOrder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDevicePurpose"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointNativeDataFormat"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockDirection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockRepresentsMidi10Connection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockUIHint"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlockDirection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlockProtocol"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageType"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiPacketType"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiProtocol"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiSendMessageResults"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredDeviceIdentity"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredEndpointInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredStreamConfiguration"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointTransportSuppliedInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointUserSuppliedInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageStruct"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannel"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannelFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannelStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiClock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiClockStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionSettings"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionSource"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformation"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationAddedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationRemovedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationUpdatedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceWatcher"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceWatcherStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointMessageProcessingPlugin"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiFunctionBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroup"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupTerminalBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessageReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessageReceivedEventSource"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiSession"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiSessionStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiUniversalPacket"; - template <> inline constexpr guid guid_v{ 0x34DC7F81,0xF0C2,0x50D4,{ 0xBE,0xDF,0x42,0xFA,0xB9,0xA1,0xCE,0xF8 } }; // 34DC7F81-F0C2-50D4-BEDF-42FAB9A1CEF8 - template <> inline constexpr guid guid_v{ 0x02A0FF18,0xFE96,0x5193,{ 0x98,0xEF,0xD9,0x67,0x58,0xCD,0x68,0xD4 } }; // 02A0FF18-FE96-5193-98EF-D96758CD68D4 - template <> inline constexpr guid guid_v{ 0xEC86B553,0xADB5,0x5330,{ 0x99,0x60,0x1D,0x8B,0x3A,0x35,0xB0,0xC6 } }; // EC86B553-ADB5-5330-9960-1D8B3A35B0C6 - template <> inline constexpr guid guid_v{ 0xF065F78B,0xE4DC,0x55A7,{ 0x96,0x97,0x63,0x59,0xD0,0xEC,0xD7,0x3A } }; // F065F78B-E4DC-55A7-9697-6359D0ECD73A - template <> inline constexpr guid guid_v{ 0xF672B9EB,0xD41D,0x5CDD,{ 0xAF,0x7B,0x64,0x29,0x94,0x0B,0xE3,0xE7 } }; // F672B9EB-D41D-5CDD-AF7B-6429940BE3E7 - template <> inline constexpr guid guid_v{ 0x452EECE5,0x4FB8,0x5C0C,{ 0xB8,0xDA,0x46,0x70,0x30,0xBD,0xAC,0xE2 } }; // 452EECE5-4FB8-5C0C-B8DA-467030BDACE2 - template <> inline constexpr guid guid_v{ 0x65736736,0x35F3,0x421C,{ 0xA6,0x83,0x3A,0x03,0x4A,0xD0,0xDC,0xC2 } }; // 65736736-35F3-421C-A683-3A034AD0DCC2 - template <> inline constexpr guid guid_v{ 0x44385CDD,0xB64C,0x4195,{ 0x8F,0xAA,0x8A,0x61,0xFC,0x95,0x2A,0x23 } }; // 44385CDD-B64C-4195-8FAA-8A61FC952A23 - template <> inline constexpr guid guid_v{ 0x99355145,0xBC11,0x5B85,{ 0x9B,0x23,0x1B,0x58,0x26,0x6F,0x46,0x30 } }; // 99355145-BC11-5B85-9B23-1B58266F4630 - template <> inline constexpr guid guid_v{ 0xFB4A1253,0x4429,0x5765,{ 0x99,0xDE,0xFF,0x76,0xBB,0xED,0x58,0x8B } }; // FB4A1253-4429-5765-99DE-FF76BBED588B - template <> inline constexpr guid guid_v{ 0xECF028D0,0xEECC,0x5F99,{ 0x8A,0xDF,0x8F,0x29,0xB7,0x0B,0x29,0x6C } }; // ECF028D0-EECC-5F99-8ADF-8F29B70B296C - template <> inline constexpr guid guid_v{ 0x84D3DDE4,0xE6F8,0x5BA5,{ 0x97,0xB4,0xB8,0xD4,0xC5,0x0A,0xFD,0x9F } }; // 84D3DDE4-E6F8-5BA5-97B4-B8D4C50AFD9F - template <> inline constexpr guid guid_v{ 0x1D2C9C0A,0x428E,0x5F75,{ 0x89,0xD5,0x00,0xC3,0xA3,0x79,0x4D,0x88 } }; // 1D2C9C0A-428E-5F75-89D5-00C3A3794D88 - template <> inline constexpr guid guid_v{ 0xAA4B1E3A,0x04B6,0x5560,{ 0xBC,0x2B,0xCF,0xD1,0x64,0xC0,0xF1,0xDE } }; // AA4B1E3A-04B6-5560-BC2B-CFD164C0F1DE - template <> inline constexpr guid guid_v{ 0x5CBF4CAC,0x3409,0x5A57,{ 0x9C,0x47,0xFC,0xA8,0x3C,0x69,0xDB,0xE3 } }; // 5CBF4CAC-3409-5A57-9C47-FCA83C69DBE3 - template <> inline constexpr guid guid_v{ 0xF28F646C,0x6BE6,0x5E13,{ 0x8A,0x78,0x7F,0xD1,0xB8,0x5A,0x7E,0x95 } }; // F28F646C-6BE6-5E13-8A78-7FD1B85A7E95 - template <> inline constexpr guid guid_v{ 0x198D5EF2,0x313F,0x41AF,{ 0x92,0x59,0xA4,0x29,0x97,0xE0,0x60,0xF0 } }; // 198D5EF2-313F-41AF-9259-A42997E060F0 - template <> inline constexpr guid guid_v{ 0xEB43C123,0x5382,0x5C71,{ 0x8D,0x1B,0x22,0x3B,0x8F,0x76,0xC2,0x3B } }; // EB43C123-5382-5C71-8D1B-223B8F76C23B - template <> inline constexpr guid guid_v{ 0xD2FE009D,0x8542,0x5AE7,{ 0xA8,0xF8,0x4F,0x28,0x14,0x5E,0x3A,0x8F } }; // D2FE009D-8542-5AE7-A8F8-4F28145E3A8F - template <> inline constexpr guid guid_v{ 0xEC11AC98,0x616B,0x545C,{ 0xA0,0x6C,0x95,0xB3,0x91,0x5A,0xDB,0x41 } }; // EC11AC98-616B-545C-A06C-95B3915ADB41 - template <> inline constexpr guid guid_v{ 0x08071F7E,0xBA0B,0x5020,{ 0x8E,0x23,0xBC,0x81,0x9B,0x24,0xA4,0xE2 } }; // 08071F7E-BA0B-5020-8E23-BC819B24A4E2 - template <> inline constexpr guid guid_v{ 0x3DBA035F,0xE298,0x5F22,{ 0xB0,0x0B,0x51,0xC7,0x2D,0xCF,0xF7,0x1F } }; // 3DBA035F-E298-5F22-B00B-51C72DCFF71F - template <> inline constexpr guid guid_v{ 0xEFB9C9BB,0x4397,0x538A,{ 0xB1,0x7F,0xBC,0x83,0x00,0x12,0xE1,0xEA } }; // EFB9C9BB-4397-538A-B17F-BC830012E1EA - template <> inline constexpr guid guid_v{ 0x6FB629DF,0xE277,0x5EE8,{ 0xB7,0xB8,0x13,0xA3,0x52,0x8B,0xA2,0x55 } }; // 6FB629DF-E277-5EE8-B7B8-13A3528BA255 - template <> inline constexpr guid guid_v{ 0x722B7533,0x8EFB,0x5CA9,{ 0x93,0x99,0x74,0xEE,0x2D,0x8D,0x53,0x8C } }; // 722B7533-8EFB-5CA9-9399-74EE2D8D538C - template <> inline constexpr guid guid_v{ 0x1C2EC0A7,0xE093,0x5FF0,{ 0xA0,0x9B,0x77,0x68,0x6A,0x75,0x64,0x18 } }; // 1C2EC0A7-E093-5FF0-A09B-77686A756418 - template <> inline constexpr guid guid_v{ 0x47D7FD0F,0x7945,0x5283,{ 0xB1,0x1B,0xA4,0xF5,0xCF,0xBB,0xF6,0xF2 } }; // 47D7FD0F-7945-5283-B11B-A4F5CFBBF6F2 - template <> inline constexpr guid guid_v{ 0x52D01ECA,0x60AC,0x5229,{ 0xAA,0xC2,0xAF,0xA7,0x2E,0xF1,0x40,0x45 } }; // 52D01ECA-60AC-5229-AAC2-AFA72EF14045 - template <> inline constexpr guid guid_v{ 0x62885C57,0x325C,0x5A7C,{ 0xB1,0x8F,0xDE,0x36,0x0A,0xC3,0x77,0xBD } }; // 62885C57-325C-5A7C-B18F-DE360AC377BD - template <> inline constexpr guid guid_v{ 0x10B85E46,0xC6B8,0x593A,{ 0x93,0x85,0x11,0xAE,0x2F,0xCE,0xB9,0xF1 } }; // 10B85E46-C6B8-593A-9385-11AE2FCEB9F1 - template <> inline constexpr guid guid_v{ 0xA75E98A2,0xC6AC,0x5333,{ 0x89,0x65,0x97,0xCD,0xA8,0x80,0x85,0x2E } }; // A75E98A2-C6AC-5333-8965-97CDA880852E - template <> inline constexpr guid guid_v{ 0x82B6C4F8,0xC292,0x50DA,{ 0xBD,0xDF,0xC1,0x18,0x6D,0x3B,0x9E,0xE6 } }; // 82B6C4F8-C292-50DA-BDDF-C1186D3B9EE6 - template <> inline constexpr guid guid_v{ 0x4AC4FE62,0x41C9,0x5605,{ 0x9D,0xB8,0xDE,0xD7,0xCB,0x44,0xB8,0x59 } }; // 4AC4FE62-41C9-5605-9DB8-DED7CB44B859 - template <> inline constexpr guid guid_v{ 0x80451AFD,0xE703,0x5790,{ 0x9C,0xF7,0x4A,0x17,0xAD,0x1E,0x47,0x3B } }; // 80451AFD-E703-5790-9CF7-4A17AD1E473B - template <> inline constexpr guid guid_v{ 0x190C0204,0x845B,0x5A20,{ 0xB9,0x5E,0x91,0x78,0xA8,0xDD,0xAF,0xC6 } }; // 190C0204-845B-5A20-B95E-9178A8DDAFC6 - template <> inline constexpr guid guid_v{ 0x101CEB4B,0xCCA4,0x48A1,{ 0xB9,0x1E,0x60,0x02,0xB9,0x28,0x61,0x3C } }; // 101CEB4B-CCA4-48A1-B91E-6002B928613C - template <> inline constexpr guid guid_v{ 0x47D3E2F0,0xB352,0x5D13,{ 0x88,0x37,0xE4,0x8F,0xF4,0x84,0x5F,0xA0 } }; // 47D3E2F0-B352-5D13-8837-E48FF4845FA0 - template <> inline constexpr guid guid_v{ 0x8678C907,0x163D,0x5D86,{ 0xBF,0xC7,0xFE,0x80,0x04,0x63,0x61,0x86 } }; // 8678C907-163D-5D86-BFC7-FE8004636186 - template <> inline constexpr guid guid_v{ 0x2EB5DF8A,0xD751,0x4997,{ 0xBF,0x96,0xBA,0x9A,0x53,0x1F,0xD5,0xFF } }; // 2EB5DF8A-D751-4997-BF96-BA9A531FD5FF - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiClock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiSession; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Index(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Index(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_DisplayValue(uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall IsValidIndex(uint8_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Now(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_TimestampConstantSendImmediately(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_TimestampFrequency(uint64_t*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToNanoseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToMicroseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToMilliseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToSeconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByTicks(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByMicroseconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByMilliseconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampBySeconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ConnectionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_ConnectedEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_Tag(void**) noexcept = 0; - virtual int32_t __stdcall put_Tag(void*) noexcept = 0; - virtual int32_t __stdcall get_LogMessageDataValidationErrorDetails(bool*) noexcept = 0; - virtual int32_t __stdcall put_LogMessageDataValidationErrorDetails(bool) noexcept = 0; - virtual int32_t __stdcall get_Settings(void**) noexcept = 0; - virtual int32_t __stdcall get_IsOpen(bool*) noexcept = 0; - virtual int32_t __stdcall Open(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsAutoReconnectEnabled(bool*) noexcept = 0; - virtual int32_t __stdcall get_MessageProcessingPlugins(void**) noexcept = 0; - virtual int32_t __stdcall AddMessageProcessingPlugin(void*) noexcept = 0; - virtual int32_t __stdcall RemoveMessageProcessingPlugin(winrt::guid) noexcept = 0; - virtual int32_t __stdcall SendSingleMessagePacket(void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageStruct(uint64_t, uint8_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct const&, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWordArray(uint64_t, uint32_t, uint8_t, uint32_t, uint32_t*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords(uint64_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords2(uint64_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords3(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords4(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageBuffer(uint64_t, uint32_t, uint8_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesWordList(uint64_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesWordArray(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesPacketList(void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesStructList(uint64_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesStructArray(uint64_t, uint32_t, uint32_t, uint32_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesBuffer(uint64_t, uint32_t, uint32_t, void*, uint32_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SettingsJson(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall add_EndpointDeviceDisconnected(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EndpointDeviceDisconnected(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_EndpointDeviceReconnected(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EndpointDeviceReconnected(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall GetDeviceSelector(void**) noexcept = 0; - virtual int32_t __stdcall SendMessageSucceeded(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall SendMessageFailed(uint32_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_ContainerId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_DeviceInstanceId(void**) noexcept = 0; - virtual int32_t __stdcall get_EndpointPurpose(int32_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredEndpointInfoLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredDeviceIdentityLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredStreamConfiguration(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredStreamConfigurationLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredFunctionBlocks(void**) noexcept = 0; - virtual int32_t __stdcall get_DeclaredFunctionBlocksLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetGroupTerminalBlocks(void**) noexcept = 0; - virtual int32_t __stdcall GetUserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall GetTransportSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall GetParentDeviceInformation(void**) noexcept = 0; - virtual int32_t __stdcall GetContainerDeviceInformation(void**) noexcept = 0; - virtual int32_t __stdcall get_Properties(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AddedDevice(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_DeviceInformationUpdate(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromEndpointDeviceId(void*, void**) noexcept = 0; - virtual int32_t __stdcall FindAll(void**) noexcept = 0; - virtual int32_t __stdcall FindAll2(int32_t, void**) noexcept = 0; - virtual int32_t __stdcall FindAll3(int32_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall get_EndpointInterfaceClass(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall GetAdditionalPropertiesList(void**) noexcept = 0; - virtual int32_t __stdcall DeviceMatchesFilter(void*, uint32_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_IsNameUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsEndpointInformationUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsDeviceIdentityUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsStreamConfigurationUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_AreFunctionBlocksUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsUserMetadataUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_AreAdditionalCapabilitiesUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_DeviceInformationUpdate(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Start() noexcept = 0; - virtual int32_t __stdcall Stop() noexcept = 0; - virtual int32_t __stdcall get_EnumeratedEndpointDevices(void**) noexcept = 0; - virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; - virtual int32_t __stdcall add_Added(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Added(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Removed(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Removed(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Updated(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Updated(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_EnumerationCompleted(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EnumerationCompleted(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Stopped(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Stopped(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Create(void**) noexcept = 0; - virtual int32_t __stdcall Create2(uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_PluginId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_PluginName(void**) noexcept = 0; - virtual int32_t __stdcall put_PluginName(void*) noexcept = 0; - virtual int32_t __stdcall get_PluginTag(void**) noexcept = 0; - virtual int32_t __stdcall put_PluginTag(void*) noexcept = 0; - virtual int32_t __stdcall get_IsEnabled(bool*) noexcept = 0; - virtual int32_t __stdcall put_IsEnabled(bool) noexcept = 0; - virtual int32_t __stdcall Initialize(void*) noexcept = 0; - virtual int32_t __stdcall OnEndpointConnectionOpened() noexcept = 0; - virtual int32_t __stdcall ProcessIncomingMessage(void*, bool*, bool*) noexcept = 0; - virtual int32_t __stdcall Cleanup() noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsReadOnly(bool*) noexcept = 0; - virtual int32_t __stdcall get_Number(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Number(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall put_Name(void*) noexcept = 0; - virtual int32_t __stdcall get_IsActive(bool*) noexcept = 0; - virtual int32_t __stdcall put_IsActive(bool) noexcept = 0; - virtual int32_t __stdcall get_Direction(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_Direction(int32_t) noexcept = 0; - virtual int32_t __stdcall get_UIHint(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_UIHint(int32_t) noexcept = 0; - virtual int32_t __stdcall get_RepresentsMidi10Connection(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_RepresentsMidi10Connection(int32_t) noexcept = 0; - virtual int32_t __stdcall get_FirstGroupIndex(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_FirstGroupIndex(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_GroupCount(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_GroupCount(uint8_t) noexcept = 0; - virtual int32_t __stdcall IncludesGroup(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_MidiCIMessageVersionFormat(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_MidiCIMessageVersionFormat(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_MaxSystemExclusive8Streams(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_MaxSystemExclusive8Streams(uint8_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Index(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Index(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_DisplayValue(uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall IsValidIndex(uint8_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Number(uint8_t*) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_Direction(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_Protocol(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_FirstGroupIndex(uint8_t*) noexcept = 0; - virtual int32_t __stdcall get_GroupCount(uint8_t*) noexcept = 0; - virtual int32_t __stdcall IncludesGroup(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(uint16_t*) noexcept = 0; - virtual int32_t __stdcall get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(uint16_t*) noexcept = 0; - virtual int32_t __stdcall get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(uint32_t*) noexcept = 0; - virtual int32_t __stdcall get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(uint32_t*) noexcept = 0; - virtual int32_t __stdcall AsEquivalentFunctionBlock(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word2(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word2(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word3(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word3(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word2(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word2(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_PacketType(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_MessageType(int32_t*) noexcept = 0; - virtual int32_t __stdcall PeekFirstWord(uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetMessagePacket(void**) noexcept = 0; - virtual int32_t __stdcall FillWords(uint32_t*, uint32_t*, uint32_t*, uint32_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillMessageStruct(struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillMessage32(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage64(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage96(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage128(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillWordArray(uint32_t, uint32_t, uint32_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillByteArray(uint32_t, uint32_t, uint8_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillBuffer(uint32_t, void*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall AppendWordsToList(void*, uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall add_MessageReceived(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_MessageReceived(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SessionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_IsOpen(bool*) noexcept = 0; - virtual int32_t __stdcall get_Connections(void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection(void*, void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection2(void*, bool, void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection3(void*, bool, void*, void**) noexcept = 0; - virtual int32_t __stdcall DisconnectEndpointConnection(winrt::guid) noexcept = 0; - virtual int32_t __stdcall UpdateName(void*, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Create(void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall put_Timestamp(uint64_t) noexcept = 0; - virtual int32_t __stdcall get_MessageType(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_MessageType(int32_t) noexcept = 0; - virtual int32_t __stdcall get_PacketType(int32_t*) noexcept = 0; - virtual int32_t __stdcall PeekFirstWord(uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetAllWords(void**) noexcept = 0; - virtual int32_t __stdcall AppendAllMessageWordsToList(void*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillBuffer(uint32_t, void*, uint8_t*) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannel - { - [[nodiscard]] auto Index() const; - auto Index(uint8_t value) const; - [[nodiscard]] auto DisplayValue() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannel; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory - { - auto CreateInstance(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto IsValidIndex(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiClock - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiClock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics - { - [[nodiscard]] auto Now() const; - [[nodiscard]] auto TimestampConstantSendImmediately() const; - [[nodiscard]] auto TimestampFrequency() const; - auto ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToSeconds(uint64_t timestampValue) const; - auto OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) const; - auto OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) const; - auto OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) const; - auto OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection - { - [[nodiscard]] auto ConnectionId() const; - [[nodiscard]] auto ConnectedEndpointDeviceId() const; - [[nodiscard]] auto Tag() const; - auto Tag(winrt::Windows::Foundation::IInspectable const& value) const; - [[nodiscard]] auto LogMessageDataValidationErrorDetails() const; - auto LogMessageDataValidationErrorDetails(bool value) const; - [[nodiscard]] auto Settings() const; - [[nodiscard]] auto IsOpen() const; - auto Open() const; - [[nodiscard]] auto IsAutoReconnectEnabled() const; - [[nodiscard]] auto MessageProcessingPlugins() const; - auto AddMessageProcessingPlugin(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin const& plugin) const; - auto RemoveMessageProcessingPlugin(winrt::guid const& id) const; - auto SendSingleMessagePacket(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket const& message) const; - auto SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - auto SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, array_view words) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) const; - auto SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - auto SendMultipleMessagesWordList(uint64_t timestamp, param::iterable const& words) const; - auto SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, array_view words) const; - auto SendMultipleMessagesPacketList(param::iterable const& messages) const; - auto SendMultipleMessagesStructList(uint64_t timestamp, param::iterable const& messages) const; - auto SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, array_view messages) const; - auto SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings - { - [[nodiscard]] auto SettingsJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource - { - auto EndpointDeviceDisconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EndpointDeviceDisconnected_revoker = impl::event_revoker::remove_EndpointDeviceDisconnected>; - [[nodiscard]] auto EndpointDeviceDisconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EndpointDeviceDisconnected(winrt::event_token const& token) const noexcept; - auto EndpointDeviceReconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EndpointDeviceReconnected_revoker = impl::event_revoker::remove_EndpointDeviceReconnected>; - [[nodiscard]] auto EndpointDeviceReconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EndpointDeviceReconnected(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics - { - auto GetDeviceSelector() const; - auto SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const; - auto SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto ContainerId() const; - [[nodiscard]] auto DeviceInstanceId() const; - [[nodiscard]] auto EndpointPurpose() const; - auto GetDeclaredEndpointInfo() const; - [[nodiscard]] auto DeclaredEndpointInfoLastUpdateTime() const; - auto GetDeclaredDeviceIdentity() const; - [[nodiscard]] auto DeclaredDeviceIdentityLastUpdateTime() const; - auto GetDeclaredStreamConfiguration() const; - [[nodiscard]] auto DeclaredStreamConfigurationLastUpdateTime() const; - auto GetDeclaredFunctionBlocks() const; - [[nodiscard]] auto DeclaredFunctionBlocksLastUpdateTime() const; - auto GetGroupTerminalBlocks() const; - auto GetUserSuppliedInfo() const; - auto GetTransportSuppliedInfo() const; - auto GetParentDeviceInformation() const; - auto GetContainerDeviceInformation() const; - [[nodiscard]] auto Properties() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs - { - [[nodiscard]] auto AddedDevice() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto DeviceInformationUpdate() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics - { - auto CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) const; - auto FindAll() const; - auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) const; - auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) const; - [[nodiscard]] auto EndpointInterfaceClass() const; - auto GetAdditionalPropertiesList() const; - auto DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto IsNameUpdated() const; - [[nodiscard]] auto IsEndpointInformationUpdated() const; - [[nodiscard]] auto IsDeviceIdentityUpdated() const; - [[nodiscard]] auto IsStreamConfigurationUpdated() const; - [[nodiscard]] auto AreFunctionBlocksUpdated() const; - [[nodiscard]] auto IsUserMetadataUpdated() const; - [[nodiscard]] auto AreAdditionalCapabilitiesUpdated() const; - [[nodiscard]] auto DeviceInformationUpdate() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher - { - auto Start() const; - auto Stop() const; - [[nodiscard]] auto EnumeratedEndpointDevices() const; - [[nodiscard]] auto Status() const; - auto Added(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Added_revoker = impl::event_revoker::remove_Added>; - [[nodiscard]] auto Added(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Added(winrt::event_token const& token) const noexcept; - auto Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Removed_revoker = impl::event_revoker::remove_Removed>; - [[nodiscard]] auto Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Removed(winrt::event_token const& token) const noexcept; - auto Updated(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Updated_revoker = impl::event_revoker::remove_Updated>; - [[nodiscard]] auto Updated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Updated(winrt::event_token const& token) const noexcept; - auto EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EnumerationCompleted_revoker = impl::event_revoker::remove_EnumerationCompleted>; - [[nodiscard]] auto EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EnumerationCompleted(winrt::event_token const& token) const noexcept; - auto Stopped(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Stopped_revoker = impl::event_revoker::remove_Stopped>; - [[nodiscard]] auto Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Stopped(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics - { - auto Create() const; - auto Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin - { - [[nodiscard]] auto PluginId() const; - [[nodiscard]] auto PluginName() const; - auto PluginName(param::hstring const& value) const; - [[nodiscard]] auto PluginTag() const; - auto PluginTag(winrt::Windows::Foundation::IInspectable const& value) const; - [[nodiscard]] auto IsEnabled() const; - auto IsEnabled(bool value) const; - auto Initialize(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource const& endpointConnection) const; - auto OnEndpointConnectionOpened() const; - auto ProcessIncomingMessage(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageReceivedEventArgs const& args, bool& skipFurtherListeners, bool& skipMainMessageReceivedEvent) const; - auto Cleanup() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock - { - [[nodiscard]] auto IsReadOnly() const; - [[nodiscard]] auto Number() const; - auto Number(uint8_t value) const; - [[nodiscard]] auto Name() const; - auto Name(param::hstring const& value) const; - [[nodiscard]] auto IsActive() const; - auto IsActive(bool value) const; - [[nodiscard]] auto Direction() const; - auto Direction(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& value) const; - [[nodiscard]] auto UIHint() const; - auto UIHint(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& value) const; - [[nodiscard]] auto RepresentsMidi10Connection() const; - auto RepresentsMidi10Connection(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& value) const; - [[nodiscard]] auto FirstGroupIndex() const; - auto FirstGroupIndex(uint8_t value) const; - [[nodiscard]] auto GroupCount() const; - auto GroupCount(uint8_t value) const; - auto IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const; - [[nodiscard]] auto MidiCIMessageVersionFormat() const; - auto MidiCIMessageVersionFormat(uint8_t value) const; - [[nodiscard]] auto MaxSystemExclusive8Streams() const; - auto MaxSystemExclusive8Streams(uint8_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroup - { - [[nodiscard]] auto Index() const; - auto Index(uint8_t value) const; - [[nodiscard]] auto DisplayValue() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroup; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory - { - auto CreateInstance(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto IsValidIndex(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock - { - [[nodiscard]] auto Number() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto Direction() const; - [[nodiscard]] auto Protocol() const; - [[nodiscard]] auto FirstGroupIndex() const; - [[nodiscard]] auto GroupCount() const; - auto IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const; - [[nodiscard]] auto MaxDeviceInputBandwidthIn4KBitsPerSecondUnits() const; - [[nodiscard]] auto MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits() const; - [[nodiscard]] auto CalculatedMaxDeviceInputBandwidthBitsPerSecond() const; - [[nodiscard]] auto CalculatedMaxDeviceOutputBandwidthBitsPerSecond() const; - auto AsEquivalentFunctionBlock() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - [[nodiscard]] auto Word2() const; - auto Word2(uint32_t value) const; - [[nodiscard]] auto Word3() const; - auto Word3(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - [[nodiscard]] auto Word2() const; - auto Word2(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs - { - [[nodiscard]] auto Timestamp() const; - [[nodiscard]] auto PacketType() const; - [[nodiscard]] auto MessageType() const; - auto PeekFirstWord() const; - auto GetMessagePacket() const; - auto FillWords(uint32_t& word0, uint32_t& word1, uint32_t& word2, uint32_t& word3) const; - auto FillMessageStruct(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct& message) const; - auto FillMessage32(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32 const& message) const; - auto FillMessage64(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64 const& message) const; - auto FillMessage96(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96 const& message) const; - auto FillMessage128(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128 const& message) const; - auto FillWordArray(uint32_t startIndex, array_view words) const; - auto FillByteArray(uint32_t startIndex, array_view bytes) const; - auto FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - auto AppendWordsToList(param::vector const& wordList) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource - { - auto MessageReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using MessageReceived_revoker = impl::event_revoker::remove_MessageReceived>; - [[nodiscard]] auto MessageReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto MessageReceived(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiSession - { - [[nodiscard]] auto SessionId() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto IsOpen() const; - [[nodiscard]] auto Connections() const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId) const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect) const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect, winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings const& settings) const; - auto DisconnectEndpointConnection(winrt::guid const& endpointConnectionId) const; - auto UpdateName(param::hstring const& newName) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiSession; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics - { - auto Create(param::hstring const& sessionName) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket - { - [[nodiscard]] auto Timestamp() const; - auto Timestamp(uint64_t value) const; - [[nodiscard]] auto MessageType() const; - auto MessageType(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& value) const; - [[nodiscard]] auto PacketType() const; - auto PeekFirstWord() const; - auto GetAllWords() const; - auto AppendAllMessageWordsToList(param::vector const& targetList) const; - auto FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity - { - uint8_t SystemExclusiveIdByte1; - uint8_t SystemExclusiveIdByte2; - uint8_t SystemExclusiveIdByte3; - uint8_t DeviceFamilyLsb; - uint8_t DeviceFamilyMsb; - uint8_t DeviceFamilyModelNumberLsb; - uint8_t DeviceFamilyModelNumberMsb; - uint8_t SoftwareRevisionLevelByte1; - uint8_t SoftwareRevisionLevelByte2; - uint8_t SoftwareRevisionLevelByte3; - uint8_t SoftwareRevisionLevelByte4; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo - { - void* Name; - void* ProductInstanceId; - bool SupportsMidi10Protocol; - bool SupportsMidi20Protocol; - bool SupportsReceivingJitterReductionTimestamps; - bool SupportsSendingJitterReductionTimestamps; - bool HasStaticFunctionBlocks; - uint8_t DeclaredFunctionBlockCount; - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration - { - int32_t Protocol; - bool ReceiveJitterReductionTimestamps; - bool SendJitterReductionTimestamps; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo - { - void* Name; - void* Description; - void* SerialNumber; - uint16_t VendorId; - uint16_t ProductId; - void* ManufacturerName; - bool SupportsMultiClient; - int32_t NativeDataFormat; - winrt::guid TransportId; - void* TransportAbbreviation; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo - { - void* Name; - void* Description; - void* LargeImagePath; - void* SmallImagePath; - bool RequiresNoteOffTranslation; - uint16_t RecommendedControlChangeAutomationIntervalMilliseconds; - bool SupportsMidiPolyphonicExpression; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct - { - uint32_t Word0; - uint32_t Word1; - uint32_t Word2; - uint32_t Word3; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h deleted file mode 100644 index 3958e0869..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h +++ /dev/null @@ -1,283 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct WINRT_IMPL_EMPTY_BASES IMidiChannel : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannel(std::nullptr_t = nullptr) noexcept {} - IMidiChannel(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiChannelFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelFactory(std::nullptr_t = nullptr) noexcept {} - IMidiChannelFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiChannelStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelStatics(std::nullptr_t = nullptr) noexcept {} - IMidiChannelStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiClock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiClock(std::nullptr_t = nullptr) noexcept {} - IMidiClock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiClockStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiClockStatics(std::nullptr_t = nullptr) noexcept {} - IMidiClockStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnection : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnection(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnection(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionSettings : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionSettings(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionSettings(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionSource : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionSource(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformation : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformation(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationAddedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationAddedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationAddedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationRemovedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationRemovedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationRemovedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationUpdatedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationUpdatedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationUpdatedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceWatcher : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceWatcher(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceWatcher(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceWatcherStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceWatcherStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceWatcherStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointMessageProcessingPlugin : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointMessageProcessingPlugin(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointMessageProcessingPlugin(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiFunctionBlock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiFunctionBlock(std::nullptr_t = nullptr) noexcept {} - IMidiFunctionBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroup : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroup(std::nullptr_t = nullptr) noexcept {} - IMidiGroup(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupFactory(std::nullptr_t = nullptr) noexcept {} - IMidiGroupFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupStatics(std::nullptr_t = nullptr) noexcept {} - IMidiGroupStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupTerminalBlock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupTerminalBlock(std::nullptr_t = nullptr) noexcept {} - IMidiGroupTerminalBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageReceivedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageReceivedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiMessageReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageReceivedEventSource : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageReceivedEventSource(std::nullptr_t = nullptr) noexcept {} - IMidiMessageReceivedEventSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiSession : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiSession(std::nullptr_t = nullptr) noexcept {} - IMidiSession(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiSessionStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiSessionStatics(std::nullptr_t = nullptr) noexcept {} - IMidiSessionStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniversalPacket : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniversalPacket(std::nullptr_t = nullptr) noexcept {} - IMidiUniversalPacket(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h deleted file mode 100644 index e322db4de..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h +++ /dev/null @@ -1,261 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_2_H -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiDeclaredDeviceIdentity - { - uint8_t SystemExclusiveIdByte1; - uint8_t SystemExclusiveIdByte2; - uint8_t SystemExclusiveIdByte3; - uint8_t DeviceFamilyLsb; - uint8_t DeviceFamilyMsb; - uint8_t DeviceFamilyModelNumberLsb; - uint8_t DeviceFamilyModelNumberMsb; - uint8_t SoftwareRevisionLevelByte1; - uint8_t SoftwareRevisionLevelByte2; - uint8_t SoftwareRevisionLevelByte3; - uint8_t SoftwareRevisionLevelByte4; - }; - inline bool operator==(MidiDeclaredDeviceIdentity const& left, MidiDeclaredDeviceIdentity const& right) noexcept - { - return left.SystemExclusiveIdByte1 == right.SystemExclusiveIdByte1 && left.SystemExclusiveIdByte2 == right.SystemExclusiveIdByte2 && left.SystemExclusiveIdByte3 == right.SystemExclusiveIdByte3 && left.DeviceFamilyLsb == right.DeviceFamilyLsb && left.DeviceFamilyMsb == right.DeviceFamilyMsb && left.DeviceFamilyModelNumberLsb == right.DeviceFamilyModelNumberLsb && left.DeviceFamilyModelNumberMsb == right.DeviceFamilyModelNumberMsb && left.SoftwareRevisionLevelByte1 == right.SoftwareRevisionLevelByte1 && left.SoftwareRevisionLevelByte2 == right.SoftwareRevisionLevelByte2 && left.SoftwareRevisionLevelByte3 == right.SoftwareRevisionLevelByte3 && left.SoftwareRevisionLevelByte4 == right.SoftwareRevisionLevelByte4; - } - inline bool operator!=(MidiDeclaredDeviceIdentity const& left, MidiDeclaredDeviceIdentity const& right) noexcept - { - return !(left == right); - } - struct MidiDeclaredEndpointInfo - { - hstring Name; - hstring ProductInstanceId; - bool SupportsMidi10Protocol; - bool SupportsMidi20Protocol; - bool SupportsReceivingJitterReductionTimestamps; - bool SupportsSendingJitterReductionTimestamps; - bool HasStaticFunctionBlocks; - uint8_t DeclaredFunctionBlockCount; - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - }; - inline bool operator==(MidiDeclaredEndpointInfo const& left, MidiDeclaredEndpointInfo const& right) noexcept - { - return left.Name == right.Name && left.ProductInstanceId == right.ProductInstanceId && left.SupportsMidi10Protocol == right.SupportsMidi10Protocol && left.SupportsMidi20Protocol == right.SupportsMidi20Protocol && left.SupportsReceivingJitterReductionTimestamps == right.SupportsReceivingJitterReductionTimestamps && left.SupportsSendingJitterReductionTimestamps == right.SupportsSendingJitterReductionTimestamps && left.HasStaticFunctionBlocks == right.HasStaticFunctionBlocks && left.DeclaredFunctionBlockCount == right.DeclaredFunctionBlockCount && left.SpecificationVersionMajor == right.SpecificationVersionMajor && left.SpecificationVersionMinor == right.SpecificationVersionMinor; - } - inline bool operator!=(MidiDeclaredEndpointInfo const& left, MidiDeclaredEndpointInfo const& right) noexcept - { - return !(left == right); - } - struct MidiDeclaredStreamConfiguration - { - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol Protocol; - bool ReceiveJitterReductionTimestamps; - bool SendJitterReductionTimestamps; - }; - inline bool operator==(MidiDeclaredStreamConfiguration const& left, MidiDeclaredStreamConfiguration const& right) noexcept - { - return left.Protocol == right.Protocol && left.ReceiveJitterReductionTimestamps == right.ReceiveJitterReductionTimestamps && left.SendJitterReductionTimestamps == right.SendJitterReductionTimestamps; - } - inline bool operator!=(MidiDeclaredStreamConfiguration const& left, MidiDeclaredStreamConfiguration const& right) noexcept - { - return !(left == right); - } - struct MidiEndpointTransportSuppliedInfo - { - hstring Name; - hstring Description; - hstring SerialNumber; - uint16_t VendorId; - uint16_t ProductId; - hstring ManufacturerName; - bool SupportsMultiClient; - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointNativeDataFormat NativeDataFormat; - winrt::guid TransportId; - hstring TransportAbbreviation; - }; - inline bool operator==(MidiEndpointTransportSuppliedInfo const& left, MidiEndpointTransportSuppliedInfo const& right) noexcept - { - return left.Name == right.Name && left.Description == right.Description && left.SerialNumber == right.SerialNumber && left.VendorId == right.VendorId && left.ProductId == right.ProductId && left.ManufacturerName == right.ManufacturerName && left.SupportsMultiClient == right.SupportsMultiClient && left.NativeDataFormat == right.NativeDataFormat && left.TransportId == right.TransportId && left.TransportAbbreviation == right.TransportAbbreviation; - } - inline bool operator!=(MidiEndpointTransportSuppliedInfo const& left, MidiEndpointTransportSuppliedInfo const& right) noexcept - { - return !(left == right); - } - struct MidiEndpointUserSuppliedInfo - { - hstring Name; - hstring Description; - hstring LargeImagePath; - hstring SmallImagePath; - bool RequiresNoteOffTranslation; - uint16_t RecommendedControlChangeAutomationIntervalMilliseconds; - bool SupportsMidiPolyphonicExpression; - }; - inline bool operator==(MidiEndpointUserSuppliedInfo const& left, MidiEndpointUserSuppliedInfo const& right) noexcept - { - return left.Name == right.Name && left.Description == right.Description && left.LargeImagePath == right.LargeImagePath && left.SmallImagePath == right.SmallImagePath && left.RequiresNoteOffTranslation == right.RequiresNoteOffTranslation && left.RecommendedControlChangeAutomationIntervalMilliseconds == right.RecommendedControlChangeAutomationIntervalMilliseconds && left.SupportsMidiPolyphonicExpression == right.SupportsMidiPolyphonicExpression; - } - inline bool operator!=(MidiEndpointUserSuppliedInfo const& left, MidiEndpointUserSuppliedInfo const& right) noexcept - { - return !(left == right); - } - struct MidiMessageStruct - { - uint32_t Word0; - uint32_t Word1; - uint32_t Word2; - uint32_t Word3; - }; - inline bool operator==(MidiMessageStruct const& left, MidiMessageStruct const& right) noexcept - { - return left.Word0 == right.Word0 && left.Word1 == right.Word1 && left.Word2 == right.Word2 && left.Word3 == right.Word3; - } - inline bool operator!=(MidiMessageStruct const& left, MidiMessageStruct const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiChannel : winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel - { - MidiChannel(std::nullptr_t) noexcept {} - MidiChannel(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel(ptr, take_ownership_from_abi) {} - explicit MidiChannel(uint8_t index); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto IsValidIndex(uint8_t index); - }; - struct WINRT_IMPL_EMPTY_BASES MidiClock : winrt::Microsoft::Windows::Devices::Midi2::IMidiClock - { - MidiClock(std::nullptr_t) noexcept {} - MidiClock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiClock(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto Now(); - [[nodiscard]] static auto TimestampConstantSendImmediately(); - [[nodiscard]] static auto TimestampFrequency(); - static auto ConvertTimestampTicksToNanoseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToMicroseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToMilliseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToSeconds(uint64_t timestampValue); - static auto OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks); - static auto OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds); - static auto OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds); - static auto OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointConnection : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection, - impl::require - { - MidiEndpointConnection(std::nullptr_t) noexcept {} - MidiEndpointConnection(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection(ptr, take_ownership_from_abi) {} - static auto GetDeviceSelector(); - static auto SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult); - static auto SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformation : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation - { - MidiEndpointDeviceInformation(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation(ptr, take_ownership_from_abi) {} - static auto CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId); - static auto FindAll(); - static auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder); - static auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude); - [[nodiscard]] static auto EndpointInterfaceClass(); - static auto GetAdditionalPropertiesList(); - static auto DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationAddedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs - { - MidiEndpointDeviceInformationAddedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationAddedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationRemovedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs - { - MidiEndpointDeviceInformationRemovedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationRemovedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationUpdatedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs - { - MidiEndpointDeviceInformationUpdatedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationUpdatedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceWatcher : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher - { - MidiEndpointDeviceWatcher(std::nullptr_t) noexcept {} - MidiEndpointDeviceWatcher(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher(ptr, take_ownership_from_abi) {} - static auto Create(); - static auto Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters); - }; - struct WINRT_IMPL_EMPTY_BASES MidiFunctionBlock : winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock - { - MidiFunctionBlock(std::nullptr_t) noexcept {} - MidiFunctionBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock(ptr, take_ownership_from_abi) {} - MidiFunctionBlock(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroup : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup - { - MidiGroup(std::nullptr_t) noexcept {} - MidiGroup(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup(ptr, take_ownership_from_abi) {} - explicit MidiGroup(uint8_t index); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto IsValidIndex(uint8_t index); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroupTerminalBlock : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock - { - MidiGroupTerminalBlock(std::nullptr_t) noexcept {} - MidiGroupTerminalBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage128 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128, - impl::require - { - MidiMessage128(std::nullptr_t) noexcept {} - MidiMessage128(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128(ptr, take_ownership_from_abi) {} - MidiMessage128(); - MidiMessage128(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3); - MidiMessage128(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage32 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32, - impl::require - { - MidiMessage32(std::nullptr_t) noexcept {} - MidiMessage32(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32(ptr, take_ownership_from_abi) {} - MidiMessage32(); - MidiMessage32(uint64_t timestamp, uint32_t word0); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage64 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64, - impl::require - { - MidiMessage64(std::nullptr_t) noexcept {} - MidiMessage64(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64(ptr, take_ownership_from_abi) {} - MidiMessage64(); - MidiMessage64(uint64_t timestamp, uint32_t word0, uint32_t word1); - MidiMessage64(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage96 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96, - impl::require - { - MidiMessage96(std::nullptr_t) noexcept {} - MidiMessage96(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96(ptr, take_ownership_from_abi) {} - MidiMessage96(); - MidiMessage96(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2); - MidiMessage96(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessageReceivedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs - { - MidiMessageReceivedEventArgs(std::nullptr_t) noexcept {} - MidiMessageReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiSession : winrt::Microsoft::Windows::Devices::Midi2::IMidiSession, - impl::require - { - MidiSession(std::nullptr_t) noexcept {} - MidiSession(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiSession(ptr, take_ownership_from_abi) {} - static auto Create(param::hstring const& sessionName); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h deleted file mode 100644 index 438febb66..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h +++ /dev/null @@ -1,104 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct IMidiUniqueId; - struct IMidiUniqueIdFactory; - struct IMidiUniqueIdStatics; - struct MidiUniqueId; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.MidiUniqueId"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueId"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueIdFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueIdStatics"; - template <> inline constexpr guid guid_v{ 0x2476DCBC,0x3CD7,0x5346,{ 0x9F,0x5C,0xE6,0xD1,0xAD,0xD1,0x67,0x41 } }; // 2476DCBC-3CD7-5346-9F5C-E6D1ADD16741 - template <> inline constexpr guid guid_v{ 0xD2F59A5C,0xE78B,0x5D7A,{ 0x9B,0x22,0x3D,0xC0,0x28,0x58,0x1A,0x64 } }; // D2F59A5C-E78B-5D7A-9B22-3DC028581A64 - template <> inline constexpr guid guid_v{ 0x27B256C2,0xB3B0,0x507A,{ 0xBC,0x6B,0x48,0xE6,0xFC,0x42,0xB4,0x68 } }; // 27B256C2-B3B0-507A-BC6B-48E6FC42B468 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Byte1(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte1(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte2(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte2(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte3(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte3(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte4(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte4(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_AsCombined28BitValue(uint32_t*) noexcept = 0; - virtual int32_t __stdcall get_IsBroadcast(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsReserved(bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall CreateBroadcast(void**) noexcept = 0; - virtual int32_t __stdcall CreateRandom(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId - { - [[nodiscard]] auto Byte1() const; - auto Byte1(uint8_t value) const; - [[nodiscard]] auto Byte2() const; - auto Byte2(uint8_t value) const; - [[nodiscard]] auto Byte3() const; - auto Byte3(uint8_t value) const; - [[nodiscard]] auto Byte4() const; - auto Byte4(uint8_t value) const; - [[nodiscard]] auto AsCombined28BitValue() const; - [[nodiscard]] auto IsBroadcast() const; - [[nodiscard]] auto IsReserved() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory - { - auto CreateInstance(uint32_t combined28BitValue) const; - auto CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto CreateBroadcast() const; - auto CreateRandom() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h deleted file mode 100644 index d105e51bc..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h +++ /dev/null @@ -1,31 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueId : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueId(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueId(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueIdFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueIdFactory(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueIdFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueIdStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueIdStatics(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueIdStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h deleted file mode 100644 index b4914e773..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h +++ /dev/null @@ -1,22 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct WINRT_IMPL_EMPTY_BASES MidiUniqueId : winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId - { - MidiUniqueId(std::nullptr_t) noexcept {} - MidiUniqueId(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId(ptr, take_ownership_from_abi) {} - MidiUniqueId(); - explicit MidiUniqueId(uint32_t combined28BitValue); - MidiUniqueId(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto CreateBroadcast(); - static auto CreateRandom(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h deleted file mode 100644 index 6bf8c9af9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h +++ /dev/null @@ -1,116 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiGroup; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct IMidiChannelEndpointListener; - struct IMidiGroupEndpointListener; - struct IMidiMessageTypeEndpointListener; - struct MidiChannelEndpointListener; - struct MidiGroupEndpointListener; - struct MidiMessageTypeEndpointListener; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiChannelEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiGroupEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiMessageTypeEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiChannelEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiGroupEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiMessageTypeEndpointListener"; - template <> inline constexpr guid guid_v{ 0xFD961EBD,0xE883,0x5C78,{ 0xB1,0x00,0xC0,0x2B,0x70,0x50,0xAE,0x59 } }; // FD961EBD-E883-5C78-B100-C02B7050AE59 - template <> inline constexpr guid guid_v{ 0xA8FE598F,0x2E81,0x507E,{ 0x99,0x46,0x44,0x45,0x45,0x26,0xBF,0x61 } }; // A8FE598F-2E81-507E-9946-44454526BF61 - template <> inline constexpr guid guid_v{ 0x3F03A513,0x6032,0x58F6,{ 0x98,0x17,0xB8,0xD3,0xC7,0xE8,0x9B,0x89 } }; // 3F03A513-6032-58F6-9817-B8D3C7E89B89 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedGroup(void**) noexcept = 0; - virtual int32_t __stdcall put_IncludedGroup(void*) noexcept = 0; - virtual int32_t __stdcall get_IncludedChannels(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedGroups(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedMessageTypes(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener - { - [[nodiscard]] auto IncludedGroup() const; - auto IncludedGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& value) const; - [[nodiscard]] auto IncludedChannels() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener - { - [[nodiscard]] auto IncludedGroups() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener - { - [[nodiscard]] auto IncludedMessageTypes() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h deleted file mode 100644 index 9cef219ea..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h +++ /dev/null @@ -1,31 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct WINRT_IMPL_EMPTY_BASES IMidiChannelEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiChannelEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiGroupEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageTypeEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageTypeEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiMessageTypeEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h deleted file mode 100644 index fde3586c8..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h +++ /dev/null @@ -1,32 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct WINRT_IMPL_EMPTY_BASES MidiChannelEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener, - impl::require - { - MidiChannelEndpointListener(std::nullptr_t) noexcept {} - MidiChannelEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener(ptr, take_ownership_from_abi) {} - MidiChannelEndpointListener(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroupEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener, - impl::require - { - MidiGroupEndpointListener(std::nullptr_t) noexcept {} - MidiGroupEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener(ptr, take_ownership_from_abi) {} - MidiGroupEndpointListener(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessageTypeEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener, - impl::require - { - MidiMessageTypeEndpointListener(std::nullptr_t) noexcept {} - MidiMessageTypeEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener(ptr, take_ownership_from_abi) {} - MidiMessageTypeEndpointListener(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h deleted file mode 100644 index 5a140177a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h +++ /dev/null @@ -1,206 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_0_H -WINRT_EXPORT namespace winrt::Windows::Foundation -{ -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct IMidiDiagnosticsStatics; - struct IMidiReportingStatics; - struct IMidiServicePingResponseSummary; - struct IMidiServiceSessionInfo; - struct MidiDiagnostics; - struct MidiReporting; - struct MidiServicePingResponseSummary; - struct MidiServiceSessionInfo; - struct MidiServiceMessageProcessingPluginInfo; - struct MidiServicePingResponse; - struct MidiServiceSessionConnectionInfo; - struct MidiServiceTransportPluginInfo; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiDiagnostics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiReporting"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServicePingResponseSummary"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceSessionInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceMessageProcessingPluginInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServicePingResponse"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceSessionConnectionInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceTransportPluginInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiDiagnosticsStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiReportingStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiServicePingResponseSummary"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiServiceSessionInfo"; - template <> inline constexpr guid guid_v{ 0x4AB631D4,0x3C9A,0x5E7D,{ 0xB3,0xDA,0xB4,0x85,0x69,0x7E,0xDF,0x9E } }; // 4AB631D4-3C9A-5E7D-B3DA-B485697EDF9E - template <> inline constexpr guid guid_v{ 0x836257F9,0xF81F,0x5C0E,{ 0xB6,0xF2,0xB2,0xD0,0xF9,0xDC,0xF6,0x8E } }; // 836257F9-F81F-5C0E-B6F2-B2D0F9DCF68E - template <> inline constexpr guid guid_v{ 0x9826B87F,0x01ED,0x56CE,{ 0xA5,0x40,0x6A,0xB9,0x89,0xA0,0x3E,0xF8 } }; // 9826B87F-01ED-56CE-A540-6AB989A03EF8 - template <> inline constexpr guid guid_v{ 0x3156AD39,0x109E,0x5B67,{ 0x86,0x1B,0xAE,0x41,0x38,0x27,0xC9,0x05 } }; // 3156AD39-109E-5B67-861B-AE413827C905 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_DiagnosticsLoopbackAEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_DiagnosticsLoopbackBEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall PingService(uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall PingService2(uint8_t, uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall GetInstalledTransportPlugins(void**) noexcept = 0; - virtual int32_t __stdcall GetInstalledMessageProcessingPlugins(void**) noexcept = 0; - virtual int32_t __stdcall GetActiveSessions(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Success(bool*) noexcept = 0; - virtual int32_t __stdcall get_FailureReason(void**) noexcept = 0; - virtual int32_t __stdcall get_TotalPingRoundTripMidiClock(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_AveragePingRoundTripMidiClock(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_Responses(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SessionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_ProcessId(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_ProcessName(void**) noexcept = 0; - virtual int32_t __stdcall get_SessionName(void**) noexcept = 0; - virtual int32_t __stdcall get_StartTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall get_Connections(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics - { - [[nodiscard]] auto DiagnosticsLoopbackAEndpointDeviceId() const; - [[nodiscard]] auto DiagnosticsLoopbackBEndpointDeviceId() const; - auto PingService(uint8_t pingCount) const; - auto PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics - { - auto GetInstalledTransportPlugins() const; - auto GetInstalledMessageProcessingPlugins() const; - auto GetActiveSessions() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary - { - [[nodiscard]] auto Success() const; - [[nodiscard]] auto FailureReason() const; - [[nodiscard]] auto TotalPingRoundTripMidiClock() const; - [[nodiscard]] auto AveragePingRoundTripMidiClock() const; - [[nodiscard]] auto Responses() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo - { - [[nodiscard]] auto SessionId() const; - [[nodiscard]] auto ProcessId() const; - [[nodiscard]] auto ProcessName() const; - [[nodiscard]] auto SessionName() const; - [[nodiscard]] auto StartTime() const; - [[nodiscard]] auto Connections() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceMessageProcessingPluginInfo - { - winrt::guid Id; - void* Name; - void* Description; - void* Author; - void* SmallImagePath; - void* Version; - bool SupportsMultipleInstancesPerDevice; - bool IsSystemManaged; - bool IsClientConfigurable; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceMessageProcessingPluginInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServicePingResponse - { - uint32_t SourceId; - uint32_t Index; - uint64_t ClientSendMidiTimestamp; - uint64_t ServiceReportedMidiTimestamp; - uint64_t ClientReceiveMidiTimestamp; - uint64_t ClientDeltaTimestamp; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServicePingResponse; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceSessionConnectionInfo - { - void* EndpointDeviceId; - uint16_t InstanceCount; - int64_t EarliestConnectionTime; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceSessionConnectionInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceTransportPluginInfo - { - winrt::guid Id; - void* Name; - void* Abbreviation; - void* Description; - void* SmallImagePath; - void* Author; - void* Version; - bool IsRuntimeCreatableByApps; - bool IsRuntimeCreatableBySettings; - bool IsSystemManaged; - bool CanConfigure; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceTransportPluginInfo; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h deleted file mode 100644 index 4138c1102..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct WINRT_IMPL_EMPTY_BASES IMidiDiagnosticsStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiDiagnosticsStatics(std::nullptr_t = nullptr) noexcept {} - IMidiDiagnosticsStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiReportingStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiReportingStatics(std::nullptr_t = nullptr) noexcept {} - IMidiReportingStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServicePingResponseSummary : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicePingResponseSummary(std::nullptr_t = nullptr) noexcept {} - IMidiServicePingResponseSummary(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceSessionInfo : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceSessionInfo(std::nullptr_t = nullptr) noexcept {} - IMidiServiceSessionInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h deleted file mode 100644 index cee0e284c..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_2_H -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct MidiServiceMessageProcessingPluginInfo - { - winrt::guid Id; - hstring Name; - hstring Description; - hstring Author; - hstring SmallImagePath; - hstring Version; - bool SupportsMultipleInstancesPerDevice; - bool IsSystemManaged; - bool IsClientConfigurable; - }; - inline bool operator==(MidiServiceMessageProcessingPluginInfo const& left, MidiServiceMessageProcessingPluginInfo const& right) noexcept - { - return left.Id == right.Id && left.Name == right.Name && left.Description == right.Description && left.Author == right.Author && left.SmallImagePath == right.SmallImagePath && left.Version == right.Version && left.SupportsMultipleInstancesPerDevice == right.SupportsMultipleInstancesPerDevice && left.IsSystemManaged == right.IsSystemManaged && left.IsClientConfigurable == right.IsClientConfigurable; - } - inline bool operator!=(MidiServiceMessageProcessingPluginInfo const& left, MidiServiceMessageProcessingPluginInfo const& right) noexcept - { - return !(left == right); - } - struct MidiServicePingResponse - { - uint32_t SourceId; - uint32_t Index; - uint64_t ClientSendMidiTimestamp; - uint64_t ServiceReportedMidiTimestamp; - uint64_t ClientReceiveMidiTimestamp; - uint64_t ClientDeltaTimestamp; - }; - inline bool operator==(MidiServicePingResponse const& left, MidiServicePingResponse const& right) noexcept - { - return left.SourceId == right.SourceId && left.Index == right.Index && left.ClientSendMidiTimestamp == right.ClientSendMidiTimestamp && left.ServiceReportedMidiTimestamp == right.ServiceReportedMidiTimestamp && left.ClientReceiveMidiTimestamp == right.ClientReceiveMidiTimestamp && left.ClientDeltaTimestamp == right.ClientDeltaTimestamp; - } - inline bool operator!=(MidiServicePingResponse const& left, MidiServicePingResponse const& right) noexcept - { - return !(left == right); - } - struct MidiServiceSessionConnectionInfo - { - hstring EndpointDeviceId; - uint16_t InstanceCount; - winrt::Windows::Foundation::DateTime EarliestConnectionTime; - }; - inline bool operator==(MidiServiceSessionConnectionInfo const& left, MidiServiceSessionConnectionInfo const& right) noexcept - { - return left.EndpointDeviceId == right.EndpointDeviceId && left.InstanceCount == right.InstanceCount && left.EarliestConnectionTime == right.EarliestConnectionTime; - } - inline bool operator!=(MidiServiceSessionConnectionInfo const& left, MidiServiceSessionConnectionInfo const& right) noexcept - { - return !(left == right); - } - struct MidiServiceTransportPluginInfo - { - winrt::guid Id; - hstring Name; - hstring Abbreviation; - hstring Description; - hstring SmallImagePath; - hstring Author; - hstring Version; - bool IsRuntimeCreatableByApps; - bool IsRuntimeCreatableBySettings; - bool IsSystemManaged; - bool CanConfigure; - }; - inline bool operator==(MidiServiceTransportPluginInfo const& left, MidiServiceTransportPluginInfo const& right) noexcept - { - return left.Id == right.Id && left.Name == right.Name && left.Abbreviation == right.Abbreviation && left.Description == right.Description && left.SmallImagePath == right.SmallImagePath && left.Author == right.Author && left.Version == right.Version && left.IsRuntimeCreatableByApps == right.IsRuntimeCreatableByApps && left.IsRuntimeCreatableBySettings == right.IsRuntimeCreatableBySettings && left.IsSystemManaged == right.IsSystemManaged && left.CanConfigure == right.CanConfigure; - } - inline bool operator!=(MidiServiceTransportPluginInfo const& left, MidiServiceTransportPluginInfo const& right) noexcept - { - return !(left == right); - } - struct MidiDiagnostics - { - MidiDiagnostics() = delete; - [[nodiscard]] static auto DiagnosticsLoopbackAEndpointDeviceId(); - [[nodiscard]] static auto DiagnosticsLoopbackBEndpointDeviceId(); - static auto PingService(uint8_t pingCount); - static auto PingService(uint8_t pingCount, uint32_t timeoutMilliseconds); - }; - struct MidiReporting - { - MidiReporting() = delete; - static auto GetInstalledTransportPlugins(); - static auto GetInstalledMessageProcessingPlugins(); - static auto GetActiveSessions(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiServicePingResponseSummary : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary - { - MidiServicePingResponseSummary(std::nullptr_t) noexcept {} - MidiServicePingResponseSummary(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiServiceSessionInfo : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo - { - MidiServiceSessionInfo(std::nullptr_t) noexcept {} - MidiServiceSessionInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h deleted file mode 100644 index cd7b9ca69..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h +++ /dev/null @@ -1,187 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct IMidiLoopbackEndpointCreationConfig; - struct IMidiLoopbackEndpointCreationConfigFactory; - struct IMidiLoopbackEndpointDeletionConfig; - struct IMidiLoopbackEndpointDeletionConfigFactory; - struct IMidiLoopbackEndpointManager; - struct IMidiLoopbackEndpointManagerStatics; - struct MidiLoopbackEndpointCreationConfig; - struct MidiLoopbackEndpointDeletionConfig; - struct MidiLoopbackEndpointManager; - struct MidiLoopbackEndpointCreationResult; - struct MidiLoopbackEndpointDefinition; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointDeletionConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointCreationResult"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointDefinition"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointCreationConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointDeletionConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointDeletionConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointManagerStatics"; - template <> inline constexpr guid guid_v{ 0x53EF39E5,0x179D,0x57AF,{ 0x98,0x4D,0xC4,0x0D,0x5C,0x29,0x99,0xFA } }; // 53EF39E5-179D-57AF-984D-C40D5C2999FA - template <> inline constexpr guid guid_v{ 0x5FA6051E,0x83EE,0x5D4D,{ 0x92,0x1C,0x48,0xBA,0xD0,0xAA,0xDE,0x61 } }; // 5FA6051E-83EE-5D4D-921C-48BAD0AADE61 - template <> inline constexpr guid guid_v{ 0x717579E3,0xE3BE,0x5D34,{ 0x87,0x79,0xA1,0x56,0x31,0x1B,0x84,0x8D } }; // 717579E3-E3BE-5D34-8779-A156311B848D - template <> inline constexpr guid guid_v{ 0x2663EB28,0xD010,0x5610,{ 0x86,0xCA,0xBD,0x68,0x40,0xDE,0x78,0xE8 } }; // 2663EB28-D010-5610-86CA-BD6840DE78E8 - template <> inline constexpr guid guid_v{ 0x1DFB714C,0x710A,0x58D5,{ 0x9E,0xAD,0x49,0xAC,0x8C,0x3F,0x34,0x98 } }; // 1DFB714C-710A-58D5-9EAD-49AC8C3F3498 - template <> inline constexpr guid guid_v{ 0x2B788E99,0x2384,0x5518,{ 0x82,0x39,0x03,0x2F,0xBE,0x23,0x2D,0x2B } }; // 2B788E99-2384-5518-8239-032FBE232D2B - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall put_AssociationId(winrt::guid) noexcept = 0; - virtual int32_t __stdcall get_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition*) noexcept = 0; - virtual int32_t __stdcall put_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition) noexcept = 0; - virtual int32_t __stdcall get_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition*) noexcept = 0; - virtual int32_t __stdcall put_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(winrt::guid, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall put_AssociationId(winrt::guid) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(winrt::guid, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsTransportAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall get_AbstractionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall CreateTransientLoopbackEndpoints(void*, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult*) noexcept = 0; - virtual int32_t __stdcall RemoveTransientLoopbackEndpoints(void*, bool*) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig - { - [[nodiscard]] auto AssociationId() const; - auto AssociationId(winrt::guid const& value) const; - [[nodiscard]] auto EndpointDefinitionA() const; - auto EndpointDefinitionA(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const; - [[nodiscard]] auto EndpointDefinitionB() const; - auto EndpointDefinitionB(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory - { - auto CreateInstance(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig - { - [[nodiscard]] auto AssociationId() const; - auto AssociationId(winrt::guid const& value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory - { - auto CreateInstance(winrt::guid const& associationId) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManager - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManager; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics - { - [[nodiscard]] auto IsTransportAvailable() const; - [[nodiscard]] auto AbstractionId() const; - auto CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) const; - auto RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult - { - bool Success; - winrt::guid AssociationId; - void* EndpointDeviceIdA; - void* EndpointDeviceIdB; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition - { - void* Name; - void* UniqueId; - void* Description; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h deleted file mode 100644 index 5a5457ec9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h +++ /dev/null @@ -1,52 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointCreationConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointCreationConfig(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointCreationConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointCreationConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointCreationConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointDeletionConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointDeletionConfig(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointDeletionConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointDeletionConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointDeletionConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointDeletionConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointManager : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointManager(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointManagerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointManagerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointManagerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h deleted file mode 100644 index 021b1a4a5..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h +++ /dev/null @@ -1,64 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct MidiLoopbackEndpointCreationResult - { - bool Success; - winrt::guid AssociationId; - hstring EndpointDeviceIdA; - hstring EndpointDeviceIdB; - }; - inline bool operator==(MidiLoopbackEndpointCreationResult const& left, MidiLoopbackEndpointCreationResult const& right) noexcept - { - return left.Success == right.Success && left.AssociationId == right.AssociationId && left.EndpointDeviceIdA == right.EndpointDeviceIdA && left.EndpointDeviceIdB == right.EndpointDeviceIdB; - } - inline bool operator!=(MidiLoopbackEndpointCreationResult const& left, MidiLoopbackEndpointCreationResult const& right) noexcept - { - return !(left == right); - } - struct MidiLoopbackEndpointDefinition - { - hstring Name; - hstring UniqueId; - hstring Description; - }; - inline bool operator==(MidiLoopbackEndpointDefinition const& left, MidiLoopbackEndpointDefinition const& right) noexcept - { - return left.Name == right.Name && left.UniqueId == right.UniqueId && left.Description == right.Description; - } - inline bool operator!=(MidiLoopbackEndpointDefinition const& left, MidiLoopbackEndpointDefinition const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointCreationConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig, - impl::require - { - MidiLoopbackEndpointCreationConfig(std::nullptr_t) noexcept {} - MidiLoopbackEndpointCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig(ptr, take_ownership_from_abi) {} - MidiLoopbackEndpointCreationConfig(); - MidiLoopbackEndpointCreationConfig(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB); - }; - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointDeletionConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig, - impl::require - { - MidiLoopbackEndpointDeletionConfig(std::nullptr_t) noexcept {} - MidiLoopbackEndpointDeletionConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig(ptr, take_ownership_from_abi) {} - explicit MidiLoopbackEndpointDeletionConfig(winrt::guid const& associationId); - }; - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointManager : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager - { - MidiLoopbackEndpointManager(std::nullptr_t) noexcept {} - MidiLoopbackEndpointManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto IsTransportAvailable(); - [[nodiscard]] static auto AbstractionId(); - static auto CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig); - static auto RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h deleted file mode 100644 index 780a0d43a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h +++ /dev/null @@ -1,232 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiDeclaredDeviceIdentity; - struct MidiDeclaredEndpointInfo; - struct MidiEndpointUserSuppliedInfo; - struct MidiFunctionBlock; - enum class MidiProtocol : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct EventRegistrationToken; - template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct IMidiStreamConfigRequestReceivedEventArgs; - struct IMidiVirtualDevice; - struct IMidiVirtualDeviceCreationConfig; - struct IMidiVirtualDeviceCreationConfigFactory; - struct IMidiVirtualDeviceManager; - struct IMidiVirtualDeviceManagerStatics; - struct MidiStreamConfigRequestReceivedEventArgs; - struct MidiVirtualDevice; - struct MidiVirtualDeviceCreationConfig; - struct MidiVirtualDeviceManager; - struct MidiStreamConfigRequestedSettings; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiStreamConfigRequestReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDevice"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDeviceCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDeviceManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiStreamConfigRequestedSettings"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiStreamConfigRequestReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDevice"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceCreationConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceManagerStatics"; - template <> inline constexpr guid guid_v{ 0x95E66544,0x7629,0x50AF,{ 0x9E,0xEE,0x0B,0x10,0x99,0x40,0x8E,0xD6 } }; // 95E66544-7629-50AF-9EEE-0B1099408ED6 - template <> inline constexpr guid guid_v{ 0x95BCDF56,0x519E,0x5E44,{ 0x98,0xF2,0x3B,0x0A,0xE6,0x1F,0x4B,0xC7 } }; // 95BCDF56-519E-5E44-98F2-3B0AE61F4BC7 - template <> inline constexpr guid guid_v{ 0xEF8BC038,0xAC5D,0x5B85,{ 0x88,0x8D,0x11,0xDF,0x01,0x91,0x0D,0xDC } }; // EF8BC038-AC5D-5B85-888D-11DF01910DDC - template <> inline constexpr guid guid_v{ 0x6B3BFE63,0x5C8F,0x57D8,{ 0x8C,0xBA,0x20,0x8C,0x93,0x8F,0x08,0x34 } }; // 6B3BFE63-5C8F-57D8-8CBA-208C938F0834 - template <> inline constexpr guid guid_v{ 0x4235E62B,0xDF65,0x5B6C,{ 0x93,0x0F,0x64,0x0D,0xA2,0xF5,0x64,0x9C } }; // 4235E62B-DF65-5B6C-930F-640DA2F5649C - template <> inline constexpr guid guid_v{ 0xA3C905C1,0x56B5,0x58CE,{ 0xAD,0x79,0x82,0x66,0xE5,0x0A,0x1C,0x0C } }; // A3C905C1-56B5-58CE-AD79-8266E50A1C0C - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_PreferredMidiProtocol(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_RequestEndpointTransmitJitterReductionTimestamps(bool*) noexcept = 0; - virtual int32_t __stdcall get_RequestEndpointReceiveJitterReductionTimestamps(bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_DeviceEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_FunctionBlocks(void**) noexcept = 0; - virtual int32_t __stdcall UpdateFunctionBlock(void*, bool*) noexcept = 0; - virtual int32_t __stdcall UpdateEndpointName(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_SuppressHandledMessages(bool*) noexcept = 0; - virtual int32_t __stdcall put_SuppressHandledMessages(bool) noexcept = 0; - virtual int32_t __stdcall add_StreamConfigRequestReceived(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_StreamConfigRequestReceived(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall put_Name(void*) noexcept = 0; - virtual int32_t __stdcall get_Description(void**) noexcept = 0; - virtual int32_t __stdcall put_Description(void*) noexcept = 0; - virtual int32_t __stdcall get_Manufacturer(void**) noexcept = 0; - virtual int32_t __stdcall put_Manufacturer(void*) noexcept = 0; - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity*) noexcept = 0; - virtual int32_t __stdcall put_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity) noexcept = 0; - virtual int32_t __stdcall get_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo*) noexcept = 0; - virtual int32_t __stdcall put_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo) noexcept = 0; - virtual int32_t __stdcall get_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall put_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo) noexcept = 0; - virtual int32_t __stdcall get_FunctionBlocks(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity, struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsTransportAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall get_AbstractionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall CreateVirtualDevice(void*, void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs - { - [[nodiscard]] auto Timestamp() const; - [[nodiscard]] auto PreferredMidiProtocol() const; - [[nodiscard]] auto RequestEndpointTransmitJitterReductionTimestamps() const; - [[nodiscard]] auto RequestEndpointReceiveJitterReductionTimestamps() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice - { - [[nodiscard]] auto DeviceEndpointDeviceId() const; - [[nodiscard]] auto AssociationId() const; - [[nodiscard]] auto FunctionBlocks() const; - auto UpdateFunctionBlock(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock const& block) const; - auto UpdateEndpointName(param::hstring const& name) const; - [[nodiscard]] auto SuppressHandledMessages() const; - auto SuppressHandledMessages(bool value) const; - auto StreamConfigRequestReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using StreamConfigRequestReceived_revoker = impl::event_revoker::remove_StreamConfigRequestReceived>; - [[nodiscard]] auto StreamConfigRequestReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto StreamConfigRequestReceived(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig - { - [[nodiscard]] auto Name() const; - auto Name(param::hstring const& value) const; - [[nodiscard]] auto Description() const; - auto Description(param::hstring const& value) const; - [[nodiscard]] auto Manufacturer() const; - auto Manufacturer(param::hstring const& value) const; - [[nodiscard]] auto AssociationId() const; - [[nodiscard]] auto DeclaredDeviceIdentity() const; - auto DeclaredDeviceIdentity(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& value) const; - [[nodiscard]] auto DeclaredEndpointInfo() const; - auto DeclaredEndpointInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& value) const; - [[nodiscard]] auto UserSuppliedInfo() const; - auto UserSuppliedInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& value) const; - [[nodiscard]] auto FunctionBlocks() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory - { - auto CreateInstance(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) const; - auto CreateInstance2(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) const; - auto CreateInstance3(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManager - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManager; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics - { - [[nodiscard]] auto IsTransportAvailable() const; - [[nodiscard]] auto AbstractionId() const; - auto CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiStreamConfigRequestedSettings - { - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - int32_t PreferredMidiProtocol; - bool RequestEndpointTransmitJitterReductionTimestamps; - bool RequestEndpointReceiveJitterReductionTimestamps; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiStreamConfigRequestedSettings; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h deleted file mode 100644 index 83dc91a3a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h +++ /dev/null @@ -1,52 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct WINRT_IMPL_EMPTY_BASES IMidiStreamConfigRequestReceivedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiStreamConfigRequestReceivedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiStreamConfigRequestReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDevice : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDevice(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDevice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceCreationConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceCreationConfig(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceCreationConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceCreationConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceCreationConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceManager : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceManager(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceManagerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceManagerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceManagerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h deleted file mode 100644 index 7838b2613..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h +++ /dev/null @@ -1,56 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct MidiStreamConfigRequestedSettings - { - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol PreferredMidiProtocol; - bool RequestEndpointTransmitJitterReductionTimestamps; - bool RequestEndpointReceiveJitterReductionTimestamps; - }; - inline bool operator==(MidiStreamConfigRequestedSettings const& left, MidiStreamConfigRequestedSettings const& right) noexcept - { - return left.SpecificationVersionMajor == right.SpecificationVersionMajor && left.SpecificationVersionMinor == right.SpecificationVersionMinor && left.PreferredMidiProtocol == right.PreferredMidiProtocol && left.RequestEndpointTransmitJitterReductionTimestamps == right.RequestEndpointTransmitJitterReductionTimestamps && left.RequestEndpointReceiveJitterReductionTimestamps == right.RequestEndpointReceiveJitterReductionTimestamps; - } - inline bool operator!=(MidiStreamConfigRequestedSettings const& left, MidiStreamConfigRequestedSettings const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiStreamConfigRequestReceivedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs - { - MidiStreamConfigRequestReceivedEventArgs(std::nullptr_t) noexcept {} - MidiStreamConfigRequestReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDevice : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice, - impl::require - { - MidiVirtualDevice(std::nullptr_t) noexcept {} - MidiVirtualDevice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDeviceCreationConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig, - impl::require - { - MidiVirtualDeviceCreationConfig(std::nullptr_t) noexcept {} - MidiVirtualDeviceCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig(ptr, take_ownership_from_abi) {} - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo); - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity); - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo); - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDeviceManager : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager - { - MidiVirtualDeviceManager(std::nullptr_t) noexcept {} - MidiVirtualDeviceManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto IsTransportAvailable(); - [[nodiscard]] static auto AbstractionId(); - static auto CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h deleted file mode 100644 index 304eccc15..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h +++ /dev/null @@ -1,70 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_0_H -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct Uri; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct IMidiServicesInitializer; - struct IMidiServicesInitializerStatics; - struct MidiServicesInitializer; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.MidiServicesInitializer"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.IMidiServicesInitializer"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.IMidiServicesInitializerStatics"; - template <> inline constexpr guid guid_v{ 0x3A60A020,0x720A,0x563F,{ 0x90,0x9C,0x9C,0x3C,0xF4,0x77,0x21,0xCE } }; // 3A60A020-720A-563F-909C-9C3CF47721CE - template <> inline constexpr guid guid_v{ 0x56FC8938,0x93CD,0x51B3,{ 0x9E,0x6E,0x5B,0xB3,0xDA,0xBD,0x19,0x0E } }; // 56FC8938-93CD-51B3-9E6E-5BB3DABD190E - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall IsOperatingSystemSupported(bool*) noexcept = 0; - virtual int32_t __stdcall EnsureServiceAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall InitializeSdkRuntime(bool*) noexcept = 0; - virtual int32_t __stdcall IsCompatibleDesktopAppSdkRuntimeInstalled(bool*) noexcept = 0; - virtual int32_t __stdcall GetLatestRuntimeReleaseInstallerUri(void**) noexcept = 0; - virtual int32_t __stdcall GetLatestSettingsAppReleaseInstallerUri(void**) noexcept = 0; - virtual int32_t __stdcall GetLatestConsoleAppReleaseInstallerUri(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializer - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializer; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics - { - auto IsOperatingSystemSupported() const; - auto EnsureServiceAvailable() const; - auto InitializeSdkRuntime() const; - auto IsCompatibleDesktopAppSdkRuntimeInstalled() const; - auto GetLatestRuntimeReleaseInstallerUri() const; - auto GetLatestSettingsAppReleaseInstallerUri() const; - auto GetLatestConsoleAppReleaseInstallerUri() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h deleted file mode 100644 index 0fe7114e6..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h +++ /dev/null @@ -1,24 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct WINRT_IMPL_EMPTY_BASES IMidiServicesInitializer : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicesInitializer(std::nullptr_t = nullptr) noexcept {} - IMidiServicesInitializer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServicesInitializerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicesInitializerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiServicesInitializerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h deleted file mode 100644 index 76c852b5f..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h +++ /dev/null @@ -1,22 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct WINRT_IMPL_EMPTY_BASES MidiServicesInitializer : winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer - { - MidiServicesInitializer(std::nullptr_t) noexcept {} - MidiServicesInitializer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer(ptr, take_ownership_from_abi) {} - static auto IsOperatingSystemSupported(); - static auto EnsureServiceAvailable(); - static auto InitializeSdkRuntime(); - static auto IsCompatibleDesktopAppSdkRuntimeInstalled(); - static auto GetLatestRuntimeReleaseInstallerUri(); - static auto GetLatestSettingsAppReleaseInstallerUri(); - static auto GetLatestConsoleAppReleaseInstallerUri(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h deleted file mode 100644 index 70023d180..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h +++ /dev/null @@ -1,331 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct IMidiUniversalPacket; - struct MidiChannel; - enum class MidiFunctionBlockDirection : int32_t; - enum class MidiFunctionBlockRepresentsMidi10Connection : int32_t; - enum class MidiFunctionBlockUIHint : int32_t; - struct MidiGroup; - struct MidiMessage128; - struct MidiMessage32; - struct MidiMessage64; - enum class MidiMessageType : int32_t; - enum class MidiPacketType : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Devices::Midi -{ - struct MidiActiveSensingMessage; - struct MidiChannelPressureMessage; - struct MidiContinueMessage; - struct MidiNoteOffMessage; - struct MidiNoteOnMessage; - struct MidiPitchBendChangeMessage; - struct MidiPolyphonicKeyPressureMessage; - struct MidiProgramChangeMessage; - struct MidiSongPositionPointerMessage; - struct MidiSongSelectMessage; - struct MidiStartMessage; - struct MidiStopMessage; - struct MidiSystemResetMessage; - struct MidiTimeCodeMessage; - struct MidiTimingClockMessage; - struct MidiTuneRequestMessage; -} -WINRT_EXPORT namespace winrt::Windows::Foundation::Collections -{ - template struct WINRT_IMPL_EMPTY_BASES IIterable; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - enum class Midi1ChannelVoiceMessageStatus : int32_t - { - NoteOff = 8, - NoteOn = 9, - PolyPressure = 10, - ControlChange = 11, - ProgramChange = 12, - ChannelPressure = 13, - PitchBend = 14, - }; - enum class Midi2ChannelVoiceMessageStatus : int32_t - { - RegisteredPerNoteController = 0, - AssignablePerNoteController = 1, - RegisteredController = 2, - AssignableController = 3, - RelativeRegisteredController = 4, - RelativeAssignableController = 5, - PerNotePitchBend = 6, - NoteOff = 8, - NoteOn = 9, - PolyPressure = 10, - ControlChange = 11, - ProgramChange = 12, - ChannelPressure = 13, - PitchBend = 14, - PerNoteManagement = 15, - }; - enum class MidiEndpointDiscoveryRequests : uint32_t - { - None = 0, - RequestEndpointInfo = 0x1, - RequestDeviceIdentity = 0x2, - RequestEndpointName = 0x4, - RequestProductInstanceId = 0x8, - RequestStreamConfiguration = 0x10, - }; - enum class MidiFunctionBlockDiscoveryRequests : uint32_t - { - None = 0, - RequestFunctionBlockInfo = 0x1, - RequestFunctionBlockName = 0x2, - }; - enum class MidiSystemExclusive8Status : int32_t - { - CompleteMessageInSingleMessagePacket = 0, - StartMessagePacket = 1, - ContinueMessagePacket = 2, - EndMessagePacket = 3, - }; - struct IMidiMessageBuilderStatics; - struct IMidiMessageConverterStatics; - struct IMidiMessageHelperStatics; - struct IMidiStreamMessageBuilderStatics; - struct MidiMessageBuilder; - struct MidiMessageConverter; - struct MidiMessageHelper; - struct MidiStreamMessageBuilder; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageBuilder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageConverter"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageHelper"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiStreamMessageBuilder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.Midi1ChannelVoiceMessageStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.Midi2ChannelVoiceMessageStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiEndpointDiscoveryRequests"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiFunctionBlockDiscoveryRequests"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiSystemExclusive8Status"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageBuilderStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageConverterStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageHelperStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiStreamMessageBuilderStatics"; - template <> inline constexpr guid guid_v{ 0x090C2C0B,0x95E4,0x5FF3,{ 0xA4,0xA9,0x2C,0x23,0x86,0x10,0x31,0x36 } }; // 090C2C0B-95E4-5FF3-A4A9-2C2386103136 - template <> inline constexpr guid guid_v{ 0x30BE1DB6,0x9E9E,0x5EAC,{ 0xB1,0xE6,0x6D,0x4F,0x11,0xFA,0x1E,0xBF } }; // 30BE1DB6-9E9E-5EAC-B1E6-6D4F11FA1EBF - template <> inline constexpr guid guid_v{ 0xCC84C703,0xE523,0x5597,{ 0xA3,0xD6,0xE8,0xAD,0x68,0x8A,0x96,0xCC } }; // CC84C703-E523-5597-A3D6-E8AD688A96CC - template <> inline constexpr guid guid_v{ 0x03E16477,0x3857,0x5ED3,{ 0x83,0x81,0x59,0xC4,0x0C,0xE4,0xA3,0x3D } }; // 03E16477-3857-5ED3-8381-59C40CE4A33D - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall BuildUtilityMessage(uint64_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemMessage(uint64_t, void*, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMidi1ChannelVoiceMessage(uint64_t, void*, int32_t, void*, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemExclusive7Message(uint64_t, void*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMidi2ChannelVoiceMessage(uint64_t, void*, int32_t, void*, uint16_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemExclusive8Message(uint64_t, void*, int32_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMixedDataSetChunkHeaderMessage(uint64_t, void*, uint8_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMixedDataSetChunkDataMessage(uint64_t, void*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFlexDataMessage(uint64_t, void*, uint8_t, uint8_t, void*, uint8_t, uint8_t, uint32_t, uint32_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamMessage(uint64_t, uint8_t, uint16_t, uint16_t, uint32_t, uint32_t, uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall ConvertMidi1Message(uint64_t, void*, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1Message2(uint64_t, void*, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1Message3(uint64_t, void*, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ChannelPressureMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1NoteOffMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1NoteOnMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1PitchBendChangeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1PolyphonicKeyPressureMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ProgramChangeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TimeCodeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SongPositionPointerMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SongSelectMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TuneRequestMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TimingClockMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1StartMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ContinueMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1StopMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ActiveSensingMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SystemResetMessage(uint64_t, void*, void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall ValidateMessage32MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage64MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage96MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage128MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall GetMessageTypeFromMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetPacketTypeFromMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall MessageTypeHasGroupField(int32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ReplaceGroupInMessageFirstWord(uint32_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetGroupFromMessageFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetStatusFromUtilityMessage(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromMidi1ChannelVoiceMessage(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusBankFromFlexDataMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromFlexDataMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromSystemCommonMessage(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromDataMessage64FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetNumberOfBytesFromDataMessage64FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromDataMessage128FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetNumberOfBytesFromDataMessage128FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall MessageTypeHasChannelField(int32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ReplaceChannelInMessageFirstWord(uint32_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetChannelFromMessageFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetFormFromStreamMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromStreamMessageFirstWord(uint32_t, uint16_t*) noexcept = 0; - virtual int32_t __stdcall GetMessageDisplayNameFromFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetPacketListFromWordList(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall GetWordListFromPacketList(void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall BuildEndpointDiscoveryMessage(uint64_t, uint8_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildEndpointInfoNotificationMessage(uint64_t, uint8_t, uint8_t, bool, uint8_t, bool, bool, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildDeviceIdentityNotificationMessage(uint64_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildEndpointNameNotificationMessages(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall BuildProductInstanceIdNotificationMessages(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseEndpointNameNotificationMessages(void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseProductInstanceIdNotificationMessages(void*, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamConfigurationRequestMessage(uint64_t, uint8_t, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamConfigurationNotificationMessage(uint64_t, uint8_t, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockDiscoveryMessage(uint64_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockInfoNotificationMessage(uint64_t, bool, uint8_t, int32_t, int32_t, int32_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockNameNotificationMessages(uint64_t, uint8_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseFunctionBlockNameNotificationMessages(void*, void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics - { - auto BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) const; - auto BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) const; - auto BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) const; - auto BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) const; - auto BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) const; - auto BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) const; - auto BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) const; - auto BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) const; - auto BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const; - auto BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics - { - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) const; - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) const; - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) const; - auto ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) const; - auto ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) const; - auto ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) const; - auto ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) const; - auto ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) const; - auto ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) const; - auto ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) const; - auto ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) const; - auto ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) const; - auto ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) const; - auto ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) const; - auto ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) const; - auto ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) const; - auto ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) const; - auto ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) const; - auto ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics - { - auto ValidateMessage32MessageType(uint32_t word0) const; - auto ValidateMessage64MessageType(uint32_t word0) const; - auto ValidateMessage96MessageType(uint32_t word0) const; - auto ValidateMessage128MessageType(uint32_t word0) const; - auto GetMessageTypeFromMessageFirstWord(uint32_t word0) const; - auto GetPacketTypeFromMessageFirstWord(uint32_t word0) const; - auto MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const; - auto ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) const; - auto GetGroupFromMessageFirstWord(uint32_t word0) const; - auto GetStatusFromUtilityMessage(uint32_t word0) const; - auto GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) const; - auto GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) const; - auto GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) const; - auto GetStatusFromFlexDataMessageFirstWord(uint32_t word0) const; - auto GetStatusFromSystemCommonMessage(uint32_t word0) const; - auto GetStatusFromDataMessage64FirstWord(uint32_t word0) const; - auto GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) const; - auto GetStatusFromDataMessage128FirstWord(uint32_t word0) const; - auto GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) const; - auto MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const; - auto ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) const; - auto GetChannelFromMessageFirstWord(uint32_t word0) const; - auto GetFormFromStreamMessageFirstWord(uint32_t word0) const; - auto GetStatusFromStreamMessageFirstWord(uint32_t word0) const; - auto GetMessageDisplayNameFromFirstWord(uint32_t word0) const; - auto GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) const; - auto GetWordListFromPacketList(param::iterable const& words) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics - { - auto BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) const; - auto BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) const; - auto BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) const; - auto BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) const; - auto BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) const; - auto ParseEndpointNameNotificationMessages(param::iterable const& messages) const; - auto ParseProductInstanceIdNotificationMessages(param::iterable const& messages) const; - auto BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) const; - auto BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) const; - auto BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) const; - auto BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) const; - auto BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) const; - auto ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h deleted file mode 100644 index e7fce06a8..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - struct WINRT_IMPL_EMPTY_BASES IMidiMessageBuilderStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageBuilderStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageBuilderStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageConverterStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageConverterStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageConverterStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageHelperStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageHelperStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageHelperStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiStreamMessageBuilderStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiStreamMessageBuilderStatics(std::nullptr_t = nullptr) noexcept {} - IMidiStreamMessageBuilderStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h deleted file mode 100644 index dd17a6032..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h +++ /dev/null @@ -1,98 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -#include "winrt/impl/Windows.Devices.Midi.1.h" -#include "winrt/impl/Windows.Foundation.Collections.1.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - struct MidiMessageBuilder - { - MidiMessageBuilder() = delete; - static auto BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved); - static auto BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3); - static auto BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4); - static auto BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5); - static auto BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data); - static auto BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12); - static auto BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2); - static auto BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13); - static auto BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data); - static auto BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data); - }; - struct MidiMessageConverter - { - MidiMessageConverter() = delete; - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte); - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1); - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2); - static auto ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage); - static auto ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage); - static auto ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage); - static auto ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage); - static auto ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage); - static auto ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage); - static auto ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage); - static auto ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage); - static auto ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage); - static auto ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage); - static auto ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage); - static auto ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage); - static auto ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage); - static auto ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage); - static auto ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage); - static auto ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage); - }; - struct MidiMessageHelper - { - MidiMessageHelper() = delete; - static auto ValidateMessage32MessageType(uint32_t word0); - static auto ValidateMessage64MessageType(uint32_t word0); - static auto ValidateMessage96MessageType(uint32_t word0); - static auto ValidateMessage128MessageType(uint32_t word0); - static auto GetMessageTypeFromMessageFirstWord(uint32_t word0); - static auto GetPacketTypeFromMessageFirstWord(uint32_t word0); - static auto MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType); - static auto ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup); - static auto GetGroupFromMessageFirstWord(uint32_t word0); - static auto GetStatusFromUtilityMessage(uint32_t word0); - static auto GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0); - static auto GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0); - static auto GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0); - static auto GetStatusFromFlexDataMessageFirstWord(uint32_t word0); - static auto GetStatusFromSystemCommonMessage(uint32_t word0); - static auto GetStatusFromDataMessage64FirstWord(uint32_t word0); - static auto GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0); - static auto GetStatusFromDataMessage128FirstWord(uint32_t word0); - static auto GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0); - static auto MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType); - static auto ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel); - static auto GetChannelFromMessageFirstWord(uint32_t word0); - static auto GetFormFromStreamMessageFirstWord(uint32_t word0); - static auto GetStatusFromStreamMessageFirstWord(uint32_t word0); - static auto GetMessageDisplayNameFromFirstWord(uint32_t word0); - static auto GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words); - static auto GetWordListFromPacketList(param::iterable const& words); - }; - struct MidiStreamMessageBuilder - { - MidiStreamMessageBuilder() = delete; - static auto BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request); - static auto BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps); - static auto BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4); - static auto BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name); - static auto BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId); - static auto ParseEndpointNameNotificationMessages(param::iterable const& messages); - static auto ParseProductInstanceIdNotificationMessages(param::iterable const& messages); - static auto BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps); - static auto BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps); - static auto BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags); - static auto BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams); - static auto BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name); - static auto ParseFunctionBlockNameNotificationMessages(param::iterable const& messages); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h deleted file mode 100644 index 5cd89b2ef..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h +++ /dev/null @@ -1,131 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - enum class MidiServiceConfigResponseStatus : int32_t - { - Success = 0, - ErrorTargetNotFound = 404, - ErrorConfigJsonNullOrEmpty = 600, - ErrorProcessingConfigJson = 601, - ErrorProcessingResponseJson = 605, - ErrorNotImplemented = 2600, - }; - struct IMidiServiceConfig; - struct IMidiServiceConfigStatics; - struct IMidiServiceMessageProcessingPluginConfig; - struct IMidiServiceTransportPluginConfig; - struct MidiServiceConfig; - struct MidiServiceConfigResponse; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfigResponseStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfigResponse"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceConfigStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceMessageProcessingPluginConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceTransportPluginConfig"; - template <> inline constexpr guid guid_v{ 0x0F1E4863,0xC76E,0x501F,{ 0x97,0x6A,0xDB,0x48,0xFC,0x0C,0x5B,0xB7 } }; // 0F1E4863-C76E-501F-976A-DB48FC0C5BB7 - template <> inline constexpr guid guid_v{ 0x20C5F99A,0x741B,0x513B,{ 0x86,0x55,0xAC,0x13,0x2F,0x05,0x16,0x6B } }; // 20C5F99A-741B-513B-8655-AC132F05166B - template <> inline constexpr guid guid_v{ 0x2EBCFA13,0x585A,0x4376,{ 0x8F,0xE1,0x63,0x57,0x84,0xFA,0x7F,0xD4 } }; // 2EBCFA13-585A-4376-8FE1-635784FA7FD4 - template <> inline constexpr guid guid_v{ 0xB2417DDE,0xEF35,0x499B,{ 0xA8,0x9B,0x0A,0x4C,0x32,0xCC,0x69,0x9A } }; // B2417DDE-EF35-499B-A89B-0A4C32CC699A - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall UpdateTransportPluginConfig(void*, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse*) noexcept = 0; - virtual int32_t __stdcall UpdateProcessingPluginConfig(void*, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_MessageProcessingPluginId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_PluginInstanceId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_IsFromCurrentConfigFile(bool*) noexcept = 0; - virtual int32_t __stdcall GetConfigJson(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_TransportId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_IsFromCurrentConfigFile(bool*) noexcept = 0; - virtual int32_t __stdcall GetConfigJson(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfig - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics - { - auto UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) const; - auto UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto MessageProcessingPluginId() const; - [[nodiscard]] auto PluginInstanceId() const; - [[nodiscard]] auto IsFromCurrentConfigFile() const; - auto GetConfigJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig - { - [[nodiscard]] auto TransportId() const; - [[nodiscard]] auto IsFromCurrentConfigFile() const; - auto GetConfigJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig; - }; - struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse - { - int32_t Status; - void* ResponseJson; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h deleted file mode 100644 index 6cc54f32d..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - struct WINRT_IMPL_EMPTY_BASES IMidiServiceConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceConfigStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceConfigStatics(std::nullptr_t = nullptr) noexcept {} - IMidiServiceConfigStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceMessageProcessingPluginConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceMessageProcessingPluginConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceMessageProcessingPluginConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceTransportPluginConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceTransportPluginConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceTransportPluginConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h deleted file mode 100644 index 66de80d94..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h +++ /dev/null @@ -1,30 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - struct MidiServiceConfigResponse - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponseStatus Status; - hstring ResponseJson; - }; - inline bool operator==(MidiServiceConfigResponse const& left, MidiServiceConfigResponse const& right) noexcept - { - return left.Status == right.Status && left.ResponseJson == right.ResponseJson; - } - inline bool operator!=(MidiServiceConfigResponse const& left, MidiServiceConfigResponse const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiServiceConfig : winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig - { - MidiServiceConfig(std::nullptr_t) noexcept {} - MidiServiceConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig(ptr, take_ownership_from_abi) {} - static auto UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate); - static auto UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 1330d4afb..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 3ec3bf415..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index a6672a0fe..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index 686535059..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 61a87865f..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll deleted file mode 100644 index 3e71dd3a7..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 15faccfac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 626d4a166..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 7dc39cedd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index cc0b45d34..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 343879ebc..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 343879ebc..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 343879ebc..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 343879ebc..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 1330d4afb..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 3ec3bf415..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index a6672a0fe..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index 686535059..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 61a87865f..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 15faccfac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 626d4a166..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 7dc39cedd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index cc0b45d34..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 9e11bd949..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index 62280d0b1..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index fd62d3e7c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 25f462d84..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 7d62d0c0c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 17d899219..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 343879ebc..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 343879ebc..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 343879ebc..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 343879ebc..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 9e11bd949..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index 62280d0b1..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index fd62d3e7c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 25f462d84..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 7d62d0c0c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 17d899219..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/README.md b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/README.md deleted file mode 100644 index 112ed6921..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Microsoft.Windows.Devices.Midi2 - -Note. This package is currently in developer preview. Please see release notes - -https://aka.ms/midi diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props deleted file mode 100644 index b77844b02..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - $(MSBuildThisFileDirectory)..\..\ - - - - - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Messages.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd - - - $$(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Diagnostics.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd - - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Initialization.winmd - - - - - \ No newline at end of file diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets deleted file mode 100644 index 2cdea5d13..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h deleted file mode 100644 index 1d0756148..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h +++ /dev/null @@ -1,293 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte1() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte1(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte2() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte2(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte3() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte3(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte3(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte3(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte4() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte4(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte4(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte4(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::AsCombined28BitValue() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_AsCombined28BitValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::IsBroadcast() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_IsBroadcast(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::IsReserved() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_IsReserved(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory::CreateInstance(uint32_t combined28BitValue) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdFactory)->CreateInstance(combined28BitValue, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory::CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdFactory)->CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::CreateBroadcast() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->CreateBroadcast(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::CreateRandom() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->CreateRandom(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Byte1(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte1(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte2(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte2(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte2(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte3(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte3()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte3(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte3(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte4(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte4()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte4(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte4(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AsCombined28BitValue(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AsCombined28BitValue()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsBroadcast(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsBroadcast()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsReserved(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsReserved()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint32_t combined28BitValue, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(combined28BitValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateBroadcast(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateBroadcast()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateRandom(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateRandom()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - inline MidiUniqueId::MidiUniqueId() : - MidiUniqueId(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiUniqueId::MidiUniqueId(uint32_t combined28BitValue) : - MidiUniqueId(impl::call_factory([&](IMidiUniqueIdFactory const& f) { return f.CreateInstance(combined28BitValue); })) - { - } - inline MidiUniqueId::MidiUniqueId(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) : - MidiUniqueId(impl::call_factory([&](IMidiUniqueIdFactory const& f) { return f.CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4); })) - { - } - inline auto MidiUniqueId::ShortLabel() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiUniqueId::LongLabel() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiUniqueId::CreateBroadcast() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.CreateBroadcast(); }); - } - inline auto MidiUniqueId::CreateRandom() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.CreateRandom(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h deleted file mode 100644 index ddc7ab50a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h +++ /dev/null @@ -1,273 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedGroup() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_IncludedGroup(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_IncludedGroup(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedChannels() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_IncludedChannels(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::IncludedGroups() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_IncludedGroups(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::IncludedMessageTypes() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_IncludedMessageTypes(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedGroup(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IncludedGroup()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IncludedGroup(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IncludedGroup(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IncludedChannels(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedChannels()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedGroups(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedGroups()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedMessageTypes(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedMessageTypes()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - inline MidiChannelEndpointListener::MidiChannelEndpointListener() : - MidiChannelEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiGroupEndpointListener::MidiGroupEndpointListener() : - MidiGroupEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiMessageTypeEndpointListener::MidiMessageTypeEndpointListener() : - MidiMessageTypeEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h deleted file mode 100644 index 1eaad3621..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h +++ /dev/null @@ -1,333 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::DiagnosticsLoopbackAEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->get_DiagnosticsLoopbackAEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::DiagnosticsLoopbackBEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->get_DiagnosticsLoopbackBEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::PingService(uint8_t pingCount) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->PingService(pingCount, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::MidiServicePingResponseSummary{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->PingService2(pingCount, timeoutMilliseconds, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::MidiServicePingResponseSummary{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetInstalledTransportPlugins() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetInstalledTransportPlugins(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetInstalledMessageProcessingPlugins() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetInstalledMessageProcessingPlugins(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetActiveSessions() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetActiveSessions(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::Success() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_Success(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::FailureReason() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_FailureReason(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::TotalPingRoundTripMidiClock() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_TotalPingRoundTripMidiClock(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::AveragePingRoundTripMidiClock() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_AveragePingRoundTripMidiClock(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::Responses() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_Responses(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::SessionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_SessionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::ProcessId() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_ProcessId(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::ProcessName() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_ProcessName(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::SessionName() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_SessionName(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::StartTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_StartTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::Connections() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_Connections(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_DiagnosticsLoopbackAEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DiagnosticsLoopbackAEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DiagnosticsLoopbackBEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DiagnosticsLoopbackBEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PingService(uint8_t pingCount, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PingService(pingCount)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PingService2(uint8_t pingCount, uint32_t timeoutMilliseconds, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PingService(pingCount, timeoutMilliseconds)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall GetInstalledTransportPlugins(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetInstalledTransportPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetInstalledMessageProcessingPlugins(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetInstalledMessageProcessingPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetActiveSessions(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetActiveSessions()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Success(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Success()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FailureReason(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FailureReason()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TotalPingRoundTripMidiClock(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TotalPingRoundTripMidiClock()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AveragePingRoundTripMidiClock(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AveragePingRoundTripMidiClock()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Responses(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Responses()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_SessionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ProcessId(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ProcessId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ProcessName(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ProcessName()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_SessionName(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionName()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_StartTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().StartTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Connections(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Connections()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - inline auto MidiDiagnostics::DiagnosticsLoopbackAEndpointDeviceId() - { - return impl::call_factory_cast([](IMidiDiagnosticsStatics const& f) { return f.DiagnosticsLoopbackAEndpointDeviceId(); }); - } - inline auto MidiDiagnostics::DiagnosticsLoopbackBEndpointDeviceId() - { - return impl::call_factory_cast([](IMidiDiagnosticsStatics const& f) { return f.DiagnosticsLoopbackBEndpointDeviceId(); }); - } - inline auto MidiDiagnostics::PingService(uint8_t pingCount) - { - return impl::call_factory([&](IMidiDiagnosticsStatics const& f) { return f.PingService(pingCount); }); - } - inline auto MidiDiagnostics::PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) - { - return impl::call_factory([&](IMidiDiagnosticsStatics const& f) { return f.PingService(pingCount, timeoutMilliseconds); }); - } - inline auto MidiReporting::GetInstalledTransportPlugins() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetInstalledTransportPlugins(); }); - } - inline auto MidiReporting::GetInstalledMessageProcessingPlugins() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetInstalledMessageProcessingPlugins(); }); - } - inline auto MidiReporting::GetActiveSessions() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetActiveSessions(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h deleted file mode 100644 index 4122a5f63..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h +++ /dev/null @@ -1,277 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::AssociationId(winrt::guid const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_AssociationId(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionA() const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_EndpointDefinitionA(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionA(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_EndpointDefinitionA(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionB() const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_EndpointDefinitionB(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionB(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_EndpointDefinitionB(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory::CreateInstance(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfigFactory)->CreateInstance(impl::bind_in(associationId), impl::bind_in(endpointDefinitionA), impl::bind_in(endpointDefinitionB), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig::AssociationId(winrt::guid const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig)->put_AssociationId(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory::CreateInstance(winrt::guid const& associationId) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfigFactory)->CreateInstance(impl::bind_in(associationId), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::IsTransportAvailable() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->get_IsTransportAvailable(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::AbstractionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->get_AbstractionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationResult result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->CreateTransientLoopbackEndpoints(*(void**)(&creationConfig), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->RemoveTransientLoopbackEndpoints(*(void**)(&deletionConfig), &result)); - return result; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_AssociationId(winrt::guid value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AssociationId(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDefinitionA()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDefinitionA(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDefinitionB()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDefinitionB(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(winrt::guid associationId, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition endpointDefinitionA, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition endpointDefinitionB, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&associationId), *reinterpret_cast(&endpointDefinitionA), *reinterpret_cast(&endpointDefinitionB))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_AssociationId(winrt::guid value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AssociationId(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(winrt::guid associationId, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&associationId))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsTransportAvailable(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsTransportAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AbstractionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AbstractionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateTransientLoopbackEndpoints(void* creationConfig, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateTransientLoopbackEndpoints(*reinterpret_cast(&creationConfig))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall RemoveTransientLoopbackEndpoints(void* deletionConfig, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().RemoveTransientLoopbackEndpoints(*reinterpret_cast(&deletionConfig))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - inline MidiLoopbackEndpointCreationConfig::MidiLoopbackEndpointCreationConfig() : - MidiLoopbackEndpointCreationConfig(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiLoopbackEndpointCreationConfig::MidiLoopbackEndpointCreationConfig(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) : - MidiLoopbackEndpointCreationConfig(impl::call_factory([&](IMidiLoopbackEndpointCreationConfigFactory const& f) { return f.CreateInstance(associationId, endpointDefinitionA, endpointDefinitionB); })) - { - } - inline MidiLoopbackEndpointDeletionConfig::MidiLoopbackEndpointDeletionConfig(winrt::guid const& associationId) : - MidiLoopbackEndpointDeletionConfig(impl::call_factory([&](IMidiLoopbackEndpointDeletionConfigFactory const& f) { return f.CreateInstance(associationId); })) - { - } - inline auto MidiLoopbackEndpointManager::IsTransportAvailable() - { - return impl::call_factory_cast([](IMidiLoopbackEndpointManagerStatics const& f) { return f.IsTransportAvailable(); }); - } - inline auto MidiLoopbackEndpointManager::AbstractionId() - { - return impl::call_factory_cast([](IMidiLoopbackEndpointManagerStatics const& f) { return f.AbstractionId(); }); - } - inline auto MidiLoopbackEndpointManager::CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) - { - return impl::call_factory([&](IMidiLoopbackEndpointManagerStatics const& f) { return f.CreateTransientLoopbackEndpoints(creationConfig); }); - } - inline auto MidiLoopbackEndpointManager::RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) - { - return impl::call_factory([&](IMidiLoopbackEndpointManagerStatics const& f) { return f.RemoveTransientLoopbackEndpoints(deletionConfig); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h deleted file mode 100644 index 7cb112476..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h +++ /dev/null @@ -1,528 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::PreferredMidiProtocol() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_PreferredMidiProtocol(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::RequestEndpointTransmitJitterReductionTimestamps() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_RequestEndpointTransmitJitterReductionTimestamps(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::RequestEndpointReceiveJitterReductionTimestamps() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_RequestEndpointReceiveJitterReductionTimestamps(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::DeviceEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_DeviceEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::FunctionBlocks() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_FunctionBlocks(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::UpdateFunctionBlock(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock const& block) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->UpdateFunctionBlock(*(void**)(&block), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::UpdateEndpointName(param::hstring const& name) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->UpdateEndpointName(*(void**)(&name), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::SuppressHandledMessages() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_SuppressHandledMessages(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::SuppressHandledMessages(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->put_SuppressHandledMessages(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->add_StreamConfigRequestReceived(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, StreamConfigRequestReceived(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->remove_StreamConfigRequestReceived(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Name(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Name(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Description() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Description(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Description(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Description(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Manufacturer() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Manufacturer(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Manufacturer(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Manufacturer(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredDeviceIdentity() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_DeclaredDeviceIdentity(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredDeviceIdentity(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_DeclaredDeviceIdentity(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredEndpointInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_DeclaredEndpointInfo(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredEndpointInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_DeclaredEndpointInfo(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::UserSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_UserSuppliedInfo(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::UserSuppliedInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_UserSuppliedInfo(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::FunctionBlocks() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_FunctionBlocks(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance2(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance2(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), impl::bind_in(declaredDeviceIdentity), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance3(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance3(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), impl::bind_in(declaredDeviceIdentity), impl::bind_in(userSuppliedInfo), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::IsTransportAvailable() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->get_IsTransportAvailable(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::AbstractionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->get_AbstractionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->CreateVirtualDevice(*(void**)(&creationConfig), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDevice{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreferredMidiProtocol(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreferredMidiProtocol()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RequestEndpointTransmitJitterReductionTimestamps(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RequestEndpointTransmitJitterReductionTimestamps()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RequestEndpointReceiveJitterReductionTimestamps(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RequestEndpointReceiveJitterReductionTimestamps()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_DeviceEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FunctionBlocks(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().FunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateFunctionBlock(void* block, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateFunctionBlock(*reinterpret_cast(&block))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateEndpointName(void* name, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateEndpointName(*reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_SuppressHandledMessages(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SuppressHandledMessages()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_SuppressHandledMessages(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().SuppressHandledMessages(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall add_StreamConfigRequestReceived(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().StreamConfigRequestReceived(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_StreamConfigRequestReceived(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().StreamConfigRequestReceived(*reinterpret_cast(&token)); - return 0; - } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Name(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Name(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Description(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Description()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Description(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Description(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Manufacturer(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Manufacturer()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Manufacturer(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Manufacturer(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredDeviceIdentity()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DeclaredDeviceIdentity(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredEndpointInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DeclaredEndpointInfo(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().UserSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().UserSuppliedInfo(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FunctionBlocks(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().FunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity declaredDeviceIdentity, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo), *reinterpret_cast(&declaredDeviceIdentity))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity declaredDeviceIdentity, struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo userSuppliedInfo, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo), *reinterpret_cast(&declaredDeviceIdentity), *reinterpret_cast(&userSuppliedInfo))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsTransportAvailable(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsTransportAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AbstractionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AbstractionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateVirtualDevice(void* creationConfig, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateVirtualDevice(*reinterpret_cast(&creationConfig))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance(name, description, manufacturer, declaredEndpointInfo); })) - { - } - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance2(name, description, manufacturer, declaredEndpointInfo, declaredDeviceIdentity); })) - { - } - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance3(name, description, manufacturer, declaredEndpointInfo, declaredDeviceIdentity, userSuppliedInfo); })) - { - } - inline auto MidiVirtualDeviceManager::IsTransportAvailable() - { - return impl::call_factory_cast([](IMidiVirtualDeviceManagerStatics const& f) { return f.IsTransportAvailable(); }); - } - inline auto MidiVirtualDeviceManager::AbstractionId() - { - return impl::call_factory_cast([](IMidiVirtualDeviceManagerStatics const& f) { return f.AbstractionId(); }); - } - inline auto MidiVirtualDeviceManager::CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) - { - return impl::call_factory([&](IMidiVirtualDeviceManagerStatics const& f) { return f.CreateVirtualDevice(creationConfig); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h deleted file mode 100644 index 3fec6b2d9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h +++ /dev/null @@ -1,162 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::IsOperatingSystemSupported() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->IsOperatingSystemSupported(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::EnsureServiceAvailable() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->EnsureServiceAvailable(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::InitializeSdkRuntime() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->InitializeSdkRuntime(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::IsCompatibleDesktopAppSdkRuntimeInstalled() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->IsCompatibleDesktopAppSdkRuntimeInstalled(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestRuntimeReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestRuntimeReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestSettingsAppReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestSettingsAppReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestConsoleAppReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestConsoleAppReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall IsOperatingSystemSupported(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsOperatingSystemSupported()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall EnsureServiceAvailable(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().EnsureServiceAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall InitializeSdkRuntime(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().InitializeSdkRuntime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsCompatibleDesktopAppSdkRuntimeInstalled(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsCompatibleDesktopAppSdkRuntimeInstalled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestRuntimeReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestRuntimeReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestSettingsAppReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestSettingsAppReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestConsoleAppReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestConsoleAppReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - inline auto MidiServicesInitializer::IsOperatingSystemSupported() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.IsOperatingSystemSupported(); }); - } - inline auto MidiServicesInitializer::EnsureServiceAvailable() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.EnsureServiceAvailable(); }); - } - inline auto MidiServicesInitializer::InitializeSdkRuntime() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.InitializeSdkRuntime(); }); - } - inline auto MidiServicesInitializer::IsCompatibleDesktopAppSdkRuntimeInstalled() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.IsCompatibleDesktopAppSdkRuntimeInstalled(); }); - } - inline auto MidiServicesInitializer::GetLatestRuntimeReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestRuntimeReleaseInstallerUri(); }); - } - inline auto MidiServicesInitializer::GetLatestSettingsAppReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestSettingsAppReleaseInstallerUri(); }); - } - inline auto MidiServicesInitializer::GetLatestConsoleAppReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestConsoleAppReleaseInstallerUri(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h deleted file mode 100644 index dc6388835..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h +++ /dev/null @@ -1,1341 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Windows.Devices.Midi.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildUtilityMessage(timestamp, status, dataOrReserved, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemMessage(timestamp, *(void**)(&group), status, midi1Byte2, midi1Byte3, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMidi1ChannelVoiceMessage(timestamp, *(void**)(&group), static_cast(status), *(void**)(&channel), byte3, byte4, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemExclusive7Message(timestamp, *(void**)(&group), status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMidi2ChannelVoiceMessage(timestamp, *(void**)(&group), static_cast(status), *(void**)(&channel), index, data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemExclusive8Message(timestamp, *(void**)(&group), static_cast(status), numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMixedDataSetChunkHeaderMessage(timestamp, *(void**)(&group), mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMixedDataSetChunkDataMessage(timestamp, *(void**)(&group), mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildFlexDataMessage(timestamp, *(void**)(&group), form, address, *(void**)(&channel), statusBank, status, word1Data, word2Data, word3Data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message(timestamp, *(void**)(&group), statusByte, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message2(timestamp, *(void**)(&group), statusByte, dataByte1, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message3(timestamp, *(void**)(&group), statusByte, dataByte1, dataByte2, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ChannelPressureMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1NoteOffMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1NoteOnMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1PitchBendChangeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1PolyphonicKeyPressureMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ProgramChangeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TimeCodeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SongPositionPointerMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SongSelectMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TuneRequestMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TimingClockMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1StartMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ContinueMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1StopMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ActiveSensingMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SystemResetMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage32MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage32MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage64MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage64MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage96MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage96MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage128MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage128MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetMessageTypeFromMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetMessageTypeFromMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetPacketTypeFromMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetPacketTypeFromMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->MessageTypeHasGroupField(static_cast(messageType), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ReplaceGroupInMessageFirstWord(word0, *(void**)(&newGroup), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetGroupFromMessageFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetGroupFromMessageFirstWord(word0, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromUtilityMessage(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromUtilityMessage(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromMidi1ChannelVoiceMessage(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusBankFromFlexDataMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromFlexDataMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromFlexDataMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromSystemCommonMessage(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromSystemCommonMessage(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromDataMessage64FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromDataMessage64FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetNumberOfBytesFromDataMessage64FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromDataMessage128FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromDataMessage128FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetNumberOfBytesFromDataMessage128FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->MessageTypeHasChannelField(static_cast(messageType), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ReplaceChannelInMessageFirstWord(word0, *(void**)(&newChannel), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetChannelFromMessageFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetChannelFromMessageFirstWord(word0, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiChannel{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetFormFromStreamMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetFormFromStreamMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromStreamMessageFirstWord(uint32_t word0) const - { - uint16_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromStreamMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetMessageDisplayNameFromFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetMessageDisplayNameFromFirstWord(word0, &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetPacketListFromWordList(timestamp, *(void**)(&words), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetWordListFromPacketList(param::iterable const& words) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetWordListFromPacketList(*(void**)(&words), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, static_cast(request), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointNameNotificationMessages(timestamp, *(void**)(&name), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildProductInstanceIdNotificationMessages(timestamp, *(void**)(&productInstanceId), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseEndpointNameNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseEndpointNameNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseProductInstanceIdNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseProductInstanceIdNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, static_cast(requestFlags), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, static_cast(uiHint), static_cast(midi10), static_cast(direction), firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, *(void**)(&name), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseFunctionBlockNameNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildUtilityMessage(timestamp, status, dataOrReserved)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemMessage(uint64_t timestamp, void* group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemMessage(timestamp, *reinterpret_cast(&group), status, midi1Byte2, midi1Byte3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMidi1ChannelVoiceMessage(uint64_t timestamp, void* group, int32_t status, void* channel, uint8_t byte3, uint8_t byte4, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMidi1ChannelVoiceMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), *reinterpret_cast(&channel), byte3, byte4)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemExclusive7Message(uint64_t timestamp, void* group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemExclusive7Message(timestamp, *reinterpret_cast(&group), status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMidi2ChannelVoiceMessage(uint64_t timestamp, void* group, int32_t status, void* channel, uint16_t index, uint32_t data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMidi2ChannelVoiceMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), *reinterpret_cast(&channel), index, data)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemExclusive8Message(uint64_t timestamp, void* group, int32_t status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemExclusive8Message(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, void* group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMixedDataSetChunkHeaderMessage(timestamp, *reinterpret_cast(&group), mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMixedDataSetChunkDataMessage(uint64_t timestamp, void* group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMixedDataSetChunkDataMessage(timestamp, *reinterpret_cast(&group), mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFlexDataMessage(uint64_t timestamp, void* group, uint8_t form, uint8_t address, void* channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFlexDataMessage(timestamp, *reinterpret_cast(&group), form, address, *reinterpret_cast(&channel), statusBank, status, word1Data, word2Data, word3Data)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall ConvertMidi1Message(uint64_t timestamp, void* group, uint8_t statusByte, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1Message2(uint64_t timestamp, void* group, uint8_t statusByte, uint8_t dataByte1, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte, dataByte1)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1Message3(uint64_t timestamp, void* group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte, dataByte1, dataByte2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ChannelPressureMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ChannelPressureMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1NoteOffMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1NoteOffMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1NoteOnMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1NoteOnMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1PitchBendChangeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1PolyphonicKeyPressureMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ProgramChangeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ProgramChangeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TimeCodeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TimeCodeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SongPositionPointerMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SongSelectMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SongSelectMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TuneRequestMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TuneRequestMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TimingClockMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TimingClockMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1StartMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1StartMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ContinueMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ContinueMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1StopMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1StopMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ActiveSensingMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ActiveSensingMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SystemResetMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SystemResetMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall ValidateMessage32MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage32MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage64MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage64MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage96MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage96MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage128MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage128MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessageTypeFromMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessageTypeFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetPacketTypeFromMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetPacketTypeFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall MessageTypeHasGroupField(int32_t messageType, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().MessageTypeHasGroupField(*reinterpret_cast(&messageType))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ReplaceGroupInMessageFirstWord(uint32_t word0, void* newGroup, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ReplaceGroupInMessageFirstWord(word0, *reinterpret_cast(&newGroup))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetGroupFromMessageFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetGroupFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromUtilityMessage(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromUtilityMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromMidi1ChannelVoiceMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusBankFromFlexDataMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromFlexDataMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromFlexDataMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromSystemCommonMessage(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromSystemCommonMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromDataMessage64FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromDataMessage64FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetNumberOfBytesFromDataMessage64FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromDataMessage128FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromDataMessage128FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetNumberOfBytesFromDataMessage128FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall MessageTypeHasChannelField(int32_t messageType, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().MessageTypeHasChannelField(*reinterpret_cast(&messageType))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ReplaceChannelInMessageFirstWord(uint32_t word0, void* newChannel, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ReplaceChannelInMessageFirstWord(word0, *reinterpret_cast(&newChannel))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetChannelFromMessageFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetChannelFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetFormFromStreamMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetFormFromStreamMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromStreamMessageFirstWord(uint32_t word0, uint16_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromStreamMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessageDisplayNameFromFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessageDisplayNameFromFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetPacketListFromWordList(uint64_t timestamp, void* words, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetPacketListFromWordList(timestamp, *reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetWordListFromPacketList(void* words, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetWordListFromPacketList(*reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, uint32_t request, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, *reinterpret_cast(&request))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildEndpointNameNotificationMessages(uint64_t timestamp, void* name, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildEndpointNameNotificationMessages(timestamp, *reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildProductInstanceIdNotificationMessages(uint64_t timestamp, void* productInstanceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildProductInstanceIdNotificationMessages(timestamp, *reinterpret_cast(&productInstanceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseEndpointNameNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseEndpointNameNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseProductInstanceIdNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseProductInstanceIdNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, uint32_t requestFlags, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, *reinterpret_cast(&requestFlags))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, int32_t uiHint, int32_t midi10, int32_t direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, *reinterpret_cast(&uiHint), *reinterpret_cast(&midi10), *reinterpret_cast(&direction), firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, void* name, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, *reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseFunctionBlockNameNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseFunctionBlockNameNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - constexpr auto operator|(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiEndpointDiscoveryRequests const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left ^ right; - return left; - } - constexpr auto operator|(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiFunctionBlockDiscoveryRequests const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left ^ right; - return left; - } - inline auto MidiMessageBuilder::BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildUtilityMessage(timestamp, status, dataOrReserved); }); - } - inline auto MidiMessageBuilder::BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemMessage(timestamp, group, status, midi1Byte2, midi1Byte3); }); - } - inline auto MidiMessageBuilder::BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMidi1ChannelVoiceMessage(timestamp, group, status, channel, byte3, byte4); }); - } - inline auto MidiMessageBuilder::BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemExclusive7Message(timestamp, group, status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5); }); - } - inline auto MidiMessageBuilder::BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMidi2ChannelVoiceMessage(timestamp, group, status, channel, index, data); }); - } - inline auto MidiMessageBuilder::BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemExclusive8Message(timestamp, group, status, numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12); }); - } - inline auto MidiMessageBuilder::BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMixedDataSetChunkHeaderMessage(timestamp, group, mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2); }); - } - inline auto MidiMessageBuilder::BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMixedDataSetChunkDataMessage(timestamp, group, mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13); }); - } - inline auto MidiMessageBuilder::BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildFlexDataMessage(timestamp, group, form, address, channel, statusBank, status, word1Data, word2Data, word3Data); }); - } - inline auto MidiMessageBuilder::BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte, dataByte1); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte, dataByte1, dataByte2); }); - } - inline auto MidiMessageConverter::ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ChannelPressureMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1NoteOffMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1NoteOnMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1PitchBendChangeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1PolyphonicKeyPressureMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ProgramChangeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TimeCodeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SongPositionPointerMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SongSelectMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TuneRequestMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TimingClockMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1StartMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ContinueMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1StopMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ActiveSensingMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SystemResetMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageHelper::ValidateMessage32MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage32MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage64MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage64MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage96MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage96MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage128MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage128MessageType(word0); }); - } - inline auto MidiMessageHelper::GetMessageTypeFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetMessageTypeFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetPacketTypeFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetPacketTypeFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.MessageTypeHasGroupField(messageType); }); - } - inline auto MidiMessageHelper::ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ReplaceGroupInMessageFirstWord(word0, newGroup); }); - } - inline auto MidiMessageHelper::GetGroupFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetGroupFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromUtilityMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromUtilityMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromMidi1ChannelVoiceMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusBankFromFlexDataMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromFlexDataMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromFlexDataMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromSystemCommonMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromSystemCommonMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromDataMessage64FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromDataMessage64FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetNumberOfBytesFromDataMessage64FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromDataMessage128FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromDataMessage128FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetNumberOfBytesFromDataMessage128FirstWord(word0); }); - } - inline auto MidiMessageHelper::MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.MessageTypeHasChannelField(messageType); }); - } - inline auto MidiMessageHelper::ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ReplaceChannelInMessageFirstWord(word0, newChannel); }); - } - inline auto MidiMessageHelper::GetChannelFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetChannelFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetFormFromStreamMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetFormFromStreamMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromStreamMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromStreamMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetMessageDisplayNameFromFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetMessageDisplayNameFromFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetPacketListFromWordList(timestamp, words); }); - } - inline auto MidiMessageHelper::GetWordListFromPacketList(param::iterable const& words) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetWordListFromPacketList(words); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, request); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointNameNotificationMessages(timestamp, name); }); - } - inline auto MidiStreamMessageBuilder::BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildProductInstanceIdNotificationMessages(timestamp, productInstanceId); }); - } - inline auto MidiStreamMessageBuilder::ParseEndpointNameNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseEndpointNameNotificationMessages(messages); }); - } - inline auto MidiStreamMessageBuilder::ParseProductInstanceIdNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseProductInstanceIdNotificationMessages(messages); }); - } - inline auto MidiStreamMessageBuilder::BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, requestFlags); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, uiHint, midi10, direction, firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, name); }); - } - inline auto MidiStreamMessageBuilder::ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseFunctionBlockNameNotificationMessages(messages); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h deleted file mode 100644 index e221d614e..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h +++ /dev/null @@ -1,192 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics::UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) const - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponse result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfigStatics)->UpdateTransportPluginConfig(*(void**)(&configUpdate), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics::UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) const - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponse result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfigStatics)->UpdateProcessingPluginConfig(*(void**)(&configUpdate), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::MessageProcessingPluginId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_MessageProcessingPluginId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::PluginInstanceId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_PluginInstanceId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::IsFromCurrentConfigFile() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_IsFromCurrentConfigFile(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::GetConfigJson() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->GetConfigJson(&result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::TransportId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->get_TransportId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::IsFromCurrentConfigFile() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->get_IsFromCurrentConfigFile(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::GetConfigJson() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->GetConfigJson(&result)); - return hstring{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall UpdateTransportPluginConfig(void* configUpdate, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateTransportPluginConfig(*reinterpret_cast(&configUpdate))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateProcessingPluginConfig(void* configUpdate, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateProcessingPluginConfig(*reinterpret_cast(&configUpdate))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageProcessingPluginId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageProcessingPluginId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PluginInstanceId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PluginInstanceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsFromCurrentConfigFile(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsFromCurrentConfigFile()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetConfigJson(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetConfigJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; - template - struct produce : produce_base - { - int32_t __stdcall get_TransportId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TransportId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsFromCurrentConfigFile(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsFromCurrentConfigFile()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetConfigJson(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetConfigJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - inline auto MidiServiceConfig::UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) - { - return impl::call_factory([&](IMidiServiceConfigStatics const& f) { return f.UpdateTransportPluginConfig(configUpdate); }); - } - inline auto MidiServiceConfig::UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) - { - return impl::call_factory([&](IMidiServiceConfigStatics const& f) { return f.UpdateProcessingPluginConfig(configUpdate); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h deleted file mode 100644 index 3a83fd447..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h +++ /dev/null @@ -1,3689 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/impl/Windows.Devices.Enumeration.2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::Index() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->get_Index(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::Index(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->put_Index(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::DisplayValue() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->get_DisplayValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory::CreateInstance(uint8_t index) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelFactory)->CreateInstance(index, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiChannel{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::IsValidIndex(uint8_t index) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->IsValidIndex(index, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::Now() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_Now(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::TimestampConstantSendImmediately() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_TimestampConstantSendImmediately(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::TimestampFrequency() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_TimestampFrequency(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToNanoseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToMicroseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToMilliseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToSeconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToSeconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByTicks(timestampValue, offsetTicks, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampBySeconds(timestampValue, offsetSeconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::ConnectionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_ConnectionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::ConnectedEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_ConnectedEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Tag() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_Tag(&value)); - return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Tag(winrt::Windows::Foundation::IInspectable const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->put_Tag(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::LogMessageDataValidationErrorDetails() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_LogMessageDataValidationErrorDetails(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::LogMessageDataValidationErrorDetails(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->put_LogMessageDataValidationErrorDetails(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Settings() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_Settings(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::IsOpen() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_IsOpen(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Open() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->Open(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::IsAutoReconnectEnabled() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_IsAutoReconnectEnabled(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::MessageProcessingPlugins() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_MessageProcessingPlugins(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::AddMessageProcessingPlugin(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin const& plugin) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->AddMessageProcessingPlugin(*(void**)(&plugin))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::RemoveMessageProcessingPlugin(winrt::guid const& id) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->RemoveMessageProcessingPlugin(impl::bind_in(id))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessagePacket(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket const& message) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessagePacket(*(void**)(&message), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageStruct(timestamp, wordCount, impl::bind_in(message), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, array_view words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWordArray(timestamp, startIndex, wordCount, words.size(), get_abi(words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords(timestamp, word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords2(timestamp, word0, word1, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords3(timestamp, word0, word1, word2, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords4(timestamp, word0, word1, word2, word3, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageBuffer(timestamp, byteOffset, byteCount, *(void**)(&buffer), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesWordList(uint64_t timestamp, param::iterable const& words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesWordList(timestamp, *(void**)(&words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, array_view words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesWordArray(timestamp, startIndex, wordCount, words.size(), get_abi(words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesPacketList(param::iterable const& messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesPacketList(*(void**)(&messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesStructList(uint64_t timestamp, param::iterable const& messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesStructList(timestamp, *(void**)(&messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, array_view messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesStructArray(timestamp, startIndex, messageCount, messages.size(), get_abi(messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesBuffer(timestamp, byteOffset, byteCount, *(void**)(&buffer), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings::SettingsJson() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings)->get_SettingsJson(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->add_EndpointDeviceDisconnected(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EndpointDeviceDisconnected(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->remove_EndpointDeviceDisconnected(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->add_EndpointDeviceReconnected(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EndpointDeviceReconnected(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->remove_EndpointDeviceReconnected(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::GetDeviceSelector() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->GetDeviceSelector(&result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->SendMessageSucceeded(static_cast(sendResult), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->SendMessageFailed(static_cast(sendResult), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::ContainerId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_ContainerId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeviceInstanceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeviceInstanceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::EndpointPurpose() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDevicePurpose value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_EndpointPurpose(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredEndpointInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredEndpointInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredEndpointInfoLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredEndpointInfoLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredDeviceIdentity() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredDeviceIdentity(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredDeviceIdentityLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredDeviceIdentityLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredStreamConfiguration() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredStreamConfiguration result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredStreamConfiguration(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredStreamConfigurationLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredStreamConfigurationLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredFunctionBlocks() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredFunctionBlocks(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredFunctionBlocksLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredFunctionBlocksLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetGroupTerminalBlocks() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetGroupTerminalBlocks(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetUserSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetUserSuppliedInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetTransportSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointTransportSuppliedInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetTransportSuppliedInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetParentDeviceInformation() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetParentDeviceInformation(&result)); - return winrt::Windows::Devices::Enumeration::DeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetContainerDeviceInformation() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetContainerDeviceInformation(&result)); - return winrt::Windows::Devices::Enumeration::DeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::Properties() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_Properties(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs::AddedDevice() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs)->get_AddedDevice(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs::DeviceInformationUpdate() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs)->get_DeviceInformationUpdate(&value)); - return winrt::Windows::Devices::Enumeration::DeviceInformationUpdate{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->CreateFromEndpointDeviceId(*(void**)(&endpointDeviceId), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll2(static_cast(sortOrder), &result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll3(static_cast(sortOrder), static_cast(endpointTypesToInclude), &result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::EndpointInterfaceClass() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->get_EndpointInterfaceClass(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::GetAdditionalPropertiesList() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->GetAdditionalPropertiesList(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->DeviceMatchesFilter(*(void**)(&deviceInformation), static_cast(endpointTypesToInclude), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsNameUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsNameUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsEndpointInformationUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsEndpointInformationUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsDeviceIdentityUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsDeviceIdentityUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsStreamConfigurationUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsStreamConfigurationUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::AreFunctionBlocksUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_AreFunctionBlocksUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsUserMetadataUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsUserMetadataUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::AreAdditionalCapabilitiesUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_AreAdditionalCapabilitiesUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::DeviceInformationUpdate() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_DeviceInformationUpdate(&value)); - return winrt::Windows::Devices::Enumeration::DeviceInformationUpdate{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Start() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->Start()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stop() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->Stop()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumeratedEndpointDevices() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->get_EnumeratedEndpointDevices(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Status() const - { - winrt::Windows::Devices::Enumeration::DeviceWatcherStatus value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->get_Status(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Added(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Added(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Added(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Removed(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Removed(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Removed(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Updated(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Updated(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Updated(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_EnumerationCompleted(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EnumerationCompleted(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_EnumerationCompleted(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Stopped(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Stopped(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Stopped(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics::Create() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcherStatics)->Create(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceWatcher{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics::Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcherStatics)->Create2(static_cast(endpointFilters), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceWatcher{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::PluginId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_PluginId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::PluginName() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_PluginName(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::PluginName(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_PluginName(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::PluginTag() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_PluginTag(&value)); - return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::PluginTag(winrt::Windows::Foundation::IInspectable const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_PluginTag(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::IsEnabled() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_IsEnabled(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::IsEnabled(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_IsEnabled(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Initialize(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource const& endpointConnection) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->Initialize(*(void**)(&endpointConnection))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::OnEndpointConnectionOpened() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->OnEndpointConnectionOpened()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::ProcessIncomingMessage(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageReceivedEventArgs const& args, bool& skipFurtherListeners, bool& skipMainMessageReceivedEvent) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->ProcessIncomingMessage(*(void**)(&args), &skipFurtherListeners, &skipMainMessageReceivedEvent)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Cleanup() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->Cleanup()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsReadOnly() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_IsReadOnly(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Number() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Number(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Number(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Number(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Name(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Name(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsActive() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_IsActive(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsActive(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_IsActive(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Direction() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Direction(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Direction(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Direction(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::UIHint() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_UIHint(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::UIHint(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_UIHint(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::RepresentsMidi10Connection() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_RepresentsMidi10Connection(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::RepresentsMidi10Connection(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_RepresentsMidi10Connection(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::FirstGroupIndex() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_FirstGroupIndex(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::FirstGroupIndex(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_FirstGroupIndex(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::GroupCount() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_GroupCount(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::GroupCount(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_GroupCount(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->IncludesGroup(*(void**)(&group), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MidiCIMessageVersionFormat() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_MidiCIMessageVersionFormat(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MidiCIMessageVersionFormat(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_MidiCIMessageVersionFormat(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MaxSystemExclusive8Streams() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_MaxSystemExclusive8Streams(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MaxSystemExclusive8Streams(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_MaxSystemExclusive8Streams(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::Index() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->get_Index(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::Index(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->put_Index(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::DisplayValue() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->get_DisplayValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory::CreateInstance(uint8_t index) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupFactory)->CreateInstance(index, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::IsValidIndex(uint8_t index) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->IsValidIndex(index, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Number() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Number(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Direction() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiGroupTerminalBlockDirection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Direction(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Protocol() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiGroupTerminalBlockProtocol value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Protocol(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::FirstGroupIndex() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_FirstGroupIndex(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::GroupCount() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_GroupCount(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->IncludesGroup(*(void**)(&group), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::MaxDeviceInputBandwidthIn4KBitsPerSecondUnits() const - { - uint16_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits() const - { - uint16_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::CalculatedMaxDeviceInputBandwidthBitsPerSecond() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::CalculatedMaxDeviceOutputBandwidthBitsPerSecond() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::AsEquivalentFunctionBlock() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->AsEquivalentFunctionBlock(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word2() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word2(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word3() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word3(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word3(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word3(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance2(timestamp, word0, word1, word2, word3, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Factory)->CreateInstance2(timestamp, word0, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance2(timestamp, word0, word1, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word2() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word2(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance2(timestamp, word0, word1, word2, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::PacketType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_PacketType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::MessageType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_MessageType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::PeekFirstWord() const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->PeekFirstWord(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::GetMessagePacket() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->GetMessagePacket(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillWords(uint32_t& word0, uint32_t& word1, uint32_t& word2, uint32_t& word3) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillWords(&word0, &word1, &word2, &word3, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessageStruct(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct& message) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessageStruct(impl::bind_out(message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage32(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage32(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage64(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage64(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage96(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage96(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage128(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage128(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillWordArray(uint32_t startIndex, array_view words) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillWordArray(startIndex, words.size(), put_abi(words), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillByteArray(uint32_t startIndex, array_view bytes) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillByteArray(startIndex, bytes.size(), put_abi(bytes), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillBuffer(byteOffset, *(void**)(&buffer), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::AppendWordsToList(param::vector const& wordList) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->AppendWordsToList(*(void**)(&wordList), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventSource)->add_MessageReceived(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, MessageReceived(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventSource)->remove_MessageReceived(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::SessionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_SessionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::IsOpen() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_IsOpen(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::Connections() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_Connections(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection(*(void**)(&endpointDeviceId), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection2(*(void**)(&endpointDeviceId), autoReconnect, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect, winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings const& settings) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection3(*(void**)(&endpointDeviceId), autoReconnect, *(void**)(&settings), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::DisconnectEndpointConnection(winrt::guid const& endpointConnectionId) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->DisconnectEndpointConnection(impl::bind_in(endpointConnectionId))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::UpdateName(param::hstring const& newName) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->UpdateName(*(void**)(&newName), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics::Create(param::hstring const& sessionName) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSessionStatics)->Create(*(void**)(&sessionName), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiSession{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::Timestamp(uint64_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->put_Timestamp(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::MessageType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_MessageType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::MessageType(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->put_MessageType(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::PacketType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_PacketType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::PeekFirstWord() const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->PeekFirstWord(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::GetAllWords() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->GetAllWords(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::AppendAllMessageWordsToList(param::vector const& targetList) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->AppendAllMessageWordsToList(*(void**)(&targetList), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->FillBuffer(byteOffset, *(void**)(&buffer), &result)); - return result; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Index(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Index()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Index(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Index(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DisplayValue(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DisplayValue()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint8_t index, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsValidIndex(uint8_t index, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsValidIndex(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Now(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Now()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TimestampConstantSendImmediately(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TimestampConstantSendImmediately()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TimestampFrequency(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TimestampFrequency()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToNanoseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToNanoseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToMicroseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToMicroseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToMilliseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToMilliseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToSeconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToSeconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByTicks(timestampValue, offsetTicks)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampBySeconds(timestampValue, offsetSeconds)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ConnectionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ConnectionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ConnectedEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ConnectedEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Tag(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Tag()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Tag(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Tag(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LogMessageDataValidationErrorDetails(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LogMessageDataValidationErrorDetails()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_LogMessageDataValidationErrorDetails(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().LogMessageDataValidationErrorDetails(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Settings(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Settings()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsOpen(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsOpen()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Open(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Open()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsAutoReconnectEnabled(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsAutoReconnectEnabled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageProcessingPlugins(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().MessageProcessingPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AddMessageProcessingPlugin(void* plugin) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AddMessageProcessingPlugin(*reinterpret_cast(&plugin)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall RemoveMessageProcessingPlugin(winrt::guid id) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().RemoveMessageProcessingPlugin(*reinterpret_cast(&id)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessagePacket(void* message, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessagePacket(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct const& message, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageStruct(timestamp, wordCount, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, uint32_t __wordsSize, uint32_t* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWordArray(timestamp, startIndex, wordCount, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords3(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1, word2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords4(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1, word2, word3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, void* buffer, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageBuffer(timestamp, byteOffset, byteCount, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesWordList(uint64_t timestamp, void* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesWordList(timestamp, *reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, uint32_t __wordsSize, uint32_t* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesWordArray(timestamp, startIndex, wordCount, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesPacketList(void* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesPacketList(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesStructList(uint64_t timestamp, void* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesStructList(timestamp, *reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, uint32_t __messagesSize, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesStructArray(timestamp, startIndex, messageCount, array_view(reinterpret_cast(messages), reinterpret_cast(messages) + __messagesSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, void* buffer, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesBuffer(timestamp, byteOffset, byteCount, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_SettingsJson(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SettingsJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; - template - struct produce : produce_base - { - int32_t __stdcall add_EndpointDeviceDisconnected(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EndpointDeviceDisconnected(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EndpointDeviceDisconnected(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDeviceDisconnected(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_EndpointDeviceReconnected(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EndpointDeviceReconnected(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EndpointDeviceReconnected(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDeviceReconnected(*reinterpret_cast(&token)); - return 0; - } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall GetDeviceSelector(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeviceSelector()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMessageSucceeded(uint32_t sendResult, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMessageSucceeded(*reinterpret_cast(&sendResult))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMessageFailed(uint32_t sendResult, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMessageFailed(*reinterpret_cast(&sendResult))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ContainerId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ContainerId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInstanceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInstanceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointPurpose(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointPurpose()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredEndpointInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredEndpointInfoLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredEndpointInfoLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredDeviceIdentity()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredDeviceIdentityLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredDeviceIdentityLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredStreamConfiguration(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredStreamConfiguration()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredStreamConfigurationLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredStreamConfigurationLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredFunctionBlocks(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetDeclaredFunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredFunctionBlocksLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredFunctionBlocksLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetGroupTerminalBlocks(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetGroupTerminalBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetUserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetUserSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetTransportSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetTransportSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetParentDeviceInformation(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetParentDeviceInformation()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetContainerDeviceInformation(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetContainerDeviceInformation()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Properties(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Properties()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AddedDevice(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AddedDevice()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInformationUpdate(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInformationUpdate()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromEndpointDeviceId(void* endpointDeviceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromEndpointDeviceId(*reinterpret_cast(&endpointDeviceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll2(int32_t sortOrder, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll(*reinterpret_cast(&sortOrder))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll3(int32_t sortOrder, uint32_t endpointTypesToInclude, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll(*reinterpret_cast(&sortOrder), *reinterpret_cast(&endpointTypesToInclude))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointInterfaceClass(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointInterfaceClass()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetAdditionalPropertiesList(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetAdditionalPropertiesList()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall DeviceMatchesFilter(void* deviceInformation, uint32_t endpointTypesToInclude, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().DeviceMatchesFilter(*reinterpret_cast(&deviceInformation), *reinterpret_cast(&endpointTypesToInclude))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsNameUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsNameUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsEndpointInformationUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsEndpointInformationUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsDeviceIdentityUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsDeviceIdentityUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsStreamConfigurationUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsStreamConfigurationUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AreFunctionBlocksUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AreFunctionBlocksUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsUserMetadataUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsUserMetadataUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AreAdditionalCapabilitiesUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AreAdditionalCapabilitiesUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInformationUpdate(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInformationUpdate()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Start() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Start(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Stop() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Stop(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EnumeratedEndpointDevices(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().EnumeratedEndpointDevices()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Status(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Status()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall add_Added(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Added(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Added(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Added(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Removed(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Removed(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Removed(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Removed(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Updated(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Updated(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Updated(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Updated(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_EnumerationCompleted(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EnumerationCompleted(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EnumerationCompleted(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EnumerationCompleted(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Stopped(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Stopped(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Stopped(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Stopped(*reinterpret_cast(&token)); - return 0; - } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Create(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Create2(uint32_t endpointFilters, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create(*reinterpret_cast(&endpointFilters))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_PluginId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PluginId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PluginName(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PluginName()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PluginName(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PluginName(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PluginTag(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PluginTag()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PluginTag(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PluginTag(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsEnabled(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsEnabled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IsEnabled(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IsEnabled(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Initialize(void* endpointConnection) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Initialize(*reinterpret_cast(&endpointConnection)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OnEndpointConnectionOpened() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().OnEndpointConnectionOpened(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ProcessIncomingMessage(void* args, bool* skipFurtherListeners, bool* skipMainMessageReceivedEvent) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().ProcessIncomingMessage(*reinterpret_cast(&args), *skipFurtherListeners, *skipMainMessageReceivedEvent); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Cleanup() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Cleanup(); - return 0; - } - catch (...) { return to_hresult(); } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsReadOnly(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsReadOnly()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Number(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Number()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Number(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Number(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Name(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Name(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsActive(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsActive()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IsActive(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IsActive(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Direction(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Direction()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Direction(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Direction(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_UIHint(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().UIHint()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_UIHint(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().UIHint(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RepresentsMidi10Connection(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RepresentsMidi10Connection()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_RepresentsMidi10Connection(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().RepresentsMidi10Connection(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FirstGroupIndex(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FirstGroupIndex()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_FirstGroupIndex(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().FirstGroupIndex(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_GroupCount(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().GroupCount()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_GroupCount(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().GroupCount(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IncludesGroup(void* group, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IncludesGroup(*reinterpret_cast(&group))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MidiCIMessageVersionFormat(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MidiCIMessageVersionFormat()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MidiCIMessageVersionFormat(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MidiCIMessageVersionFormat(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxSystemExclusive8Streams(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxSystemExclusive8Streams()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MaxSystemExclusive8Streams(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MaxSystemExclusive8Streams(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Index(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Index()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Index(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Index(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DisplayValue(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DisplayValue()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint8_t index, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsValidIndex(uint8_t index, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsValidIndex(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Number(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Number()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Direction(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Direction()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Protocol(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Protocol()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FirstGroupIndex(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FirstGroupIndex()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_GroupCount(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().GroupCount()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IncludesGroup(void* group, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IncludesGroup(*reinterpret_cast(&group))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(uint16_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxDeviceInputBandwidthIn4KBitsPerSecondUnits()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(uint16_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CalculatedMaxDeviceInputBandwidthBitsPerSecond()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CalculatedMaxDeviceOutputBandwidthBitsPerSecond()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AsEquivalentFunctionBlock(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AsEquivalentFunctionBlock()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word2(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word2(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word2(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word3(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word3()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word3(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word3(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, word2, word3, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word2(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word2(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word2(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, word2, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PacketType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PacketType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PeekFirstWord(uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PeekFirstWord()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessagePacket(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessagePacket()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillWords(uint32_t* word0, uint32_t* word1, uint32_t* word2, uint32_t* word3, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillWords(*word0, *word1, *word2, *word3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessageStruct(struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct* message, uint8_t* result) noexcept final try - { - zero_abi(message); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessageStruct(*reinterpret_cast(message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage32(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage32(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage64(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage64(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage96(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage96(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage128(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage128(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillWordArray(uint32_t startIndex, uint32_t __wordsSize, uint32_t* words, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillWordArray(startIndex, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillByteArray(uint32_t startIndex, uint32_t __bytesSize, uint8_t* bytes, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillByteArray(startIndex, array_view(reinterpret_cast(bytes), reinterpret_cast(bytes) + __bytesSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillBuffer(uint32_t byteOffset, void* buffer, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillBuffer(byteOffset, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AppendWordsToList(void* wordList, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AppendWordsToList(*reinterpret_cast const*>(&wordList))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall add_MessageReceived(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().MessageReceived(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_MessageReceived(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().MessageReceived(*reinterpret_cast(&token)); - return 0; - } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_SessionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsOpen(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsOpen()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Connections(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Connections()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection(void* endpointDeviceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection2(void* endpointDeviceId, bool autoReconnect, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId), autoReconnect)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection3(void* endpointDeviceId, bool autoReconnect, void* settings, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId), autoReconnect, *reinterpret_cast(&settings))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall DisconnectEndpointConnection(winrt::guid endpointConnectionId) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DisconnectEndpointConnection(*reinterpret_cast(&endpointConnectionId)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateName(void* newName, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateName(*reinterpret_cast(&newName))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Create(void* sessionName, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create(*reinterpret_cast(&sessionName))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Timestamp(uint64_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Timestamp(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MessageType(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MessageType(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PacketType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PacketType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PeekFirstWord(uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PeekFirstWord()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetAllWords(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetAllWords()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AppendAllMessageWordsToList(void* targetList, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AppendAllMessageWordsToList(*reinterpret_cast const*>(&targetList))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillBuffer(uint32_t byteOffset, void* buffer, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillBuffer(byteOffset, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - }; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - constexpr auto operator|(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiEndpointDeviceInformationFilters const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left ^ right; - return left; - } - constexpr auto operator|(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiSendMessageResults const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left ^ right; - return left; - } - inline MidiChannel::MidiChannel(uint8_t index) : - MidiChannel(impl::call_factory([&](IMidiChannelFactory const& f) { return f.CreateInstance(index); })) - { - } - inline auto MidiChannel::ShortLabel() - { - return impl::call_factory_cast([](IMidiChannelStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiChannel::LongLabel() - { - return impl::call_factory_cast([](IMidiChannelStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiChannel::IsValidIndex(uint8_t index) - { - return impl::call_factory([&](IMidiChannelStatics const& f) { return f.IsValidIndex(index); }); - } - inline auto MidiClock::Now() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.Now(); }); - } - inline auto MidiClock::TimestampConstantSendImmediately() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.TimestampConstantSendImmediately(); }); - } - inline auto MidiClock::TimestampFrequency() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.TimestampFrequency(); }); - } - inline auto MidiClock::ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToNanoseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToMicroseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToMilliseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToSeconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToSeconds(timestampValue); }); - } - inline auto MidiClock::OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByTicks(timestampValue, offsetTicks); }); - } - inline auto MidiClock::OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds); }); - } - inline auto MidiClock::OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds); }); - } - inline auto MidiClock::OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampBySeconds(timestampValue, offsetSeconds); }); - } - inline auto MidiEndpointConnection::GetDeviceSelector() - { - return impl::call_factory_cast([](IMidiEndpointConnectionStatics const& f) { return f.GetDeviceSelector(); }); - } - inline auto MidiEndpointConnection::SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) - { - return impl::call_factory([&](IMidiEndpointConnectionStatics const& f) { return f.SendMessageSucceeded(sendResult); }); - } - inline auto MidiEndpointConnection::SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) - { - return impl::call_factory([&](IMidiEndpointConnectionStatics const& f) { return f.SendMessageFailed(sendResult); }); - } - inline auto MidiEndpointDeviceInformation::CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.CreateFromEndpointDeviceId(endpointDeviceId); }); - } - inline auto MidiEndpointDeviceInformation::FindAll() - { - return impl::call_factory_cast(*)(IMidiEndpointDeviceInformationStatics const&), MidiEndpointDeviceInformation, IMidiEndpointDeviceInformationStatics>([](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(); }); - } - inline auto MidiEndpointDeviceInformation::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(sortOrder); }); - } - inline auto MidiEndpointDeviceInformation::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(sortOrder, endpointTypesToInclude); }); - } - inline auto MidiEndpointDeviceInformation::EndpointInterfaceClass() - { - return impl::call_factory_cast([](IMidiEndpointDeviceInformationStatics const& f) { return f.EndpointInterfaceClass(); }); - } - inline auto MidiEndpointDeviceInformation::GetAdditionalPropertiesList() - { - return impl::call_factory_cast(*)(IMidiEndpointDeviceInformationStatics const&), MidiEndpointDeviceInformation, IMidiEndpointDeviceInformationStatics>([](IMidiEndpointDeviceInformationStatics const& f) { return f.GetAdditionalPropertiesList(); }); - } - inline auto MidiEndpointDeviceInformation::DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.DeviceMatchesFilter(deviceInformation, endpointTypesToInclude); }); - } - inline auto MidiEndpointDeviceWatcher::Create() - { - return impl::call_factory_cast([](IMidiEndpointDeviceWatcherStatics const& f) { return f.Create(); }); - } - inline auto MidiEndpointDeviceWatcher::Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) - { - return impl::call_factory([&](IMidiEndpointDeviceWatcherStatics const& f) { return f.Create(endpointFilters); }); - } - inline MidiFunctionBlock::MidiFunctionBlock() : - MidiFunctionBlock(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiGroup::MidiGroup(uint8_t index) : - MidiGroup(impl::call_factory([&](IMidiGroupFactory const& f) { return f.CreateInstance(index); })) - { - } - inline auto MidiGroup::ShortLabel() - { - return impl::call_factory_cast([](IMidiGroupStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiGroup::LongLabel() - { - return impl::call_factory_cast([](IMidiGroupStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiGroup::IsValidIndex(uint8_t index) - { - return impl::call_factory([&](IMidiGroupStatics const& f) { return f.IsValidIndex(index); }); - } - inline MidiMessage128::MidiMessage128() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage128::MidiMessage128(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, word2, word3, baseInterface, innerInterface); }); - } - inline MidiMessage128::MidiMessage128(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage128::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage128Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage32::MidiMessage32() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage32Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage32::MidiMessage32(uint64_t timestamp, uint32_t word0) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage32Factory const& f) { return f.CreateInstance2(timestamp, word0, baseInterface, innerInterface); }); - } - inline auto MidiMessage32::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage32Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage64::MidiMessage64() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage64::MidiMessage64(uint64_t timestamp, uint32_t word0, uint32_t word1) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, baseInterface, innerInterface); }); - } - inline MidiMessage64::MidiMessage64(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage64::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage64Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage96::MidiMessage96() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage96::MidiMessage96(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, word2, baseInterface, innerInterface); }); - } - inline MidiMessage96::MidiMessage96(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage96::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage96Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline auto MidiSession::Create(param::hstring const& sessionName) - { - return impl::call_factory([&](IMidiSessionStatics const& f) { return f.Create(sessionName); }); - } - template - struct MidiMessage128T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage128; - protected: - MidiMessage128T() - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage128T(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, word2, word3, *this, this->m_inner); }); - } - MidiMessage128T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; - template - struct MidiMessage32T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage32; - protected: - MidiMessage32T() - { - impl::call_factory([&](IMidiMessage32Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage32T(uint64_t timestamp, uint32_t word0) - { - impl::call_factory([&](IMidiMessage32Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, *this, this->m_inner); }); - } - }; - template - struct MidiMessage64T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage64; - protected: - MidiMessage64T() - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage64T(uint64_t timestamp, uint32_t word0, uint32_t word1) - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, *this, this->m_inner); }); - } - MidiMessage64T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; - template - struct MidiMessage96T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage96; - protected: - MidiMessage96T() - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage96T(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, word2, *this, this->m_inner); }); - } - MidiMessage96T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h deleted file mode 100644 index 7ba28d513..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h +++ /dev/null @@ -1,1524 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_0_H -WINRT_EXPORT namespace winrt::Windows::Devices::Enumeration -{ - struct DeviceInformation; - struct DeviceInformationUpdate; - enum class DeviceWatcherStatus : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct EventRegistrationToken; - struct IMemoryBuffer; - template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; -} -WINRT_EXPORT namespace winrt::Windows::Foundation::Collections -{ - template struct WINRT_IMPL_EMPTY_BASES IIterable; - template struct WINRT_IMPL_EMPTY_BASES IVector; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - enum class MidiEndpointDeviceInformationFilters : uint32_t - { - StandardNativeUniversalMidiPacketFormat = 0x1, - StandardNativeMidi1ByteFormat = 0x2, - VirtualDeviceResponder = 0x100, - DiagnosticLoopback = 0x10000, - DiagnosticPing = 0x20000, - AllStandardEndpoints = 0x3, - }; - enum class MidiEndpointDeviceInformationSortOrder : int32_t - { - None = 0, - Name = 1, - EndpointDeviceId = 2, - DeviceInstanceId = 3, - ContainerThenName = 11, - ContainerThenEndpointDeviceId = 12, - ContainerThenDeviceInstanceId = 13, - TransportMnemonicThenName = 21, - TransportMnemonicThenEndpointDeviceId = 22, - TransportMnemonicThenDeviceInstanceId = 23, - }; - enum class MidiEndpointDevicePurpose : int32_t - { - NormalMessageEndpoint = 0, - VirtualDeviceResponder = 100, - InBoxGeneralMidiSynth = 400, - DiagnosticLoopback = 500, - DiagnosticPing = 510, - }; - enum class MidiEndpointNativeDataFormat : int32_t - { - Unknown = 0, - Midi1ByteFormat = 1, - UniversalMidiPacketFormat = 2, - }; - enum class MidiFunctionBlockDirection : int32_t - { - Undefined = 0, - BlockInput = 1, - BlockOutput = 2, - Bidirectional = 3, - }; - enum class MidiFunctionBlockRepresentsMidi10Connection : int32_t - { - Not10 = 0, - YesBandwidthUnrestricted = 1, - YesBandwidthRestricted = 2, - Reserved = 3, - }; - enum class MidiFunctionBlockUIHint : int32_t - { - Unknown = 0, - Receiver = 1, - Sender = 2, - Bidirectional = 3, - }; - enum class MidiGroupTerminalBlockDirection : int32_t - { - Bidirectional = 0, - BlockInput = 1, - BlockOutput = 2, - }; - enum class MidiGroupTerminalBlockProtocol : int32_t - { - Unknown = 0, - Midi1Message64 = 1, - Midi1Message64WithJitterReduction = 2, - Midi1Message128 = 3, - Midi1Message128WithJitterReduction = 4, - Midi2 = 17, - Midi2WithJitterReduction = 18, - }; - enum class MidiMessageType : int32_t - { - UtilityMessage32 = 0, - SystemCommon32 = 1, - Midi1ChannelVoice32 = 2, - DataMessage64 = 3, - Midi2ChannelVoice64 = 4, - DataMessage128 = 5, - FutureReserved632 = 6, - FutureReserved732 = 7, - FutureReserved864 = 8, - FutureReserved964 = 9, - FutureReservedA64 = 10, - FutureReservedB96 = 11, - FutureReservedC96 = 12, - FlexData128 = 13, - FutureReservedE128 = 14, - Stream128 = 15, - }; - enum class MidiPacketType : int32_t - { - UnknownOrInvalid = 0, - UniversalMidiPacket32 = 1, - UniversalMidiPacket64 = 2, - UniversalMidiPacket96 = 3, - UniversalMidiPacket128 = 4, - }; - enum class MidiProtocol : int32_t - { - Default = 0, - Midi1 = 1, - Midi2 = 2, - }; - enum class MidiSendMessageResults : uint32_t - { - Succeeded = 0x80000000, - Failed = 0x10000000, - BufferFull = 0x10000, - EndpointConnectionClosedOrInvalid = 0x40000, - InvalidMessageTypeForWordCount = 0x100000, - InvalidMessageOther = 0x200000, - DataIndexOutOfRange = 0x400000, - TimestampOutOfRange = 0x800000, - MessageListPartiallyProcessed = 0xf00000, - }; - struct IMidiChannel; - struct IMidiChannelFactory; - struct IMidiChannelStatics; - struct IMidiClock; - struct IMidiClockStatics; - struct IMidiEndpointConnection; - struct IMidiEndpointConnectionSettings; - struct IMidiEndpointConnectionSource; - struct IMidiEndpointConnectionStatics; - struct IMidiEndpointDeviceInformation; - struct IMidiEndpointDeviceInformationAddedEventArgs; - struct IMidiEndpointDeviceInformationRemovedEventArgs; - struct IMidiEndpointDeviceInformationStatics; - struct IMidiEndpointDeviceInformationUpdatedEventArgs; - struct IMidiEndpointDeviceWatcher; - struct IMidiEndpointDeviceWatcherStatics; - struct IMidiEndpointMessageProcessingPlugin; - struct IMidiFunctionBlock; - struct IMidiGroup; - struct IMidiGroupFactory; - struct IMidiGroupStatics; - struct IMidiGroupTerminalBlock; - struct IMidiMessage128; - struct IMidiMessage128Factory; - struct IMidiMessage128Statics; - struct IMidiMessage32; - struct IMidiMessage32Factory; - struct IMidiMessage32Statics; - struct IMidiMessage64; - struct IMidiMessage64Factory; - struct IMidiMessage64Statics; - struct IMidiMessage96; - struct IMidiMessage96Factory; - struct IMidiMessage96Statics; - struct IMidiMessageReceivedEventArgs; - struct IMidiMessageReceivedEventSource; - struct IMidiSession; - struct IMidiSessionStatics; - struct IMidiUniversalPacket; - struct MidiChannel; - struct MidiClock; - struct MidiEndpointConnection; - struct MidiEndpointDeviceInformation; - struct MidiEndpointDeviceInformationAddedEventArgs; - struct MidiEndpointDeviceInformationRemovedEventArgs; - struct MidiEndpointDeviceInformationUpdatedEventArgs; - struct MidiEndpointDeviceWatcher; - struct MidiFunctionBlock; - struct MidiGroup; - struct MidiGroupTerminalBlock; - struct MidiMessage128; - struct MidiMessage32; - struct MidiMessage64; - struct MidiMessage96; - struct MidiMessageReceivedEventArgs; - struct MidiSession; - struct MidiDeclaredDeviceIdentity; - struct MidiDeclaredEndpointInfo; - struct MidiDeclaredStreamConfiguration; - struct MidiEndpointTransportSuppliedInfo; - struct MidiEndpointUserSuppliedInfo; - struct MidiMessageStruct; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiChannel"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiClock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointConnection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformation"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationAddedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationRemovedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationUpdatedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceWatcher"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroup"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage128"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage32"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage64"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage96"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiSession"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationFilters"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationSortOrder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDevicePurpose"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointNativeDataFormat"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockDirection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockRepresentsMidi10Connection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockUIHint"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlockDirection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlockProtocol"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageType"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiPacketType"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiProtocol"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiSendMessageResults"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredDeviceIdentity"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredEndpointInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredStreamConfiguration"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointTransportSuppliedInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointUserSuppliedInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageStruct"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannel"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannelFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannelStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiClock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiClockStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionSettings"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionSource"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformation"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationAddedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationRemovedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationUpdatedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceWatcher"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceWatcherStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointMessageProcessingPlugin"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiFunctionBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroup"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupTerminalBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessageReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessageReceivedEventSource"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiSession"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiSessionStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiUniversalPacket"; - template <> inline constexpr guid guid_v{ 0x34DC7F81,0xF0C2,0x50D4,{ 0xBE,0xDF,0x42,0xFA,0xB9,0xA1,0xCE,0xF8 } }; // 34DC7F81-F0C2-50D4-BEDF-42FAB9A1CEF8 - template <> inline constexpr guid guid_v{ 0x02A0FF18,0xFE96,0x5193,{ 0x98,0xEF,0xD9,0x67,0x58,0xCD,0x68,0xD4 } }; // 02A0FF18-FE96-5193-98EF-D96758CD68D4 - template <> inline constexpr guid guid_v{ 0xEC86B553,0xADB5,0x5330,{ 0x99,0x60,0x1D,0x8B,0x3A,0x35,0xB0,0xC6 } }; // EC86B553-ADB5-5330-9960-1D8B3A35B0C6 - template <> inline constexpr guid guid_v{ 0xF065F78B,0xE4DC,0x55A7,{ 0x96,0x97,0x63,0x59,0xD0,0xEC,0xD7,0x3A } }; // F065F78B-E4DC-55A7-9697-6359D0ECD73A - template <> inline constexpr guid guid_v{ 0xF672B9EB,0xD41D,0x5CDD,{ 0xAF,0x7B,0x64,0x29,0x94,0x0B,0xE3,0xE7 } }; // F672B9EB-D41D-5CDD-AF7B-6429940BE3E7 - template <> inline constexpr guid guid_v{ 0x452EECE5,0x4FB8,0x5C0C,{ 0xB8,0xDA,0x46,0x70,0x30,0xBD,0xAC,0xE2 } }; // 452EECE5-4FB8-5C0C-B8DA-467030BDACE2 - template <> inline constexpr guid guid_v{ 0x65736736,0x35F3,0x421C,{ 0xA6,0x83,0x3A,0x03,0x4A,0xD0,0xDC,0xC2 } }; // 65736736-35F3-421C-A683-3A034AD0DCC2 - template <> inline constexpr guid guid_v{ 0x44385CDD,0xB64C,0x4195,{ 0x8F,0xAA,0x8A,0x61,0xFC,0x95,0x2A,0x23 } }; // 44385CDD-B64C-4195-8FAA-8A61FC952A23 - template <> inline constexpr guid guid_v{ 0x99355145,0xBC11,0x5B85,{ 0x9B,0x23,0x1B,0x58,0x26,0x6F,0x46,0x30 } }; // 99355145-BC11-5B85-9B23-1B58266F4630 - template <> inline constexpr guid guid_v{ 0xFB4A1253,0x4429,0x5765,{ 0x99,0xDE,0xFF,0x76,0xBB,0xED,0x58,0x8B } }; // FB4A1253-4429-5765-99DE-FF76BBED588B - template <> inline constexpr guid guid_v{ 0xECF028D0,0xEECC,0x5F99,{ 0x8A,0xDF,0x8F,0x29,0xB7,0x0B,0x29,0x6C } }; // ECF028D0-EECC-5F99-8ADF-8F29B70B296C - template <> inline constexpr guid guid_v{ 0x84D3DDE4,0xE6F8,0x5BA5,{ 0x97,0xB4,0xB8,0xD4,0xC5,0x0A,0xFD,0x9F } }; // 84D3DDE4-E6F8-5BA5-97B4-B8D4C50AFD9F - template <> inline constexpr guid guid_v{ 0x1D2C9C0A,0x428E,0x5F75,{ 0x89,0xD5,0x00,0xC3,0xA3,0x79,0x4D,0x88 } }; // 1D2C9C0A-428E-5F75-89D5-00C3A3794D88 - template <> inline constexpr guid guid_v{ 0xAA4B1E3A,0x04B6,0x5560,{ 0xBC,0x2B,0xCF,0xD1,0x64,0xC0,0xF1,0xDE } }; // AA4B1E3A-04B6-5560-BC2B-CFD164C0F1DE - template <> inline constexpr guid guid_v{ 0x5CBF4CAC,0x3409,0x5A57,{ 0x9C,0x47,0xFC,0xA8,0x3C,0x69,0xDB,0xE3 } }; // 5CBF4CAC-3409-5A57-9C47-FCA83C69DBE3 - template <> inline constexpr guid guid_v{ 0xF28F646C,0x6BE6,0x5E13,{ 0x8A,0x78,0x7F,0xD1,0xB8,0x5A,0x7E,0x95 } }; // F28F646C-6BE6-5E13-8A78-7FD1B85A7E95 - template <> inline constexpr guid guid_v{ 0x198D5EF2,0x313F,0x41AF,{ 0x92,0x59,0xA4,0x29,0x97,0xE0,0x60,0xF0 } }; // 198D5EF2-313F-41AF-9259-A42997E060F0 - template <> inline constexpr guid guid_v{ 0xEB43C123,0x5382,0x5C71,{ 0x8D,0x1B,0x22,0x3B,0x8F,0x76,0xC2,0x3B } }; // EB43C123-5382-5C71-8D1B-223B8F76C23B - template <> inline constexpr guid guid_v{ 0xD2FE009D,0x8542,0x5AE7,{ 0xA8,0xF8,0x4F,0x28,0x14,0x5E,0x3A,0x8F } }; // D2FE009D-8542-5AE7-A8F8-4F28145E3A8F - template <> inline constexpr guid guid_v{ 0xEC11AC98,0x616B,0x545C,{ 0xA0,0x6C,0x95,0xB3,0x91,0x5A,0xDB,0x41 } }; // EC11AC98-616B-545C-A06C-95B3915ADB41 - template <> inline constexpr guid guid_v{ 0x08071F7E,0xBA0B,0x5020,{ 0x8E,0x23,0xBC,0x81,0x9B,0x24,0xA4,0xE2 } }; // 08071F7E-BA0B-5020-8E23-BC819B24A4E2 - template <> inline constexpr guid guid_v{ 0x3DBA035F,0xE298,0x5F22,{ 0xB0,0x0B,0x51,0xC7,0x2D,0xCF,0xF7,0x1F } }; // 3DBA035F-E298-5F22-B00B-51C72DCFF71F - template <> inline constexpr guid guid_v{ 0xEFB9C9BB,0x4397,0x538A,{ 0xB1,0x7F,0xBC,0x83,0x00,0x12,0xE1,0xEA } }; // EFB9C9BB-4397-538A-B17F-BC830012E1EA - template <> inline constexpr guid guid_v{ 0x6FB629DF,0xE277,0x5EE8,{ 0xB7,0xB8,0x13,0xA3,0x52,0x8B,0xA2,0x55 } }; // 6FB629DF-E277-5EE8-B7B8-13A3528BA255 - template <> inline constexpr guid guid_v{ 0x722B7533,0x8EFB,0x5CA9,{ 0x93,0x99,0x74,0xEE,0x2D,0x8D,0x53,0x8C } }; // 722B7533-8EFB-5CA9-9399-74EE2D8D538C - template <> inline constexpr guid guid_v{ 0x1C2EC0A7,0xE093,0x5FF0,{ 0xA0,0x9B,0x77,0x68,0x6A,0x75,0x64,0x18 } }; // 1C2EC0A7-E093-5FF0-A09B-77686A756418 - template <> inline constexpr guid guid_v{ 0x47D7FD0F,0x7945,0x5283,{ 0xB1,0x1B,0xA4,0xF5,0xCF,0xBB,0xF6,0xF2 } }; // 47D7FD0F-7945-5283-B11B-A4F5CFBBF6F2 - template <> inline constexpr guid guid_v{ 0x52D01ECA,0x60AC,0x5229,{ 0xAA,0xC2,0xAF,0xA7,0x2E,0xF1,0x40,0x45 } }; // 52D01ECA-60AC-5229-AAC2-AFA72EF14045 - template <> inline constexpr guid guid_v{ 0x62885C57,0x325C,0x5A7C,{ 0xB1,0x8F,0xDE,0x36,0x0A,0xC3,0x77,0xBD } }; // 62885C57-325C-5A7C-B18F-DE360AC377BD - template <> inline constexpr guid guid_v{ 0x10B85E46,0xC6B8,0x593A,{ 0x93,0x85,0x11,0xAE,0x2F,0xCE,0xB9,0xF1 } }; // 10B85E46-C6B8-593A-9385-11AE2FCEB9F1 - template <> inline constexpr guid guid_v{ 0xA75E98A2,0xC6AC,0x5333,{ 0x89,0x65,0x97,0xCD,0xA8,0x80,0x85,0x2E } }; // A75E98A2-C6AC-5333-8965-97CDA880852E - template <> inline constexpr guid guid_v{ 0x82B6C4F8,0xC292,0x50DA,{ 0xBD,0xDF,0xC1,0x18,0x6D,0x3B,0x9E,0xE6 } }; // 82B6C4F8-C292-50DA-BDDF-C1186D3B9EE6 - template <> inline constexpr guid guid_v{ 0x4AC4FE62,0x41C9,0x5605,{ 0x9D,0xB8,0xDE,0xD7,0xCB,0x44,0xB8,0x59 } }; // 4AC4FE62-41C9-5605-9DB8-DED7CB44B859 - template <> inline constexpr guid guid_v{ 0x80451AFD,0xE703,0x5790,{ 0x9C,0xF7,0x4A,0x17,0xAD,0x1E,0x47,0x3B } }; // 80451AFD-E703-5790-9CF7-4A17AD1E473B - template <> inline constexpr guid guid_v{ 0x190C0204,0x845B,0x5A20,{ 0xB9,0x5E,0x91,0x78,0xA8,0xDD,0xAF,0xC6 } }; // 190C0204-845B-5A20-B95E-9178A8DDAFC6 - template <> inline constexpr guid guid_v{ 0x101CEB4B,0xCCA4,0x48A1,{ 0xB9,0x1E,0x60,0x02,0xB9,0x28,0x61,0x3C } }; // 101CEB4B-CCA4-48A1-B91E-6002B928613C - template <> inline constexpr guid guid_v{ 0x47D3E2F0,0xB352,0x5D13,{ 0x88,0x37,0xE4,0x8F,0xF4,0x84,0x5F,0xA0 } }; // 47D3E2F0-B352-5D13-8837-E48FF4845FA0 - template <> inline constexpr guid guid_v{ 0x8678C907,0x163D,0x5D86,{ 0xBF,0xC7,0xFE,0x80,0x04,0x63,0x61,0x86 } }; // 8678C907-163D-5D86-BFC7-FE8004636186 - template <> inline constexpr guid guid_v{ 0x2EB5DF8A,0xD751,0x4997,{ 0xBF,0x96,0xBA,0x9A,0x53,0x1F,0xD5,0xFF } }; // 2EB5DF8A-D751-4997-BF96-BA9A531FD5FF - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiClock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiSession; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Index(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Index(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_DisplayValue(uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall IsValidIndex(uint8_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Now(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_TimestampConstantSendImmediately(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_TimestampFrequency(uint64_t*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToNanoseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToMicroseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToMilliseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToSeconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByTicks(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByMicroseconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByMilliseconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampBySeconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ConnectionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_ConnectedEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_Tag(void**) noexcept = 0; - virtual int32_t __stdcall put_Tag(void*) noexcept = 0; - virtual int32_t __stdcall get_LogMessageDataValidationErrorDetails(bool*) noexcept = 0; - virtual int32_t __stdcall put_LogMessageDataValidationErrorDetails(bool) noexcept = 0; - virtual int32_t __stdcall get_Settings(void**) noexcept = 0; - virtual int32_t __stdcall get_IsOpen(bool*) noexcept = 0; - virtual int32_t __stdcall Open(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsAutoReconnectEnabled(bool*) noexcept = 0; - virtual int32_t __stdcall get_MessageProcessingPlugins(void**) noexcept = 0; - virtual int32_t __stdcall AddMessageProcessingPlugin(void*) noexcept = 0; - virtual int32_t __stdcall RemoveMessageProcessingPlugin(winrt::guid) noexcept = 0; - virtual int32_t __stdcall SendSingleMessagePacket(void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageStruct(uint64_t, uint8_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct const&, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWordArray(uint64_t, uint32_t, uint8_t, uint32_t, uint32_t*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords(uint64_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords2(uint64_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords3(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords4(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageBuffer(uint64_t, uint32_t, uint8_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesWordList(uint64_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesWordArray(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesPacketList(void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesStructList(uint64_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesStructArray(uint64_t, uint32_t, uint32_t, uint32_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesBuffer(uint64_t, uint32_t, uint32_t, void*, uint32_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SettingsJson(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall add_EndpointDeviceDisconnected(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EndpointDeviceDisconnected(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_EndpointDeviceReconnected(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EndpointDeviceReconnected(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall GetDeviceSelector(void**) noexcept = 0; - virtual int32_t __stdcall SendMessageSucceeded(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall SendMessageFailed(uint32_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_ContainerId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_DeviceInstanceId(void**) noexcept = 0; - virtual int32_t __stdcall get_EndpointPurpose(int32_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredEndpointInfoLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredDeviceIdentityLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredStreamConfiguration(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredStreamConfigurationLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredFunctionBlocks(void**) noexcept = 0; - virtual int32_t __stdcall get_DeclaredFunctionBlocksLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetGroupTerminalBlocks(void**) noexcept = 0; - virtual int32_t __stdcall GetUserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall GetTransportSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall GetParentDeviceInformation(void**) noexcept = 0; - virtual int32_t __stdcall GetContainerDeviceInformation(void**) noexcept = 0; - virtual int32_t __stdcall get_Properties(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AddedDevice(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_DeviceInformationUpdate(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromEndpointDeviceId(void*, void**) noexcept = 0; - virtual int32_t __stdcall FindAll(void**) noexcept = 0; - virtual int32_t __stdcall FindAll2(int32_t, void**) noexcept = 0; - virtual int32_t __stdcall FindAll3(int32_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall get_EndpointInterfaceClass(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall GetAdditionalPropertiesList(void**) noexcept = 0; - virtual int32_t __stdcall DeviceMatchesFilter(void*, uint32_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_IsNameUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsEndpointInformationUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsDeviceIdentityUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsStreamConfigurationUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_AreFunctionBlocksUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsUserMetadataUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_AreAdditionalCapabilitiesUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_DeviceInformationUpdate(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Start() noexcept = 0; - virtual int32_t __stdcall Stop() noexcept = 0; - virtual int32_t __stdcall get_EnumeratedEndpointDevices(void**) noexcept = 0; - virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; - virtual int32_t __stdcall add_Added(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Added(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Removed(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Removed(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Updated(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Updated(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_EnumerationCompleted(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EnumerationCompleted(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Stopped(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Stopped(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Create(void**) noexcept = 0; - virtual int32_t __stdcall Create2(uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_PluginId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_PluginName(void**) noexcept = 0; - virtual int32_t __stdcall put_PluginName(void*) noexcept = 0; - virtual int32_t __stdcall get_PluginTag(void**) noexcept = 0; - virtual int32_t __stdcall put_PluginTag(void*) noexcept = 0; - virtual int32_t __stdcall get_IsEnabled(bool*) noexcept = 0; - virtual int32_t __stdcall put_IsEnabled(bool) noexcept = 0; - virtual int32_t __stdcall Initialize(void*) noexcept = 0; - virtual int32_t __stdcall OnEndpointConnectionOpened() noexcept = 0; - virtual int32_t __stdcall ProcessIncomingMessage(void*, bool*, bool*) noexcept = 0; - virtual int32_t __stdcall Cleanup() noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsReadOnly(bool*) noexcept = 0; - virtual int32_t __stdcall get_Number(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Number(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall put_Name(void*) noexcept = 0; - virtual int32_t __stdcall get_IsActive(bool*) noexcept = 0; - virtual int32_t __stdcall put_IsActive(bool) noexcept = 0; - virtual int32_t __stdcall get_Direction(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_Direction(int32_t) noexcept = 0; - virtual int32_t __stdcall get_UIHint(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_UIHint(int32_t) noexcept = 0; - virtual int32_t __stdcall get_RepresentsMidi10Connection(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_RepresentsMidi10Connection(int32_t) noexcept = 0; - virtual int32_t __stdcall get_FirstGroupIndex(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_FirstGroupIndex(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_GroupCount(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_GroupCount(uint8_t) noexcept = 0; - virtual int32_t __stdcall IncludesGroup(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_MidiCIMessageVersionFormat(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_MidiCIMessageVersionFormat(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_MaxSystemExclusive8Streams(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_MaxSystemExclusive8Streams(uint8_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Index(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Index(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_DisplayValue(uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall IsValidIndex(uint8_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Number(uint8_t*) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_Direction(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_Protocol(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_FirstGroupIndex(uint8_t*) noexcept = 0; - virtual int32_t __stdcall get_GroupCount(uint8_t*) noexcept = 0; - virtual int32_t __stdcall IncludesGroup(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(uint16_t*) noexcept = 0; - virtual int32_t __stdcall get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(uint16_t*) noexcept = 0; - virtual int32_t __stdcall get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(uint32_t*) noexcept = 0; - virtual int32_t __stdcall get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(uint32_t*) noexcept = 0; - virtual int32_t __stdcall AsEquivalentFunctionBlock(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word2(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word2(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word3(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word3(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word2(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word2(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_PacketType(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_MessageType(int32_t*) noexcept = 0; - virtual int32_t __stdcall PeekFirstWord(uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetMessagePacket(void**) noexcept = 0; - virtual int32_t __stdcall FillWords(uint32_t*, uint32_t*, uint32_t*, uint32_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillMessageStruct(struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillMessage32(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage64(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage96(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage128(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillWordArray(uint32_t, uint32_t, uint32_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillByteArray(uint32_t, uint32_t, uint8_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillBuffer(uint32_t, void*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall AppendWordsToList(void*, uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall add_MessageReceived(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_MessageReceived(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SessionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_IsOpen(bool*) noexcept = 0; - virtual int32_t __stdcall get_Connections(void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection(void*, void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection2(void*, bool, void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection3(void*, bool, void*, void**) noexcept = 0; - virtual int32_t __stdcall DisconnectEndpointConnection(winrt::guid) noexcept = 0; - virtual int32_t __stdcall UpdateName(void*, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Create(void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall put_Timestamp(uint64_t) noexcept = 0; - virtual int32_t __stdcall get_MessageType(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_MessageType(int32_t) noexcept = 0; - virtual int32_t __stdcall get_PacketType(int32_t*) noexcept = 0; - virtual int32_t __stdcall PeekFirstWord(uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetAllWords(void**) noexcept = 0; - virtual int32_t __stdcall AppendAllMessageWordsToList(void*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillBuffer(uint32_t, void*, uint8_t*) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannel - { - [[nodiscard]] auto Index() const; - auto Index(uint8_t value) const; - [[nodiscard]] auto DisplayValue() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannel; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory - { - auto CreateInstance(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto IsValidIndex(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiClock - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiClock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics - { - [[nodiscard]] auto Now() const; - [[nodiscard]] auto TimestampConstantSendImmediately() const; - [[nodiscard]] auto TimestampFrequency() const; - auto ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToSeconds(uint64_t timestampValue) const; - auto OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) const; - auto OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) const; - auto OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) const; - auto OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection - { - [[nodiscard]] auto ConnectionId() const; - [[nodiscard]] auto ConnectedEndpointDeviceId() const; - [[nodiscard]] auto Tag() const; - auto Tag(winrt::Windows::Foundation::IInspectable const& value) const; - [[nodiscard]] auto LogMessageDataValidationErrorDetails() const; - auto LogMessageDataValidationErrorDetails(bool value) const; - [[nodiscard]] auto Settings() const; - [[nodiscard]] auto IsOpen() const; - auto Open() const; - [[nodiscard]] auto IsAutoReconnectEnabled() const; - [[nodiscard]] auto MessageProcessingPlugins() const; - auto AddMessageProcessingPlugin(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin const& plugin) const; - auto RemoveMessageProcessingPlugin(winrt::guid const& id) const; - auto SendSingleMessagePacket(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket const& message) const; - auto SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - auto SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, array_view words) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) const; - auto SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - auto SendMultipleMessagesWordList(uint64_t timestamp, param::iterable const& words) const; - auto SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, array_view words) const; - auto SendMultipleMessagesPacketList(param::iterable const& messages) const; - auto SendMultipleMessagesStructList(uint64_t timestamp, param::iterable const& messages) const; - auto SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, array_view messages) const; - auto SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings - { - [[nodiscard]] auto SettingsJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource - { - auto EndpointDeviceDisconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EndpointDeviceDisconnected_revoker = impl::event_revoker::remove_EndpointDeviceDisconnected>; - [[nodiscard]] auto EndpointDeviceDisconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EndpointDeviceDisconnected(winrt::event_token const& token) const noexcept; - auto EndpointDeviceReconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EndpointDeviceReconnected_revoker = impl::event_revoker::remove_EndpointDeviceReconnected>; - [[nodiscard]] auto EndpointDeviceReconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EndpointDeviceReconnected(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics - { - auto GetDeviceSelector() const; - auto SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const; - auto SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto ContainerId() const; - [[nodiscard]] auto DeviceInstanceId() const; - [[nodiscard]] auto EndpointPurpose() const; - auto GetDeclaredEndpointInfo() const; - [[nodiscard]] auto DeclaredEndpointInfoLastUpdateTime() const; - auto GetDeclaredDeviceIdentity() const; - [[nodiscard]] auto DeclaredDeviceIdentityLastUpdateTime() const; - auto GetDeclaredStreamConfiguration() const; - [[nodiscard]] auto DeclaredStreamConfigurationLastUpdateTime() const; - auto GetDeclaredFunctionBlocks() const; - [[nodiscard]] auto DeclaredFunctionBlocksLastUpdateTime() const; - auto GetGroupTerminalBlocks() const; - auto GetUserSuppliedInfo() const; - auto GetTransportSuppliedInfo() const; - auto GetParentDeviceInformation() const; - auto GetContainerDeviceInformation() const; - [[nodiscard]] auto Properties() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs - { - [[nodiscard]] auto AddedDevice() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto DeviceInformationUpdate() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics - { - auto CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) const; - auto FindAll() const; - auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) const; - auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) const; - [[nodiscard]] auto EndpointInterfaceClass() const; - auto GetAdditionalPropertiesList() const; - auto DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto IsNameUpdated() const; - [[nodiscard]] auto IsEndpointInformationUpdated() const; - [[nodiscard]] auto IsDeviceIdentityUpdated() const; - [[nodiscard]] auto IsStreamConfigurationUpdated() const; - [[nodiscard]] auto AreFunctionBlocksUpdated() const; - [[nodiscard]] auto IsUserMetadataUpdated() const; - [[nodiscard]] auto AreAdditionalCapabilitiesUpdated() const; - [[nodiscard]] auto DeviceInformationUpdate() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher - { - auto Start() const; - auto Stop() const; - [[nodiscard]] auto EnumeratedEndpointDevices() const; - [[nodiscard]] auto Status() const; - auto Added(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Added_revoker = impl::event_revoker::remove_Added>; - [[nodiscard]] auto Added(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Added(winrt::event_token const& token) const noexcept; - auto Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Removed_revoker = impl::event_revoker::remove_Removed>; - [[nodiscard]] auto Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Removed(winrt::event_token const& token) const noexcept; - auto Updated(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Updated_revoker = impl::event_revoker::remove_Updated>; - [[nodiscard]] auto Updated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Updated(winrt::event_token const& token) const noexcept; - auto EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EnumerationCompleted_revoker = impl::event_revoker::remove_EnumerationCompleted>; - [[nodiscard]] auto EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EnumerationCompleted(winrt::event_token const& token) const noexcept; - auto Stopped(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Stopped_revoker = impl::event_revoker::remove_Stopped>; - [[nodiscard]] auto Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Stopped(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics - { - auto Create() const; - auto Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin - { - [[nodiscard]] auto PluginId() const; - [[nodiscard]] auto PluginName() const; - auto PluginName(param::hstring const& value) const; - [[nodiscard]] auto PluginTag() const; - auto PluginTag(winrt::Windows::Foundation::IInspectable const& value) const; - [[nodiscard]] auto IsEnabled() const; - auto IsEnabled(bool value) const; - auto Initialize(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource const& endpointConnection) const; - auto OnEndpointConnectionOpened() const; - auto ProcessIncomingMessage(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageReceivedEventArgs const& args, bool& skipFurtherListeners, bool& skipMainMessageReceivedEvent) const; - auto Cleanup() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock - { - [[nodiscard]] auto IsReadOnly() const; - [[nodiscard]] auto Number() const; - auto Number(uint8_t value) const; - [[nodiscard]] auto Name() const; - auto Name(param::hstring const& value) const; - [[nodiscard]] auto IsActive() const; - auto IsActive(bool value) const; - [[nodiscard]] auto Direction() const; - auto Direction(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& value) const; - [[nodiscard]] auto UIHint() const; - auto UIHint(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& value) const; - [[nodiscard]] auto RepresentsMidi10Connection() const; - auto RepresentsMidi10Connection(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& value) const; - [[nodiscard]] auto FirstGroupIndex() const; - auto FirstGroupIndex(uint8_t value) const; - [[nodiscard]] auto GroupCount() const; - auto GroupCount(uint8_t value) const; - auto IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const; - [[nodiscard]] auto MidiCIMessageVersionFormat() const; - auto MidiCIMessageVersionFormat(uint8_t value) const; - [[nodiscard]] auto MaxSystemExclusive8Streams() const; - auto MaxSystemExclusive8Streams(uint8_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroup - { - [[nodiscard]] auto Index() const; - auto Index(uint8_t value) const; - [[nodiscard]] auto DisplayValue() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroup; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory - { - auto CreateInstance(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto IsValidIndex(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock - { - [[nodiscard]] auto Number() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto Direction() const; - [[nodiscard]] auto Protocol() const; - [[nodiscard]] auto FirstGroupIndex() const; - [[nodiscard]] auto GroupCount() const; - auto IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const; - [[nodiscard]] auto MaxDeviceInputBandwidthIn4KBitsPerSecondUnits() const; - [[nodiscard]] auto MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits() const; - [[nodiscard]] auto CalculatedMaxDeviceInputBandwidthBitsPerSecond() const; - [[nodiscard]] auto CalculatedMaxDeviceOutputBandwidthBitsPerSecond() const; - auto AsEquivalentFunctionBlock() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - [[nodiscard]] auto Word2() const; - auto Word2(uint32_t value) const; - [[nodiscard]] auto Word3() const; - auto Word3(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - [[nodiscard]] auto Word2() const; - auto Word2(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs - { - [[nodiscard]] auto Timestamp() const; - [[nodiscard]] auto PacketType() const; - [[nodiscard]] auto MessageType() const; - auto PeekFirstWord() const; - auto GetMessagePacket() const; - auto FillWords(uint32_t& word0, uint32_t& word1, uint32_t& word2, uint32_t& word3) const; - auto FillMessageStruct(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct& message) const; - auto FillMessage32(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32 const& message) const; - auto FillMessage64(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64 const& message) const; - auto FillMessage96(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96 const& message) const; - auto FillMessage128(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128 const& message) const; - auto FillWordArray(uint32_t startIndex, array_view words) const; - auto FillByteArray(uint32_t startIndex, array_view bytes) const; - auto FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - auto AppendWordsToList(param::vector const& wordList) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource - { - auto MessageReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using MessageReceived_revoker = impl::event_revoker::remove_MessageReceived>; - [[nodiscard]] auto MessageReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto MessageReceived(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiSession - { - [[nodiscard]] auto SessionId() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto IsOpen() const; - [[nodiscard]] auto Connections() const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId) const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect) const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect, winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings const& settings) const; - auto DisconnectEndpointConnection(winrt::guid const& endpointConnectionId) const; - auto UpdateName(param::hstring const& newName) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiSession; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics - { - auto Create(param::hstring const& sessionName) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket - { - [[nodiscard]] auto Timestamp() const; - auto Timestamp(uint64_t value) const; - [[nodiscard]] auto MessageType() const; - auto MessageType(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& value) const; - [[nodiscard]] auto PacketType() const; - auto PeekFirstWord() const; - auto GetAllWords() const; - auto AppendAllMessageWordsToList(param::vector const& targetList) const; - auto FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity - { - uint8_t SystemExclusiveIdByte1; - uint8_t SystemExclusiveIdByte2; - uint8_t SystemExclusiveIdByte3; - uint8_t DeviceFamilyLsb; - uint8_t DeviceFamilyMsb; - uint8_t DeviceFamilyModelNumberLsb; - uint8_t DeviceFamilyModelNumberMsb; - uint8_t SoftwareRevisionLevelByte1; - uint8_t SoftwareRevisionLevelByte2; - uint8_t SoftwareRevisionLevelByte3; - uint8_t SoftwareRevisionLevelByte4; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo - { - void* Name; - void* ProductInstanceId; - bool SupportsMidi10Protocol; - bool SupportsMidi20Protocol; - bool SupportsReceivingJitterReductionTimestamps; - bool SupportsSendingJitterReductionTimestamps; - bool HasStaticFunctionBlocks; - uint8_t DeclaredFunctionBlockCount; - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration - { - int32_t Protocol; - bool ReceiveJitterReductionTimestamps; - bool SendJitterReductionTimestamps; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo - { - void* Name; - void* Description; - void* SerialNumber; - uint16_t VendorId; - uint16_t ProductId; - void* ManufacturerName; - bool SupportsMultiClient; - int32_t NativeDataFormat; - winrt::guid TransportId; - void* TransportAbbreviation; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo - { - void* Name; - void* Description; - void* LargeImagePath; - void* SmallImagePath; - bool RequiresNoteOffTranslation; - uint16_t RecommendedControlChangeAutomationIntervalMilliseconds; - bool SupportsMidiPolyphonicExpression; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct - { - uint32_t Word0; - uint32_t Word1; - uint32_t Word2; - uint32_t Word3; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h deleted file mode 100644 index 3958e0869..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h +++ /dev/null @@ -1,283 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct WINRT_IMPL_EMPTY_BASES IMidiChannel : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannel(std::nullptr_t = nullptr) noexcept {} - IMidiChannel(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiChannelFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelFactory(std::nullptr_t = nullptr) noexcept {} - IMidiChannelFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiChannelStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelStatics(std::nullptr_t = nullptr) noexcept {} - IMidiChannelStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiClock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiClock(std::nullptr_t = nullptr) noexcept {} - IMidiClock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiClockStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiClockStatics(std::nullptr_t = nullptr) noexcept {} - IMidiClockStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnection : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnection(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnection(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionSettings : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionSettings(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionSettings(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionSource : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionSource(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformation : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformation(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationAddedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationAddedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationAddedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationRemovedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationRemovedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationRemovedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationUpdatedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationUpdatedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationUpdatedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceWatcher : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceWatcher(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceWatcher(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceWatcherStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceWatcherStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceWatcherStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointMessageProcessingPlugin : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointMessageProcessingPlugin(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointMessageProcessingPlugin(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiFunctionBlock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiFunctionBlock(std::nullptr_t = nullptr) noexcept {} - IMidiFunctionBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroup : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroup(std::nullptr_t = nullptr) noexcept {} - IMidiGroup(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupFactory(std::nullptr_t = nullptr) noexcept {} - IMidiGroupFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupStatics(std::nullptr_t = nullptr) noexcept {} - IMidiGroupStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupTerminalBlock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupTerminalBlock(std::nullptr_t = nullptr) noexcept {} - IMidiGroupTerminalBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageReceivedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageReceivedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiMessageReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageReceivedEventSource : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageReceivedEventSource(std::nullptr_t = nullptr) noexcept {} - IMidiMessageReceivedEventSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiSession : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiSession(std::nullptr_t = nullptr) noexcept {} - IMidiSession(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiSessionStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiSessionStatics(std::nullptr_t = nullptr) noexcept {} - IMidiSessionStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniversalPacket : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniversalPacket(std::nullptr_t = nullptr) noexcept {} - IMidiUniversalPacket(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h deleted file mode 100644 index e322db4de..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h +++ /dev/null @@ -1,261 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_2_H -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiDeclaredDeviceIdentity - { - uint8_t SystemExclusiveIdByte1; - uint8_t SystemExclusiveIdByte2; - uint8_t SystemExclusiveIdByte3; - uint8_t DeviceFamilyLsb; - uint8_t DeviceFamilyMsb; - uint8_t DeviceFamilyModelNumberLsb; - uint8_t DeviceFamilyModelNumberMsb; - uint8_t SoftwareRevisionLevelByte1; - uint8_t SoftwareRevisionLevelByte2; - uint8_t SoftwareRevisionLevelByte3; - uint8_t SoftwareRevisionLevelByte4; - }; - inline bool operator==(MidiDeclaredDeviceIdentity const& left, MidiDeclaredDeviceIdentity const& right) noexcept - { - return left.SystemExclusiveIdByte1 == right.SystemExclusiveIdByte1 && left.SystemExclusiveIdByte2 == right.SystemExclusiveIdByte2 && left.SystemExclusiveIdByte3 == right.SystemExclusiveIdByte3 && left.DeviceFamilyLsb == right.DeviceFamilyLsb && left.DeviceFamilyMsb == right.DeviceFamilyMsb && left.DeviceFamilyModelNumberLsb == right.DeviceFamilyModelNumberLsb && left.DeviceFamilyModelNumberMsb == right.DeviceFamilyModelNumberMsb && left.SoftwareRevisionLevelByte1 == right.SoftwareRevisionLevelByte1 && left.SoftwareRevisionLevelByte2 == right.SoftwareRevisionLevelByte2 && left.SoftwareRevisionLevelByte3 == right.SoftwareRevisionLevelByte3 && left.SoftwareRevisionLevelByte4 == right.SoftwareRevisionLevelByte4; - } - inline bool operator!=(MidiDeclaredDeviceIdentity const& left, MidiDeclaredDeviceIdentity const& right) noexcept - { - return !(left == right); - } - struct MidiDeclaredEndpointInfo - { - hstring Name; - hstring ProductInstanceId; - bool SupportsMidi10Protocol; - bool SupportsMidi20Protocol; - bool SupportsReceivingJitterReductionTimestamps; - bool SupportsSendingJitterReductionTimestamps; - bool HasStaticFunctionBlocks; - uint8_t DeclaredFunctionBlockCount; - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - }; - inline bool operator==(MidiDeclaredEndpointInfo const& left, MidiDeclaredEndpointInfo const& right) noexcept - { - return left.Name == right.Name && left.ProductInstanceId == right.ProductInstanceId && left.SupportsMidi10Protocol == right.SupportsMidi10Protocol && left.SupportsMidi20Protocol == right.SupportsMidi20Protocol && left.SupportsReceivingJitterReductionTimestamps == right.SupportsReceivingJitterReductionTimestamps && left.SupportsSendingJitterReductionTimestamps == right.SupportsSendingJitterReductionTimestamps && left.HasStaticFunctionBlocks == right.HasStaticFunctionBlocks && left.DeclaredFunctionBlockCount == right.DeclaredFunctionBlockCount && left.SpecificationVersionMajor == right.SpecificationVersionMajor && left.SpecificationVersionMinor == right.SpecificationVersionMinor; - } - inline bool operator!=(MidiDeclaredEndpointInfo const& left, MidiDeclaredEndpointInfo const& right) noexcept - { - return !(left == right); - } - struct MidiDeclaredStreamConfiguration - { - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol Protocol; - bool ReceiveJitterReductionTimestamps; - bool SendJitterReductionTimestamps; - }; - inline bool operator==(MidiDeclaredStreamConfiguration const& left, MidiDeclaredStreamConfiguration const& right) noexcept - { - return left.Protocol == right.Protocol && left.ReceiveJitterReductionTimestamps == right.ReceiveJitterReductionTimestamps && left.SendJitterReductionTimestamps == right.SendJitterReductionTimestamps; - } - inline bool operator!=(MidiDeclaredStreamConfiguration const& left, MidiDeclaredStreamConfiguration const& right) noexcept - { - return !(left == right); - } - struct MidiEndpointTransportSuppliedInfo - { - hstring Name; - hstring Description; - hstring SerialNumber; - uint16_t VendorId; - uint16_t ProductId; - hstring ManufacturerName; - bool SupportsMultiClient; - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointNativeDataFormat NativeDataFormat; - winrt::guid TransportId; - hstring TransportAbbreviation; - }; - inline bool operator==(MidiEndpointTransportSuppliedInfo const& left, MidiEndpointTransportSuppliedInfo const& right) noexcept - { - return left.Name == right.Name && left.Description == right.Description && left.SerialNumber == right.SerialNumber && left.VendorId == right.VendorId && left.ProductId == right.ProductId && left.ManufacturerName == right.ManufacturerName && left.SupportsMultiClient == right.SupportsMultiClient && left.NativeDataFormat == right.NativeDataFormat && left.TransportId == right.TransportId && left.TransportAbbreviation == right.TransportAbbreviation; - } - inline bool operator!=(MidiEndpointTransportSuppliedInfo const& left, MidiEndpointTransportSuppliedInfo const& right) noexcept - { - return !(left == right); - } - struct MidiEndpointUserSuppliedInfo - { - hstring Name; - hstring Description; - hstring LargeImagePath; - hstring SmallImagePath; - bool RequiresNoteOffTranslation; - uint16_t RecommendedControlChangeAutomationIntervalMilliseconds; - bool SupportsMidiPolyphonicExpression; - }; - inline bool operator==(MidiEndpointUserSuppliedInfo const& left, MidiEndpointUserSuppliedInfo const& right) noexcept - { - return left.Name == right.Name && left.Description == right.Description && left.LargeImagePath == right.LargeImagePath && left.SmallImagePath == right.SmallImagePath && left.RequiresNoteOffTranslation == right.RequiresNoteOffTranslation && left.RecommendedControlChangeAutomationIntervalMilliseconds == right.RecommendedControlChangeAutomationIntervalMilliseconds && left.SupportsMidiPolyphonicExpression == right.SupportsMidiPolyphonicExpression; - } - inline bool operator!=(MidiEndpointUserSuppliedInfo const& left, MidiEndpointUserSuppliedInfo const& right) noexcept - { - return !(left == right); - } - struct MidiMessageStruct - { - uint32_t Word0; - uint32_t Word1; - uint32_t Word2; - uint32_t Word3; - }; - inline bool operator==(MidiMessageStruct const& left, MidiMessageStruct const& right) noexcept - { - return left.Word0 == right.Word0 && left.Word1 == right.Word1 && left.Word2 == right.Word2 && left.Word3 == right.Word3; - } - inline bool operator!=(MidiMessageStruct const& left, MidiMessageStruct const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiChannel : winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel - { - MidiChannel(std::nullptr_t) noexcept {} - MidiChannel(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel(ptr, take_ownership_from_abi) {} - explicit MidiChannel(uint8_t index); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto IsValidIndex(uint8_t index); - }; - struct WINRT_IMPL_EMPTY_BASES MidiClock : winrt::Microsoft::Windows::Devices::Midi2::IMidiClock - { - MidiClock(std::nullptr_t) noexcept {} - MidiClock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiClock(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto Now(); - [[nodiscard]] static auto TimestampConstantSendImmediately(); - [[nodiscard]] static auto TimestampFrequency(); - static auto ConvertTimestampTicksToNanoseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToMicroseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToMilliseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToSeconds(uint64_t timestampValue); - static auto OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks); - static auto OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds); - static auto OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds); - static auto OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointConnection : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection, - impl::require - { - MidiEndpointConnection(std::nullptr_t) noexcept {} - MidiEndpointConnection(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection(ptr, take_ownership_from_abi) {} - static auto GetDeviceSelector(); - static auto SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult); - static auto SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformation : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation - { - MidiEndpointDeviceInformation(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation(ptr, take_ownership_from_abi) {} - static auto CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId); - static auto FindAll(); - static auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder); - static auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude); - [[nodiscard]] static auto EndpointInterfaceClass(); - static auto GetAdditionalPropertiesList(); - static auto DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationAddedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs - { - MidiEndpointDeviceInformationAddedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationAddedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationRemovedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs - { - MidiEndpointDeviceInformationRemovedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationRemovedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationUpdatedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs - { - MidiEndpointDeviceInformationUpdatedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationUpdatedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceWatcher : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher - { - MidiEndpointDeviceWatcher(std::nullptr_t) noexcept {} - MidiEndpointDeviceWatcher(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher(ptr, take_ownership_from_abi) {} - static auto Create(); - static auto Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters); - }; - struct WINRT_IMPL_EMPTY_BASES MidiFunctionBlock : winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock - { - MidiFunctionBlock(std::nullptr_t) noexcept {} - MidiFunctionBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock(ptr, take_ownership_from_abi) {} - MidiFunctionBlock(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroup : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup - { - MidiGroup(std::nullptr_t) noexcept {} - MidiGroup(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup(ptr, take_ownership_from_abi) {} - explicit MidiGroup(uint8_t index); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto IsValidIndex(uint8_t index); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroupTerminalBlock : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock - { - MidiGroupTerminalBlock(std::nullptr_t) noexcept {} - MidiGroupTerminalBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage128 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128, - impl::require - { - MidiMessage128(std::nullptr_t) noexcept {} - MidiMessage128(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128(ptr, take_ownership_from_abi) {} - MidiMessage128(); - MidiMessage128(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3); - MidiMessage128(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage32 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32, - impl::require - { - MidiMessage32(std::nullptr_t) noexcept {} - MidiMessage32(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32(ptr, take_ownership_from_abi) {} - MidiMessage32(); - MidiMessage32(uint64_t timestamp, uint32_t word0); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage64 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64, - impl::require - { - MidiMessage64(std::nullptr_t) noexcept {} - MidiMessage64(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64(ptr, take_ownership_from_abi) {} - MidiMessage64(); - MidiMessage64(uint64_t timestamp, uint32_t word0, uint32_t word1); - MidiMessage64(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage96 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96, - impl::require - { - MidiMessage96(std::nullptr_t) noexcept {} - MidiMessage96(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96(ptr, take_ownership_from_abi) {} - MidiMessage96(); - MidiMessage96(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2); - MidiMessage96(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessageReceivedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs - { - MidiMessageReceivedEventArgs(std::nullptr_t) noexcept {} - MidiMessageReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiSession : winrt::Microsoft::Windows::Devices::Midi2::IMidiSession, - impl::require - { - MidiSession(std::nullptr_t) noexcept {} - MidiSession(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiSession(ptr, take_ownership_from_abi) {} - static auto Create(param::hstring const& sessionName); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h deleted file mode 100644 index 438febb66..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h +++ /dev/null @@ -1,104 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct IMidiUniqueId; - struct IMidiUniqueIdFactory; - struct IMidiUniqueIdStatics; - struct MidiUniqueId; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.MidiUniqueId"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueId"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueIdFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueIdStatics"; - template <> inline constexpr guid guid_v{ 0x2476DCBC,0x3CD7,0x5346,{ 0x9F,0x5C,0xE6,0xD1,0xAD,0xD1,0x67,0x41 } }; // 2476DCBC-3CD7-5346-9F5C-E6D1ADD16741 - template <> inline constexpr guid guid_v{ 0xD2F59A5C,0xE78B,0x5D7A,{ 0x9B,0x22,0x3D,0xC0,0x28,0x58,0x1A,0x64 } }; // D2F59A5C-E78B-5D7A-9B22-3DC028581A64 - template <> inline constexpr guid guid_v{ 0x27B256C2,0xB3B0,0x507A,{ 0xBC,0x6B,0x48,0xE6,0xFC,0x42,0xB4,0x68 } }; // 27B256C2-B3B0-507A-BC6B-48E6FC42B468 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Byte1(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte1(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte2(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte2(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte3(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte3(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte4(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte4(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_AsCombined28BitValue(uint32_t*) noexcept = 0; - virtual int32_t __stdcall get_IsBroadcast(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsReserved(bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall CreateBroadcast(void**) noexcept = 0; - virtual int32_t __stdcall CreateRandom(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId - { - [[nodiscard]] auto Byte1() const; - auto Byte1(uint8_t value) const; - [[nodiscard]] auto Byte2() const; - auto Byte2(uint8_t value) const; - [[nodiscard]] auto Byte3() const; - auto Byte3(uint8_t value) const; - [[nodiscard]] auto Byte4() const; - auto Byte4(uint8_t value) const; - [[nodiscard]] auto AsCombined28BitValue() const; - [[nodiscard]] auto IsBroadcast() const; - [[nodiscard]] auto IsReserved() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory - { - auto CreateInstance(uint32_t combined28BitValue) const; - auto CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto CreateBroadcast() const; - auto CreateRandom() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h deleted file mode 100644 index d105e51bc..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h +++ /dev/null @@ -1,31 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueId : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueId(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueId(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueIdFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueIdFactory(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueIdFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueIdStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueIdStatics(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueIdStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h deleted file mode 100644 index b4914e773..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h +++ /dev/null @@ -1,22 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct WINRT_IMPL_EMPTY_BASES MidiUniqueId : winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId - { - MidiUniqueId(std::nullptr_t) noexcept {} - MidiUniqueId(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId(ptr, take_ownership_from_abi) {} - MidiUniqueId(); - explicit MidiUniqueId(uint32_t combined28BitValue); - MidiUniqueId(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto CreateBroadcast(); - static auto CreateRandom(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h deleted file mode 100644 index 6bf8c9af9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h +++ /dev/null @@ -1,116 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiGroup; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct IMidiChannelEndpointListener; - struct IMidiGroupEndpointListener; - struct IMidiMessageTypeEndpointListener; - struct MidiChannelEndpointListener; - struct MidiGroupEndpointListener; - struct MidiMessageTypeEndpointListener; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiChannelEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiGroupEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiMessageTypeEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiChannelEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiGroupEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiMessageTypeEndpointListener"; - template <> inline constexpr guid guid_v{ 0xFD961EBD,0xE883,0x5C78,{ 0xB1,0x00,0xC0,0x2B,0x70,0x50,0xAE,0x59 } }; // FD961EBD-E883-5C78-B100-C02B7050AE59 - template <> inline constexpr guid guid_v{ 0xA8FE598F,0x2E81,0x507E,{ 0x99,0x46,0x44,0x45,0x45,0x26,0xBF,0x61 } }; // A8FE598F-2E81-507E-9946-44454526BF61 - template <> inline constexpr guid guid_v{ 0x3F03A513,0x6032,0x58F6,{ 0x98,0x17,0xB8,0xD3,0xC7,0xE8,0x9B,0x89 } }; // 3F03A513-6032-58F6-9817-B8D3C7E89B89 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedGroup(void**) noexcept = 0; - virtual int32_t __stdcall put_IncludedGroup(void*) noexcept = 0; - virtual int32_t __stdcall get_IncludedChannels(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedGroups(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedMessageTypes(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener - { - [[nodiscard]] auto IncludedGroup() const; - auto IncludedGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& value) const; - [[nodiscard]] auto IncludedChannels() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener - { - [[nodiscard]] auto IncludedGroups() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener - { - [[nodiscard]] auto IncludedMessageTypes() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h deleted file mode 100644 index 9cef219ea..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h +++ /dev/null @@ -1,31 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct WINRT_IMPL_EMPTY_BASES IMidiChannelEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiChannelEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiGroupEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageTypeEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageTypeEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiMessageTypeEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h deleted file mode 100644 index fde3586c8..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h +++ /dev/null @@ -1,32 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct WINRT_IMPL_EMPTY_BASES MidiChannelEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener, - impl::require - { - MidiChannelEndpointListener(std::nullptr_t) noexcept {} - MidiChannelEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener(ptr, take_ownership_from_abi) {} - MidiChannelEndpointListener(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroupEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener, - impl::require - { - MidiGroupEndpointListener(std::nullptr_t) noexcept {} - MidiGroupEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener(ptr, take_ownership_from_abi) {} - MidiGroupEndpointListener(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessageTypeEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener, - impl::require - { - MidiMessageTypeEndpointListener(std::nullptr_t) noexcept {} - MidiMessageTypeEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener(ptr, take_ownership_from_abi) {} - MidiMessageTypeEndpointListener(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h deleted file mode 100644 index 5a140177a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h +++ /dev/null @@ -1,206 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_0_H -WINRT_EXPORT namespace winrt::Windows::Foundation -{ -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct IMidiDiagnosticsStatics; - struct IMidiReportingStatics; - struct IMidiServicePingResponseSummary; - struct IMidiServiceSessionInfo; - struct MidiDiagnostics; - struct MidiReporting; - struct MidiServicePingResponseSummary; - struct MidiServiceSessionInfo; - struct MidiServiceMessageProcessingPluginInfo; - struct MidiServicePingResponse; - struct MidiServiceSessionConnectionInfo; - struct MidiServiceTransportPluginInfo; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiDiagnostics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiReporting"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServicePingResponseSummary"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceSessionInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceMessageProcessingPluginInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServicePingResponse"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceSessionConnectionInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceTransportPluginInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiDiagnosticsStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiReportingStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiServicePingResponseSummary"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiServiceSessionInfo"; - template <> inline constexpr guid guid_v{ 0x4AB631D4,0x3C9A,0x5E7D,{ 0xB3,0xDA,0xB4,0x85,0x69,0x7E,0xDF,0x9E } }; // 4AB631D4-3C9A-5E7D-B3DA-B485697EDF9E - template <> inline constexpr guid guid_v{ 0x836257F9,0xF81F,0x5C0E,{ 0xB6,0xF2,0xB2,0xD0,0xF9,0xDC,0xF6,0x8E } }; // 836257F9-F81F-5C0E-B6F2-B2D0F9DCF68E - template <> inline constexpr guid guid_v{ 0x9826B87F,0x01ED,0x56CE,{ 0xA5,0x40,0x6A,0xB9,0x89,0xA0,0x3E,0xF8 } }; // 9826B87F-01ED-56CE-A540-6AB989A03EF8 - template <> inline constexpr guid guid_v{ 0x3156AD39,0x109E,0x5B67,{ 0x86,0x1B,0xAE,0x41,0x38,0x27,0xC9,0x05 } }; // 3156AD39-109E-5B67-861B-AE413827C905 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_DiagnosticsLoopbackAEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_DiagnosticsLoopbackBEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall PingService(uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall PingService2(uint8_t, uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall GetInstalledTransportPlugins(void**) noexcept = 0; - virtual int32_t __stdcall GetInstalledMessageProcessingPlugins(void**) noexcept = 0; - virtual int32_t __stdcall GetActiveSessions(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Success(bool*) noexcept = 0; - virtual int32_t __stdcall get_FailureReason(void**) noexcept = 0; - virtual int32_t __stdcall get_TotalPingRoundTripMidiClock(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_AveragePingRoundTripMidiClock(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_Responses(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SessionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_ProcessId(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_ProcessName(void**) noexcept = 0; - virtual int32_t __stdcall get_SessionName(void**) noexcept = 0; - virtual int32_t __stdcall get_StartTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall get_Connections(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics - { - [[nodiscard]] auto DiagnosticsLoopbackAEndpointDeviceId() const; - [[nodiscard]] auto DiagnosticsLoopbackBEndpointDeviceId() const; - auto PingService(uint8_t pingCount) const; - auto PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics - { - auto GetInstalledTransportPlugins() const; - auto GetInstalledMessageProcessingPlugins() const; - auto GetActiveSessions() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary - { - [[nodiscard]] auto Success() const; - [[nodiscard]] auto FailureReason() const; - [[nodiscard]] auto TotalPingRoundTripMidiClock() const; - [[nodiscard]] auto AveragePingRoundTripMidiClock() const; - [[nodiscard]] auto Responses() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo - { - [[nodiscard]] auto SessionId() const; - [[nodiscard]] auto ProcessId() const; - [[nodiscard]] auto ProcessName() const; - [[nodiscard]] auto SessionName() const; - [[nodiscard]] auto StartTime() const; - [[nodiscard]] auto Connections() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceMessageProcessingPluginInfo - { - winrt::guid Id; - void* Name; - void* Description; - void* Author; - void* SmallImagePath; - void* Version; - bool SupportsMultipleInstancesPerDevice; - bool IsSystemManaged; - bool IsClientConfigurable; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceMessageProcessingPluginInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServicePingResponse - { - uint32_t SourceId; - uint32_t Index; - uint64_t ClientSendMidiTimestamp; - uint64_t ServiceReportedMidiTimestamp; - uint64_t ClientReceiveMidiTimestamp; - uint64_t ClientDeltaTimestamp; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServicePingResponse; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceSessionConnectionInfo - { - void* EndpointDeviceId; - uint16_t InstanceCount; - int64_t EarliestConnectionTime; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceSessionConnectionInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceTransportPluginInfo - { - winrt::guid Id; - void* Name; - void* Abbreviation; - void* Description; - void* SmallImagePath; - void* Author; - void* Version; - bool IsRuntimeCreatableByApps; - bool IsRuntimeCreatableBySettings; - bool IsSystemManaged; - bool CanConfigure; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceTransportPluginInfo; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h deleted file mode 100644 index 4138c1102..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct WINRT_IMPL_EMPTY_BASES IMidiDiagnosticsStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiDiagnosticsStatics(std::nullptr_t = nullptr) noexcept {} - IMidiDiagnosticsStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiReportingStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiReportingStatics(std::nullptr_t = nullptr) noexcept {} - IMidiReportingStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServicePingResponseSummary : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicePingResponseSummary(std::nullptr_t = nullptr) noexcept {} - IMidiServicePingResponseSummary(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceSessionInfo : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceSessionInfo(std::nullptr_t = nullptr) noexcept {} - IMidiServiceSessionInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h deleted file mode 100644 index cee0e284c..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_2_H -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct MidiServiceMessageProcessingPluginInfo - { - winrt::guid Id; - hstring Name; - hstring Description; - hstring Author; - hstring SmallImagePath; - hstring Version; - bool SupportsMultipleInstancesPerDevice; - bool IsSystemManaged; - bool IsClientConfigurable; - }; - inline bool operator==(MidiServiceMessageProcessingPluginInfo const& left, MidiServiceMessageProcessingPluginInfo const& right) noexcept - { - return left.Id == right.Id && left.Name == right.Name && left.Description == right.Description && left.Author == right.Author && left.SmallImagePath == right.SmallImagePath && left.Version == right.Version && left.SupportsMultipleInstancesPerDevice == right.SupportsMultipleInstancesPerDevice && left.IsSystemManaged == right.IsSystemManaged && left.IsClientConfigurable == right.IsClientConfigurable; - } - inline bool operator!=(MidiServiceMessageProcessingPluginInfo const& left, MidiServiceMessageProcessingPluginInfo const& right) noexcept - { - return !(left == right); - } - struct MidiServicePingResponse - { - uint32_t SourceId; - uint32_t Index; - uint64_t ClientSendMidiTimestamp; - uint64_t ServiceReportedMidiTimestamp; - uint64_t ClientReceiveMidiTimestamp; - uint64_t ClientDeltaTimestamp; - }; - inline bool operator==(MidiServicePingResponse const& left, MidiServicePingResponse const& right) noexcept - { - return left.SourceId == right.SourceId && left.Index == right.Index && left.ClientSendMidiTimestamp == right.ClientSendMidiTimestamp && left.ServiceReportedMidiTimestamp == right.ServiceReportedMidiTimestamp && left.ClientReceiveMidiTimestamp == right.ClientReceiveMidiTimestamp && left.ClientDeltaTimestamp == right.ClientDeltaTimestamp; - } - inline bool operator!=(MidiServicePingResponse const& left, MidiServicePingResponse const& right) noexcept - { - return !(left == right); - } - struct MidiServiceSessionConnectionInfo - { - hstring EndpointDeviceId; - uint16_t InstanceCount; - winrt::Windows::Foundation::DateTime EarliestConnectionTime; - }; - inline bool operator==(MidiServiceSessionConnectionInfo const& left, MidiServiceSessionConnectionInfo const& right) noexcept - { - return left.EndpointDeviceId == right.EndpointDeviceId && left.InstanceCount == right.InstanceCount && left.EarliestConnectionTime == right.EarliestConnectionTime; - } - inline bool operator!=(MidiServiceSessionConnectionInfo const& left, MidiServiceSessionConnectionInfo const& right) noexcept - { - return !(left == right); - } - struct MidiServiceTransportPluginInfo - { - winrt::guid Id; - hstring Name; - hstring Abbreviation; - hstring Description; - hstring SmallImagePath; - hstring Author; - hstring Version; - bool IsRuntimeCreatableByApps; - bool IsRuntimeCreatableBySettings; - bool IsSystemManaged; - bool CanConfigure; - }; - inline bool operator==(MidiServiceTransportPluginInfo const& left, MidiServiceTransportPluginInfo const& right) noexcept - { - return left.Id == right.Id && left.Name == right.Name && left.Abbreviation == right.Abbreviation && left.Description == right.Description && left.SmallImagePath == right.SmallImagePath && left.Author == right.Author && left.Version == right.Version && left.IsRuntimeCreatableByApps == right.IsRuntimeCreatableByApps && left.IsRuntimeCreatableBySettings == right.IsRuntimeCreatableBySettings && left.IsSystemManaged == right.IsSystemManaged && left.CanConfigure == right.CanConfigure; - } - inline bool operator!=(MidiServiceTransportPluginInfo const& left, MidiServiceTransportPluginInfo const& right) noexcept - { - return !(left == right); - } - struct MidiDiagnostics - { - MidiDiagnostics() = delete; - [[nodiscard]] static auto DiagnosticsLoopbackAEndpointDeviceId(); - [[nodiscard]] static auto DiagnosticsLoopbackBEndpointDeviceId(); - static auto PingService(uint8_t pingCount); - static auto PingService(uint8_t pingCount, uint32_t timeoutMilliseconds); - }; - struct MidiReporting - { - MidiReporting() = delete; - static auto GetInstalledTransportPlugins(); - static auto GetInstalledMessageProcessingPlugins(); - static auto GetActiveSessions(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiServicePingResponseSummary : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary - { - MidiServicePingResponseSummary(std::nullptr_t) noexcept {} - MidiServicePingResponseSummary(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiServiceSessionInfo : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo - { - MidiServiceSessionInfo(std::nullptr_t) noexcept {} - MidiServiceSessionInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h deleted file mode 100644 index cd7b9ca69..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h +++ /dev/null @@ -1,187 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct IMidiLoopbackEndpointCreationConfig; - struct IMidiLoopbackEndpointCreationConfigFactory; - struct IMidiLoopbackEndpointDeletionConfig; - struct IMidiLoopbackEndpointDeletionConfigFactory; - struct IMidiLoopbackEndpointManager; - struct IMidiLoopbackEndpointManagerStatics; - struct MidiLoopbackEndpointCreationConfig; - struct MidiLoopbackEndpointDeletionConfig; - struct MidiLoopbackEndpointManager; - struct MidiLoopbackEndpointCreationResult; - struct MidiLoopbackEndpointDefinition; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointDeletionConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointCreationResult"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointDefinition"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointCreationConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointDeletionConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointDeletionConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointManagerStatics"; - template <> inline constexpr guid guid_v{ 0x53EF39E5,0x179D,0x57AF,{ 0x98,0x4D,0xC4,0x0D,0x5C,0x29,0x99,0xFA } }; // 53EF39E5-179D-57AF-984D-C40D5C2999FA - template <> inline constexpr guid guid_v{ 0x5FA6051E,0x83EE,0x5D4D,{ 0x92,0x1C,0x48,0xBA,0xD0,0xAA,0xDE,0x61 } }; // 5FA6051E-83EE-5D4D-921C-48BAD0AADE61 - template <> inline constexpr guid guid_v{ 0x717579E3,0xE3BE,0x5D34,{ 0x87,0x79,0xA1,0x56,0x31,0x1B,0x84,0x8D } }; // 717579E3-E3BE-5D34-8779-A156311B848D - template <> inline constexpr guid guid_v{ 0x2663EB28,0xD010,0x5610,{ 0x86,0xCA,0xBD,0x68,0x40,0xDE,0x78,0xE8 } }; // 2663EB28-D010-5610-86CA-BD6840DE78E8 - template <> inline constexpr guid guid_v{ 0x1DFB714C,0x710A,0x58D5,{ 0x9E,0xAD,0x49,0xAC,0x8C,0x3F,0x34,0x98 } }; // 1DFB714C-710A-58D5-9EAD-49AC8C3F3498 - template <> inline constexpr guid guid_v{ 0x2B788E99,0x2384,0x5518,{ 0x82,0x39,0x03,0x2F,0xBE,0x23,0x2D,0x2B } }; // 2B788E99-2384-5518-8239-032FBE232D2B - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall put_AssociationId(winrt::guid) noexcept = 0; - virtual int32_t __stdcall get_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition*) noexcept = 0; - virtual int32_t __stdcall put_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition) noexcept = 0; - virtual int32_t __stdcall get_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition*) noexcept = 0; - virtual int32_t __stdcall put_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(winrt::guid, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall put_AssociationId(winrt::guid) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(winrt::guid, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsTransportAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall get_AbstractionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall CreateTransientLoopbackEndpoints(void*, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult*) noexcept = 0; - virtual int32_t __stdcall RemoveTransientLoopbackEndpoints(void*, bool*) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig - { - [[nodiscard]] auto AssociationId() const; - auto AssociationId(winrt::guid const& value) const; - [[nodiscard]] auto EndpointDefinitionA() const; - auto EndpointDefinitionA(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const; - [[nodiscard]] auto EndpointDefinitionB() const; - auto EndpointDefinitionB(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory - { - auto CreateInstance(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig - { - [[nodiscard]] auto AssociationId() const; - auto AssociationId(winrt::guid const& value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory - { - auto CreateInstance(winrt::guid const& associationId) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManager - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManager; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics - { - [[nodiscard]] auto IsTransportAvailable() const; - [[nodiscard]] auto AbstractionId() const; - auto CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) const; - auto RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult - { - bool Success; - winrt::guid AssociationId; - void* EndpointDeviceIdA; - void* EndpointDeviceIdB; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition - { - void* Name; - void* UniqueId; - void* Description; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h deleted file mode 100644 index 5a5457ec9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h +++ /dev/null @@ -1,52 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointCreationConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointCreationConfig(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointCreationConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointCreationConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointCreationConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointDeletionConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointDeletionConfig(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointDeletionConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointDeletionConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointDeletionConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointDeletionConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointManager : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointManager(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointManagerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointManagerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointManagerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h deleted file mode 100644 index 021b1a4a5..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h +++ /dev/null @@ -1,64 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct MidiLoopbackEndpointCreationResult - { - bool Success; - winrt::guid AssociationId; - hstring EndpointDeviceIdA; - hstring EndpointDeviceIdB; - }; - inline bool operator==(MidiLoopbackEndpointCreationResult const& left, MidiLoopbackEndpointCreationResult const& right) noexcept - { - return left.Success == right.Success && left.AssociationId == right.AssociationId && left.EndpointDeviceIdA == right.EndpointDeviceIdA && left.EndpointDeviceIdB == right.EndpointDeviceIdB; - } - inline bool operator!=(MidiLoopbackEndpointCreationResult const& left, MidiLoopbackEndpointCreationResult const& right) noexcept - { - return !(left == right); - } - struct MidiLoopbackEndpointDefinition - { - hstring Name; - hstring UniqueId; - hstring Description; - }; - inline bool operator==(MidiLoopbackEndpointDefinition const& left, MidiLoopbackEndpointDefinition const& right) noexcept - { - return left.Name == right.Name && left.UniqueId == right.UniqueId && left.Description == right.Description; - } - inline bool operator!=(MidiLoopbackEndpointDefinition const& left, MidiLoopbackEndpointDefinition const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointCreationConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig, - impl::require - { - MidiLoopbackEndpointCreationConfig(std::nullptr_t) noexcept {} - MidiLoopbackEndpointCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig(ptr, take_ownership_from_abi) {} - MidiLoopbackEndpointCreationConfig(); - MidiLoopbackEndpointCreationConfig(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB); - }; - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointDeletionConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig, - impl::require - { - MidiLoopbackEndpointDeletionConfig(std::nullptr_t) noexcept {} - MidiLoopbackEndpointDeletionConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig(ptr, take_ownership_from_abi) {} - explicit MidiLoopbackEndpointDeletionConfig(winrt::guid const& associationId); - }; - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointManager : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager - { - MidiLoopbackEndpointManager(std::nullptr_t) noexcept {} - MidiLoopbackEndpointManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto IsTransportAvailable(); - [[nodiscard]] static auto AbstractionId(); - static auto CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig); - static auto RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h deleted file mode 100644 index 780a0d43a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h +++ /dev/null @@ -1,232 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiDeclaredDeviceIdentity; - struct MidiDeclaredEndpointInfo; - struct MidiEndpointUserSuppliedInfo; - struct MidiFunctionBlock; - enum class MidiProtocol : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct EventRegistrationToken; - template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct IMidiStreamConfigRequestReceivedEventArgs; - struct IMidiVirtualDevice; - struct IMidiVirtualDeviceCreationConfig; - struct IMidiVirtualDeviceCreationConfigFactory; - struct IMidiVirtualDeviceManager; - struct IMidiVirtualDeviceManagerStatics; - struct MidiStreamConfigRequestReceivedEventArgs; - struct MidiVirtualDevice; - struct MidiVirtualDeviceCreationConfig; - struct MidiVirtualDeviceManager; - struct MidiStreamConfigRequestedSettings; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiStreamConfigRequestReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDevice"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDeviceCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDeviceManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiStreamConfigRequestedSettings"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiStreamConfigRequestReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDevice"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceCreationConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceManagerStatics"; - template <> inline constexpr guid guid_v{ 0x95E66544,0x7629,0x50AF,{ 0x9E,0xEE,0x0B,0x10,0x99,0x40,0x8E,0xD6 } }; // 95E66544-7629-50AF-9EEE-0B1099408ED6 - template <> inline constexpr guid guid_v{ 0x95BCDF56,0x519E,0x5E44,{ 0x98,0xF2,0x3B,0x0A,0xE6,0x1F,0x4B,0xC7 } }; // 95BCDF56-519E-5E44-98F2-3B0AE61F4BC7 - template <> inline constexpr guid guid_v{ 0xEF8BC038,0xAC5D,0x5B85,{ 0x88,0x8D,0x11,0xDF,0x01,0x91,0x0D,0xDC } }; // EF8BC038-AC5D-5B85-888D-11DF01910DDC - template <> inline constexpr guid guid_v{ 0x6B3BFE63,0x5C8F,0x57D8,{ 0x8C,0xBA,0x20,0x8C,0x93,0x8F,0x08,0x34 } }; // 6B3BFE63-5C8F-57D8-8CBA-208C938F0834 - template <> inline constexpr guid guid_v{ 0x4235E62B,0xDF65,0x5B6C,{ 0x93,0x0F,0x64,0x0D,0xA2,0xF5,0x64,0x9C } }; // 4235E62B-DF65-5B6C-930F-640DA2F5649C - template <> inline constexpr guid guid_v{ 0xA3C905C1,0x56B5,0x58CE,{ 0xAD,0x79,0x82,0x66,0xE5,0x0A,0x1C,0x0C } }; // A3C905C1-56B5-58CE-AD79-8266E50A1C0C - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_PreferredMidiProtocol(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_RequestEndpointTransmitJitterReductionTimestamps(bool*) noexcept = 0; - virtual int32_t __stdcall get_RequestEndpointReceiveJitterReductionTimestamps(bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_DeviceEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_FunctionBlocks(void**) noexcept = 0; - virtual int32_t __stdcall UpdateFunctionBlock(void*, bool*) noexcept = 0; - virtual int32_t __stdcall UpdateEndpointName(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_SuppressHandledMessages(bool*) noexcept = 0; - virtual int32_t __stdcall put_SuppressHandledMessages(bool) noexcept = 0; - virtual int32_t __stdcall add_StreamConfigRequestReceived(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_StreamConfigRequestReceived(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall put_Name(void*) noexcept = 0; - virtual int32_t __stdcall get_Description(void**) noexcept = 0; - virtual int32_t __stdcall put_Description(void*) noexcept = 0; - virtual int32_t __stdcall get_Manufacturer(void**) noexcept = 0; - virtual int32_t __stdcall put_Manufacturer(void*) noexcept = 0; - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity*) noexcept = 0; - virtual int32_t __stdcall put_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity) noexcept = 0; - virtual int32_t __stdcall get_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo*) noexcept = 0; - virtual int32_t __stdcall put_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo) noexcept = 0; - virtual int32_t __stdcall get_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall put_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo) noexcept = 0; - virtual int32_t __stdcall get_FunctionBlocks(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity, struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsTransportAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall get_AbstractionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall CreateVirtualDevice(void*, void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs - { - [[nodiscard]] auto Timestamp() const; - [[nodiscard]] auto PreferredMidiProtocol() const; - [[nodiscard]] auto RequestEndpointTransmitJitterReductionTimestamps() const; - [[nodiscard]] auto RequestEndpointReceiveJitterReductionTimestamps() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice - { - [[nodiscard]] auto DeviceEndpointDeviceId() const; - [[nodiscard]] auto AssociationId() const; - [[nodiscard]] auto FunctionBlocks() const; - auto UpdateFunctionBlock(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock const& block) const; - auto UpdateEndpointName(param::hstring const& name) const; - [[nodiscard]] auto SuppressHandledMessages() const; - auto SuppressHandledMessages(bool value) const; - auto StreamConfigRequestReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using StreamConfigRequestReceived_revoker = impl::event_revoker::remove_StreamConfigRequestReceived>; - [[nodiscard]] auto StreamConfigRequestReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto StreamConfigRequestReceived(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig - { - [[nodiscard]] auto Name() const; - auto Name(param::hstring const& value) const; - [[nodiscard]] auto Description() const; - auto Description(param::hstring const& value) const; - [[nodiscard]] auto Manufacturer() const; - auto Manufacturer(param::hstring const& value) const; - [[nodiscard]] auto AssociationId() const; - [[nodiscard]] auto DeclaredDeviceIdentity() const; - auto DeclaredDeviceIdentity(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& value) const; - [[nodiscard]] auto DeclaredEndpointInfo() const; - auto DeclaredEndpointInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& value) const; - [[nodiscard]] auto UserSuppliedInfo() const; - auto UserSuppliedInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& value) const; - [[nodiscard]] auto FunctionBlocks() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory - { - auto CreateInstance(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) const; - auto CreateInstance2(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) const; - auto CreateInstance3(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManager - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManager; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics - { - [[nodiscard]] auto IsTransportAvailable() const; - [[nodiscard]] auto AbstractionId() const; - auto CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiStreamConfigRequestedSettings - { - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - int32_t PreferredMidiProtocol; - bool RequestEndpointTransmitJitterReductionTimestamps; - bool RequestEndpointReceiveJitterReductionTimestamps; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiStreamConfigRequestedSettings; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h deleted file mode 100644 index 83dc91a3a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h +++ /dev/null @@ -1,52 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct WINRT_IMPL_EMPTY_BASES IMidiStreamConfigRequestReceivedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiStreamConfigRequestReceivedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiStreamConfigRequestReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDevice : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDevice(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDevice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceCreationConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceCreationConfig(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceCreationConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceCreationConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceCreationConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceManager : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceManager(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceManagerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceManagerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceManagerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h deleted file mode 100644 index 7838b2613..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h +++ /dev/null @@ -1,56 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct MidiStreamConfigRequestedSettings - { - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol PreferredMidiProtocol; - bool RequestEndpointTransmitJitterReductionTimestamps; - bool RequestEndpointReceiveJitterReductionTimestamps; - }; - inline bool operator==(MidiStreamConfigRequestedSettings const& left, MidiStreamConfigRequestedSettings const& right) noexcept - { - return left.SpecificationVersionMajor == right.SpecificationVersionMajor && left.SpecificationVersionMinor == right.SpecificationVersionMinor && left.PreferredMidiProtocol == right.PreferredMidiProtocol && left.RequestEndpointTransmitJitterReductionTimestamps == right.RequestEndpointTransmitJitterReductionTimestamps && left.RequestEndpointReceiveJitterReductionTimestamps == right.RequestEndpointReceiveJitterReductionTimestamps; - } - inline bool operator!=(MidiStreamConfigRequestedSettings const& left, MidiStreamConfigRequestedSettings const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiStreamConfigRequestReceivedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs - { - MidiStreamConfigRequestReceivedEventArgs(std::nullptr_t) noexcept {} - MidiStreamConfigRequestReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDevice : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice, - impl::require - { - MidiVirtualDevice(std::nullptr_t) noexcept {} - MidiVirtualDevice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDeviceCreationConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig, - impl::require - { - MidiVirtualDeviceCreationConfig(std::nullptr_t) noexcept {} - MidiVirtualDeviceCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig(ptr, take_ownership_from_abi) {} - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo); - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity); - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo); - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDeviceManager : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager - { - MidiVirtualDeviceManager(std::nullptr_t) noexcept {} - MidiVirtualDeviceManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto IsTransportAvailable(); - [[nodiscard]] static auto AbstractionId(); - static auto CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h deleted file mode 100644 index 304eccc15..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h +++ /dev/null @@ -1,70 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_0_H -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct Uri; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct IMidiServicesInitializer; - struct IMidiServicesInitializerStatics; - struct MidiServicesInitializer; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.MidiServicesInitializer"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.IMidiServicesInitializer"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.IMidiServicesInitializerStatics"; - template <> inline constexpr guid guid_v{ 0x3A60A020,0x720A,0x563F,{ 0x90,0x9C,0x9C,0x3C,0xF4,0x77,0x21,0xCE } }; // 3A60A020-720A-563F-909C-9C3CF47721CE - template <> inline constexpr guid guid_v{ 0x56FC8938,0x93CD,0x51B3,{ 0x9E,0x6E,0x5B,0xB3,0xDA,0xBD,0x19,0x0E } }; // 56FC8938-93CD-51B3-9E6E-5BB3DABD190E - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall IsOperatingSystemSupported(bool*) noexcept = 0; - virtual int32_t __stdcall EnsureServiceAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall InitializeSdkRuntime(bool*) noexcept = 0; - virtual int32_t __stdcall IsCompatibleDesktopAppSdkRuntimeInstalled(bool*) noexcept = 0; - virtual int32_t __stdcall GetLatestRuntimeReleaseInstallerUri(void**) noexcept = 0; - virtual int32_t __stdcall GetLatestSettingsAppReleaseInstallerUri(void**) noexcept = 0; - virtual int32_t __stdcall GetLatestConsoleAppReleaseInstallerUri(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializer - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializer; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics - { - auto IsOperatingSystemSupported() const; - auto EnsureServiceAvailable() const; - auto InitializeSdkRuntime() const; - auto IsCompatibleDesktopAppSdkRuntimeInstalled() const; - auto GetLatestRuntimeReleaseInstallerUri() const; - auto GetLatestSettingsAppReleaseInstallerUri() const; - auto GetLatestConsoleAppReleaseInstallerUri() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h deleted file mode 100644 index 0fe7114e6..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h +++ /dev/null @@ -1,24 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct WINRT_IMPL_EMPTY_BASES IMidiServicesInitializer : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicesInitializer(std::nullptr_t = nullptr) noexcept {} - IMidiServicesInitializer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServicesInitializerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicesInitializerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiServicesInitializerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h deleted file mode 100644 index 76c852b5f..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h +++ /dev/null @@ -1,22 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct WINRT_IMPL_EMPTY_BASES MidiServicesInitializer : winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer - { - MidiServicesInitializer(std::nullptr_t) noexcept {} - MidiServicesInitializer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer(ptr, take_ownership_from_abi) {} - static auto IsOperatingSystemSupported(); - static auto EnsureServiceAvailable(); - static auto InitializeSdkRuntime(); - static auto IsCompatibleDesktopAppSdkRuntimeInstalled(); - static auto GetLatestRuntimeReleaseInstallerUri(); - static auto GetLatestSettingsAppReleaseInstallerUri(); - static auto GetLatestConsoleAppReleaseInstallerUri(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h deleted file mode 100644 index 70023d180..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h +++ /dev/null @@ -1,331 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct IMidiUniversalPacket; - struct MidiChannel; - enum class MidiFunctionBlockDirection : int32_t; - enum class MidiFunctionBlockRepresentsMidi10Connection : int32_t; - enum class MidiFunctionBlockUIHint : int32_t; - struct MidiGroup; - struct MidiMessage128; - struct MidiMessage32; - struct MidiMessage64; - enum class MidiMessageType : int32_t; - enum class MidiPacketType : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Devices::Midi -{ - struct MidiActiveSensingMessage; - struct MidiChannelPressureMessage; - struct MidiContinueMessage; - struct MidiNoteOffMessage; - struct MidiNoteOnMessage; - struct MidiPitchBendChangeMessage; - struct MidiPolyphonicKeyPressureMessage; - struct MidiProgramChangeMessage; - struct MidiSongPositionPointerMessage; - struct MidiSongSelectMessage; - struct MidiStartMessage; - struct MidiStopMessage; - struct MidiSystemResetMessage; - struct MidiTimeCodeMessage; - struct MidiTimingClockMessage; - struct MidiTuneRequestMessage; -} -WINRT_EXPORT namespace winrt::Windows::Foundation::Collections -{ - template struct WINRT_IMPL_EMPTY_BASES IIterable; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - enum class Midi1ChannelVoiceMessageStatus : int32_t - { - NoteOff = 8, - NoteOn = 9, - PolyPressure = 10, - ControlChange = 11, - ProgramChange = 12, - ChannelPressure = 13, - PitchBend = 14, - }; - enum class Midi2ChannelVoiceMessageStatus : int32_t - { - RegisteredPerNoteController = 0, - AssignablePerNoteController = 1, - RegisteredController = 2, - AssignableController = 3, - RelativeRegisteredController = 4, - RelativeAssignableController = 5, - PerNotePitchBend = 6, - NoteOff = 8, - NoteOn = 9, - PolyPressure = 10, - ControlChange = 11, - ProgramChange = 12, - ChannelPressure = 13, - PitchBend = 14, - PerNoteManagement = 15, - }; - enum class MidiEndpointDiscoveryRequests : uint32_t - { - None = 0, - RequestEndpointInfo = 0x1, - RequestDeviceIdentity = 0x2, - RequestEndpointName = 0x4, - RequestProductInstanceId = 0x8, - RequestStreamConfiguration = 0x10, - }; - enum class MidiFunctionBlockDiscoveryRequests : uint32_t - { - None = 0, - RequestFunctionBlockInfo = 0x1, - RequestFunctionBlockName = 0x2, - }; - enum class MidiSystemExclusive8Status : int32_t - { - CompleteMessageInSingleMessagePacket = 0, - StartMessagePacket = 1, - ContinueMessagePacket = 2, - EndMessagePacket = 3, - }; - struct IMidiMessageBuilderStatics; - struct IMidiMessageConverterStatics; - struct IMidiMessageHelperStatics; - struct IMidiStreamMessageBuilderStatics; - struct MidiMessageBuilder; - struct MidiMessageConverter; - struct MidiMessageHelper; - struct MidiStreamMessageBuilder; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageBuilder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageConverter"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageHelper"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiStreamMessageBuilder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.Midi1ChannelVoiceMessageStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.Midi2ChannelVoiceMessageStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiEndpointDiscoveryRequests"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiFunctionBlockDiscoveryRequests"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiSystemExclusive8Status"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageBuilderStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageConverterStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageHelperStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiStreamMessageBuilderStatics"; - template <> inline constexpr guid guid_v{ 0x090C2C0B,0x95E4,0x5FF3,{ 0xA4,0xA9,0x2C,0x23,0x86,0x10,0x31,0x36 } }; // 090C2C0B-95E4-5FF3-A4A9-2C2386103136 - template <> inline constexpr guid guid_v{ 0x30BE1DB6,0x9E9E,0x5EAC,{ 0xB1,0xE6,0x6D,0x4F,0x11,0xFA,0x1E,0xBF } }; // 30BE1DB6-9E9E-5EAC-B1E6-6D4F11FA1EBF - template <> inline constexpr guid guid_v{ 0xCC84C703,0xE523,0x5597,{ 0xA3,0xD6,0xE8,0xAD,0x68,0x8A,0x96,0xCC } }; // CC84C703-E523-5597-A3D6-E8AD688A96CC - template <> inline constexpr guid guid_v{ 0x03E16477,0x3857,0x5ED3,{ 0x83,0x81,0x59,0xC4,0x0C,0xE4,0xA3,0x3D } }; // 03E16477-3857-5ED3-8381-59C40CE4A33D - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall BuildUtilityMessage(uint64_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemMessage(uint64_t, void*, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMidi1ChannelVoiceMessage(uint64_t, void*, int32_t, void*, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemExclusive7Message(uint64_t, void*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMidi2ChannelVoiceMessage(uint64_t, void*, int32_t, void*, uint16_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemExclusive8Message(uint64_t, void*, int32_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMixedDataSetChunkHeaderMessage(uint64_t, void*, uint8_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMixedDataSetChunkDataMessage(uint64_t, void*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFlexDataMessage(uint64_t, void*, uint8_t, uint8_t, void*, uint8_t, uint8_t, uint32_t, uint32_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamMessage(uint64_t, uint8_t, uint16_t, uint16_t, uint32_t, uint32_t, uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall ConvertMidi1Message(uint64_t, void*, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1Message2(uint64_t, void*, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1Message3(uint64_t, void*, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ChannelPressureMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1NoteOffMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1NoteOnMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1PitchBendChangeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1PolyphonicKeyPressureMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ProgramChangeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TimeCodeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SongPositionPointerMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SongSelectMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TuneRequestMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TimingClockMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1StartMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ContinueMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1StopMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ActiveSensingMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SystemResetMessage(uint64_t, void*, void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall ValidateMessage32MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage64MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage96MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage128MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall GetMessageTypeFromMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetPacketTypeFromMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall MessageTypeHasGroupField(int32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ReplaceGroupInMessageFirstWord(uint32_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetGroupFromMessageFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetStatusFromUtilityMessage(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromMidi1ChannelVoiceMessage(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusBankFromFlexDataMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromFlexDataMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromSystemCommonMessage(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromDataMessage64FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetNumberOfBytesFromDataMessage64FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromDataMessage128FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetNumberOfBytesFromDataMessage128FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall MessageTypeHasChannelField(int32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ReplaceChannelInMessageFirstWord(uint32_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetChannelFromMessageFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetFormFromStreamMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromStreamMessageFirstWord(uint32_t, uint16_t*) noexcept = 0; - virtual int32_t __stdcall GetMessageDisplayNameFromFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetPacketListFromWordList(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall GetWordListFromPacketList(void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall BuildEndpointDiscoveryMessage(uint64_t, uint8_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildEndpointInfoNotificationMessage(uint64_t, uint8_t, uint8_t, bool, uint8_t, bool, bool, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildDeviceIdentityNotificationMessage(uint64_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildEndpointNameNotificationMessages(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall BuildProductInstanceIdNotificationMessages(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseEndpointNameNotificationMessages(void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseProductInstanceIdNotificationMessages(void*, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamConfigurationRequestMessage(uint64_t, uint8_t, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamConfigurationNotificationMessage(uint64_t, uint8_t, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockDiscoveryMessage(uint64_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockInfoNotificationMessage(uint64_t, bool, uint8_t, int32_t, int32_t, int32_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockNameNotificationMessages(uint64_t, uint8_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseFunctionBlockNameNotificationMessages(void*, void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics - { - auto BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) const; - auto BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) const; - auto BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) const; - auto BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) const; - auto BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) const; - auto BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) const; - auto BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) const; - auto BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) const; - auto BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const; - auto BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics - { - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) const; - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) const; - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) const; - auto ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) const; - auto ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) const; - auto ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) const; - auto ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) const; - auto ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) const; - auto ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) const; - auto ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) const; - auto ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) const; - auto ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) const; - auto ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) const; - auto ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) const; - auto ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) const; - auto ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) const; - auto ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) const; - auto ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) const; - auto ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics - { - auto ValidateMessage32MessageType(uint32_t word0) const; - auto ValidateMessage64MessageType(uint32_t word0) const; - auto ValidateMessage96MessageType(uint32_t word0) const; - auto ValidateMessage128MessageType(uint32_t word0) const; - auto GetMessageTypeFromMessageFirstWord(uint32_t word0) const; - auto GetPacketTypeFromMessageFirstWord(uint32_t word0) const; - auto MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const; - auto ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) const; - auto GetGroupFromMessageFirstWord(uint32_t word0) const; - auto GetStatusFromUtilityMessage(uint32_t word0) const; - auto GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) const; - auto GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) const; - auto GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) const; - auto GetStatusFromFlexDataMessageFirstWord(uint32_t word0) const; - auto GetStatusFromSystemCommonMessage(uint32_t word0) const; - auto GetStatusFromDataMessage64FirstWord(uint32_t word0) const; - auto GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) const; - auto GetStatusFromDataMessage128FirstWord(uint32_t word0) const; - auto GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) const; - auto MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const; - auto ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) const; - auto GetChannelFromMessageFirstWord(uint32_t word0) const; - auto GetFormFromStreamMessageFirstWord(uint32_t word0) const; - auto GetStatusFromStreamMessageFirstWord(uint32_t word0) const; - auto GetMessageDisplayNameFromFirstWord(uint32_t word0) const; - auto GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) const; - auto GetWordListFromPacketList(param::iterable const& words) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics - { - auto BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) const; - auto BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) const; - auto BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) const; - auto BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) const; - auto BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) const; - auto ParseEndpointNameNotificationMessages(param::iterable const& messages) const; - auto ParseProductInstanceIdNotificationMessages(param::iterable const& messages) const; - auto BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) const; - auto BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) const; - auto BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) const; - auto BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) const; - auto BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) const; - auto ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h deleted file mode 100644 index e7fce06a8..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - struct WINRT_IMPL_EMPTY_BASES IMidiMessageBuilderStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageBuilderStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageBuilderStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageConverterStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageConverterStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageConverterStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageHelperStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageHelperStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageHelperStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiStreamMessageBuilderStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiStreamMessageBuilderStatics(std::nullptr_t = nullptr) noexcept {} - IMidiStreamMessageBuilderStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h deleted file mode 100644 index dd17a6032..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h +++ /dev/null @@ -1,98 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -#include "winrt/impl/Windows.Devices.Midi.1.h" -#include "winrt/impl/Windows.Foundation.Collections.1.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - struct MidiMessageBuilder - { - MidiMessageBuilder() = delete; - static auto BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved); - static auto BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3); - static auto BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4); - static auto BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5); - static auto BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data); - static auto BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12); - static auto BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2); - static auto BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13); - static auto BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data); - static auto BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data); - }; - struct MidiMessageConverter - { - MidiMessageConverter() = delete; - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte); - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1); - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2); - static auto ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage); - static auto ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage); - static auto ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage); - static auto ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage); - static auto ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage); - static auto ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage); - static auto ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage); - static auto ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage); - static auto ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage); - static auto ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage); - static auto ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage); - static auto ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage); - static auto ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage); - static auto ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage); - static auto ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage); - static auto ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage); - }; - struct MidiMessageHelper - { - MidiMessageHelper() = delete; - static auto ValidateMessage32MessageType(uint32_t word0); - static auto ValidateMessage64MessageType(uint32_t word0); - static auto ValidateMessage96MessageType(uint32_t word0); - static auto ValidateMessage128MessageType(uint32_t word0); - static auto GetMessageTypeFromMessageFirstWord(uint32_t word0); - static auto GetPacketTypeFromMessageFirstWord(uint32_t word0); - static auto MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType); - static auto ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup); - static auto GetGroupFromMessageFirstWord(uint32_t word0); - static auto GetStatusFromUtilityMessage(uint32_t word0); - static auto GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0); - static auto GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0); - static auto GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0); - static auto GetStatusFromFlexDataMessageFirstWord(uint32_t word0); - static auto GetStatusFromSystemCommonMessage(uint32_t word0); - static auto GetStatusFromDataMessage64FirstWord(uint32_t word0); - static auto GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0); - static auto GetStatusFromDataMessage128FirstWord(uint32_t word0); - static auto GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0); - static auto MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType); - static auto ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel); - static auto GetChannelFromMessageFirstWord(uint32_t word0); - static auto GetFormFromStreamMessageFirstWord(uint32_t word0); - static auto GetStatusFromStreamMessageFirstWord(uint32_t word0); - static auto GetMessageDisplayNameFromFirstWord(uint32_t word0); - static auto GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words); - static auto GetWordListFromPacketList(param::iterable const& words); - }; - struct MidiStreamMessageBuilder - { - MidiStreamMessageBuilder() = delete; - static auto BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request); - static auto BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps); - static auto BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4); - static auto BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name); - static auto BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId); - static auto ParseEndpointNameNotificationMessages(param::iterable const& messages); - static auto ParseProductInstanceIdNotificationMessages(param::iterable const& messages); - static auto BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps); - static auto BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps); - static auto BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags); - static auto BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams); - static auto BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name); - static auto ParseFunctionBlockNameNotificationMessages(param::iterable const& messages); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h deleted file mode 100644 index 5cd89b2ef..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h +++ /dev/null @@ -1,131 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - enum class MidiServiceConfigResponseStatus : int32_t - { - Success = 0, - ErrorTargetNotFound = 404, - ErrorConfigJsonNullOrEmpty = 600, - ErrorProcessingConfigJson = 601, - ErrorProcessingResponseJson = 605, - ErrorNotImplemented = 2600, - }; - struct IMidiServiceConfig; - struct IMidiServiceConfigStatics; - struct IMidiServiceMessageProcessingPluginConfig; - struct IMidiServiceTransportPluginConfig; - struct MidiServiceConfig; - struct MidiServiceConfigResponse; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfigResponseStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfigResponse"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceConfigStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceMessageProcessingPluginConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceTransportPluginConfig"; - template <> inline constexpr guid guid_v{ 0x0F1E4863,0xC76E,0x501F,{ 0x97,0x6A,0xDB,0x48,0xFC,0x0C,0x5B,0xB7 } }; // 0F1E4863-C76E-501F-976A-DB48FC0C5BB7 - template <> inline constexpr guid guid_v{ 0x20C5F99A,0x741B,0x513B,{ 0x86,0x55,0xAC,0x13,0x2F,0x05,0x16,0x6B } }; // 20C5F99A-741B-513B-8655-AC132F05166B - template <> inline constexpr guid guid_v{ 0x2EBCFA13,0x585A,0x4376,{ 0x8F,0xE1,0x63,0x57,0x84,0xFA,0x7F,0xD4 } }; // 2EBCFA13-585A-4376-8FE1-635784FA7FD4 - template <> inline constexpr guid guid_v{ 0xB2417DDE,0xEF35,0x499B,{ 0xA8,0x9B,0x0A,0x4C,0x32,0xCC,0x69,0x9A } }; // B2417DDE-EF35-499B-A89B-0A4C32CC699A - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall UpdateTransportPluginConfig(void*, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse*) noexcept = 0; - virtual int32_t __stdcall UpdateProcessingPluginConfig(void*, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_MessageProcessingPluginId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_PluginInstanceId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_IsFromCurrentConfigFile(bool*) noexcept = 0; - virtual int32_t __stdcall GetConfigJson(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_TransportId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_IsFromCurrentConfigFile(bool*) noexcept = 0; - virtual int32_t __stdcall GetConfigJson(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfig - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics - { - auto UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) const; - auto UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto MessageProcessingPluginId() const; - [[nodiscard]] auto PluginInstanceId() const; - [[nodiscard]] auto IsFromCurrentConfigFile() const; - auto GetConfigJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig - { - [[nodiscard]] auto TransportId() const; - [[nodiscard]] auto IsFromCurrentConfigFile() const; - auto GetConfigJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig; - }; - struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse - { - int32_t Status; - void* ResponseJson; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h deleted file mode 100644 index 6cc54f32d..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - struct WINRT_IMPL_EMPTY_BASES IMidiServiceConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceConfigStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceConfigStatics(std::nullptr_t = nullptr) noexcept {} - IMidiServiceConfigStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceMessageProcessingPluginConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceMessageProcessingPluginConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceMessageProcessingPluginConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceTransportPluginConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceTransportPluginConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceTransportPluginConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h deleted file mode 100644 index 66de80d94..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h +++ /dev/null @@ -1,30 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - struct MidiServiceConfigResponse - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponseStatus Status; - hstring ResponseJson; - }; - inline bool operator==(MidiServiceConfigResponse const& left, MidiServiceConfigResponse const& right) noexcept - { - return left.Status == right.Status && left.ResponseJson == right.ResponseJson; - } - inline bool operator!=(MidiServiceConfigResponse const& left, MidiServiceConfigResponse const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiServiceConfig : winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig - { - MidiServiceConfig(std::nullptr_t) noexcept {} - MidiServiceConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig(ptr, take_ownership_from_abi) {} - static auto UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate); - static auto UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 1330d4afb..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 3ec3bf415..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index a6672a0fe..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index 686535059..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 61a87865f..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll deleted file mode 100644 index 3e71dd3a7..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 15faccfac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 626d4a166..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 7dc39cedd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index cc0b45d34..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 1330d4afb..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 3ec3bf415..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index a6672a0fe..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index 686535059..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 61a87865f..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 15faccfac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 626d4a166..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 7dc39cedd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index cc0b45d34..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 9e11bd949..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index f8d03b278..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index 62280d0b1..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index fd62d3e7c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 6d1d55bf5..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 25f462d84..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 7d62d0c0c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 17d899219..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index f10b95cdd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 1c963097c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 1c963097c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 1c963097c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 1c963097c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 9e11bd949..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index f8d03b278..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index 62280d0b1..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index fd62d3e7c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 6d1d55bf5..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 25f462d84..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 7d62d0c0c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 17d899219..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index f10b95cdd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/README.md b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/README.md deleted file mode 100644 index 112ed6921..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Microsoft.Windows.Devices.Midi2 - -Note. This package is currently in developer preview. Please see release notes - -https://aka.ms/midi diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props deleted file mode 100644 index b77844b02..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - $(MSBuildThisFileDirectory)..\..\ - - - - - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Messages.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd - - - $$(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Diagnostics.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd - - - - $(NugetRoot)\ref\native\Microsoft.Windows.Devices.Midi2.Initialization.winmd - - - - - \ No newline at end of file diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets deleted file mode 100644 index 2cdea5d13..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h deleted file mode 100644 index 1d0756148..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h +++ /dev/null @@ -1,293 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte1() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte1(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte2() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte2(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte3() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte3(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte3(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte3(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte4() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_Byte4(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::Byte4(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->put_Byte4(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::AsCombined28BitValue() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_AsCombined28BitValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::IsBroadcast() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_IsBroadcast(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId::IsReserved() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId)->get_IsReserved(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory::CreateInstance(uint32_t combined28BitValue) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdFactory)->CreateInstance(combined28BitValue, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory::CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdFactory)->CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::CreateBroadcast() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->CreateBroadcast(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics::CreateRandom() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueIdStatics)->CreateRandom(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::MidiUniqueId{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Byte1(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte1(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte2(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte2(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte2(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte3(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte3()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte3(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte3(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Byte4(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Byte4()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Byte4(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Byte4(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AsCombined28BitValue(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AsCombined28BitValue()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsBroadcast(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsBroadcast()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsReserved(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsReserved()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint32_t combined28BitValue, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(combined28BitValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateBroadcast(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateBroadcast()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateRandom(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateRandom()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - inline MidiUniqueId::MidiUniqueId() : - MidiUniqueId(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiUniqueId::MidiUniqueId(uint32_t combined28BitValue) : - MidiUniqueId(impl::call_factory([&](IMidiUniqueIdFactory const& f) { return f.CreateInstance(combined28BitValue); })) - { - } - inline MidiUniqueId::MidiUniqueId(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) : - MidiUniqueId(impl::call_factory([&](IMidiUniqueIdFactory const& f) { return f.CreateInstance2(sevenBitByte1, sevenBitByte2, sevenBitByte3, sevenBitByte4); })) - { - } - inline auto MidiUniqueId::ShortLabel() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiUniqueId::LongLabel() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiUniqueId::CreateBroadcast() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.CreateBroadcast(); }); - } - inline auto MidiUniqueId::CreateRandom() - { - return impl::call_factory_cast([](IMidiUniqueIdStatics const& f) { return f.CreateRandom(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h deleted file mode 100644 index ddc7ab50a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h +++ /dev/null @@ -1,273 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedGroup() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_IncludedGroup(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_IncludedGroup(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::IncludedChannels() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_IncludedChannels(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::IncludedGroups() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_IncludedGroups(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::IncludedMessageTypes() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_IncludedMessageTypes(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventCallingFurtherListeners() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_PreventCallingFurtherListeners(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventCallingFurtherListeners(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->put_PreventCallingFurtherListeners(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventFiringMainMessageReceivedEvent() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->get_PreventFiringMainMessageReceivedEvent(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener::PreventFiringMainMessageReceivedEvent(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener)->put_PreventFiringMainMessageReceivedEvent(value)); - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedGroup(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IncludedGroup()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IncludedGroup(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IncludedGroup(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IncludedChannels(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedChannels()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedGroups(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedGroups()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IncludedMessageTypes(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().IncludedMessageTypes()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventCallingFurtherListeners(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventCallingFurtherListeners()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventCallingFurtherListeners(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventCallingFurtherListeners(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreventFiringMainMessageReceivedEvent()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PreventFiringMainMessageReceivedEvent(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - inline MidiChannelEndpointListener::MidiChannelEndpointListener() : - MidiChannelEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiGroupEndpointListener::MidiGroupEndpointListener() : - MidiGroupEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiMessageTypeEndpointListener::MidiMessageTypeEndpointListener() : - MidiMessageTypeEndpointListener(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h deleted file mode 100644 index 1eaad3621..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h +++ /dev/null @@ -1,333 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::DiagnosticsLoopbackAEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->get_DiagnosticsLoopbackAEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::DiagnosticsLoopbackBEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->get_DiagnosticsLoopbackBEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::PingService(uint8_t pingCount) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->PingService(pingCount, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::MidiServicePingResponseSummary{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics::PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiDiagnosticsStatics)->PingService2(pingCount, timeoutMilliseconds, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::MidiServicePingResponseSummary{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetInstalledTransportPlugins() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetInstalledTransportPlugins(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetInstalledMessageProcessingPlugins() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetInstalledMessageProcessingPlugins(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics::GetActiveSessions() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiReportingStatics)->GetActiveSessions(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::Success() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_Success(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::FailureReason() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_FailureReason(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::TotalPingRoundTripMidiClock() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_TotalPingRoundTripMidiClock(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::AveragePingRoundTripMidiClock() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_AveragePingRoundTripMidiClock(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary::Responses() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary)->get_Responses(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::SessionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_SessionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::ProcessId() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_ProcessId(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::ProcessName() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_ProcessName(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::SessionName() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_SessionName(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::StartTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_StartTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo::Connections() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo)->get_Connections(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_DiagnosticsLoopbackAEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DiagnosticsLoopbackAEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DiagnosticsLoopbackBEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DiagnosticsLoopbackBEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PingService(uint8_t pingCount, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PingService(pingCount)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PingService2(uint8_t pingCount, uint32_t timeoutMilliseconds, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PingService(pingCount, timeoutMilliseconds)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall GetInstalledTransportPlugins(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetInstalledTransportPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetInstalledMessageProcessingPlugins(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetInstalledMessageProcessingPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetActiveSessions(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetActiveSessions()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Success(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Success()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FailureReason(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FailureReason()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TotalPingRoundTripMidiClock(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TotalPingRoundTripMidiClock()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AveragePingRoundTripMidiClock(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AveragePingRoundTripMidiClock()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Responses(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Responses()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_SessionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ProcessId(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ProcessId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ProcessName(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ProcessName()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_SessionName(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionName()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_StartTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().StartTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Connections(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Connections()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - inline auto MidiDiagnostics::DiagnosticsLoopbackAEndpointDeviceId() - { - return impl::call_factory_cast([](IMidiDiagnosticsStatics const& f) { return f.DiagnosticsLoopbackAEndpointDeviceId(); }); - } - inline auto MidiDiagnostics::DiagnosticsLoopbackBEndpointDeviceId() - { - return impl::call_factory_cast([](IMidiDiagnosticsStatics const& f) { return f.DiagnosticsLoopbackBEndpointDeviceId(); }); - } - inline auto MidiDiagnostics::PingService(uint8_t pingCount) - { - return impl::call_factory([&](IMidiDiagnosticsStatics const& f) { return f.PingService(pingCount); }); - } - inline auto MidiDiagnostics::PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) - { - return impl::call_factory([&](IMidiDiagnosticsStatics const& f) { return f.PingService(pingCount, timeoutMilliseconds); }); - } - inline auto MidiReporting::GetInstalledTransportPlugins() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetInstalledTransportPlugins(); }); - } - inline auto MidiReporting::GetInstalledMessageProcessingPlugins() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetInstalledMessageProcessingPlugins(); }); - } - inline auto MidiReporting::GetActiveSessions() - { - return impl::call_factory_cast(*)(IMidiReportingStatics const&), MidiReporting, IMidiReportingStatics>([](IMidiReportingStatics const& f) { return f.GetActiveSessions(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h deleted file mode 100644 index 4122a5f63..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h +++ /dev/null @@ -1,277 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::AssociationId(winrt::guid const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_AssociationId(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionA() const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_EndpointDefinitionA(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionA(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_EndpointDefinitionA(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionB() const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->get_EndpointDefinitionB(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig::EndpointDefinitionB(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig)->put_EndpointDefinitionB(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory::CreateInstance(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfigFactory)->CreateInstance(impl::bind_in(associationId), impl::bind_in(endpointDefinitionA), impl::bind_in(endpointDefinitionB), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig::AssociationId(winrt::guid const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig)->put_AssociationId(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory::CreateInstance(winrt::guid const& associationId) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfigFactory)->CreateInstance(impl::bind_in(associationId), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::IsTransportAvailable() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->get_IsTransportAvailable(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::AbstractionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->get_AbstractionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) const - { - winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationResult result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->CreateTransientLoopbackEndpoints(*(void**)(&creationConfig), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics::RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManagerStatics)->RemoveTransientLoopbackEndpoints(*(void**)(&deletionConfig), &result)); - return result; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_AssociationId(winrt::guid value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AssociationId(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDefinitionA()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDefinitionA(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDefinitionB()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDefinitionB(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(winrt::guid associationId, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition endpointDefinitionA, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition endpointDefinitionB, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&associationId), *reinterpret_cast(&endpointDefinitionA), *reinterpret_cast(&endpointDefinitionB))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_AssociationId(winrt::guid value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AssociationId(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(winrt::guid associationId, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&associationId))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsTransportAvailable(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsTransportAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AbstractionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AbstractionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateTransientLoopbackEndpoints(void* creationConfig, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateTransientLoopbackEndpoints(*reinterpret_cast(&creationConfig))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall RemoveTransientLoopbackEndpoints(void* deletionConfig, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().RemoveTransientLoopbackEndpoints(*reinterpret_cast(&deletionConfig))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - inline MidiLoopbackEndpointCreationConfig::MidiLoopbackEndpointCreationConfig() : - MidiLoopbackEndpointCreationConfig(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiLoopbackEndpointCreationConfig::MidiLoopbackEndpointCreationConfig(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) : - MidiLoopbackEndpointCreationConfig(impl::call_factory([&](IMidiLoopbackEndpointCreationConfigFactory const& f) { return f.CreateInstance(associationId, endpointDefinitionA, endpointDefinitionB); })) - { - } - inline MidiLoopbackEndpointDeletionConfig::MidiLoopbackEndpointDeletionConfig(winrt::guid const& associationId) : - MidiLoopbackEndpointDeletionConfig(impl::call_factory([&](IMidiLoopbackEndpointDeletionConfigFactory const& f) { return f.CreateInstance(associationId); })) - { - } - inline auto MidiLoopbackEndpointManager::IsTransportAvailable() - { - return impl::call_factory_cast([](IMidiLoopbackEndpointManagerStatics const& f) { return f.IsTransportAvailable(); }); - } - inline auto MidiLoopbackEndpointManager::AbstractionId() - { - return impl::call_factory_cast([](IMidiLoopbackEndpointManagerStatics const& f) { return f.AbstractionId(); }); - } - inline auto MidiLoopbackEndpointManager::CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) - { - return impl::call_factory([&](IMidiLoopbackEndpointManagerStatics const& f) { return f.CreateTransientLoopbackEndpoints(creationConfig); }); - } - inline auto MidiLoopbackEndpointManager::RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) - { - return impl::call_factory([&](IMidiLoopbackEndpointManagerStatics const& f) { return f.RemoveTransientLoopbackEndpoints(deletionConfig); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h deleted file mode 100644 index 7cb112476..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h +++ /dev/null @@ -1,528 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::PreferredMidiProtocol() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_PreferredMidiProtocol(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::RequestEndpointTransmitJitterReductionTimestamps() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_RequestEndpointTransmitJitterReductionTimestamps(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs::RequestEndpointReceiveJitterReductionTimestamps() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs)->get_RequestEndpointReceiveJitterReductionTimestamps(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::DeviceEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_DeviceEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::FunctionBlocks() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_FunctionBlocks(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::UpdateFunctionBlock(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock const& block) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->UpdateFunctionBlock(*(void**)(&block), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::UpdateEndpointName(param::hstring const& name) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->UpdateEndpointName(*(void**)(&name), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::SuppressHandledMessages() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->get_SuppressHandledMessages(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::SuppressHandledMessages(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->put_SuppressHandledMessages(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->add_StreamConfigRequestReceived(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, StreamConfigRequestReceived(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice::StreamConfigRequestReceived(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice)->remove_StreamConfigRequestReceived(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Name(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Name(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Description() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Description(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Description(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Description(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Manufacturer() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_Manufacturer(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::Manufacturer(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_Manufacturer(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::AssociationId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_AssociationId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredDeviceIdentity() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_DeclaredDeviceIdentity(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredDeviceIdentity(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_DeclaredDeviceIdentity(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredEndpointInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_DeclaredEndpointInfo(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::DeclaredEndpointInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_DeclaredEndpointInfo(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::UserSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_UserSuppliedInfo(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::UserSuppliedInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->put_UserSuppliedInfo(impl::bind_in(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig::FunctionBlocks() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig)->get_FunctionBlocks(&value)); - return winrt::Windows::Foundation::Collections::IVector{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance2(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance2(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), impl::bind_in(declaredDeviceIdentity), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory::CreateInstance3(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfigFactory)->CreateInstance3(*(void**)(&name), *(void**)(&description), *(void**)(&manufacturer), impl::bind_in(declaredEndpointInfo), impl::bind_in(declaredDeviceIdentity), impl::bind_in(userSuppliedInfo), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::IsTransportAvailable() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->get_IsTransportAvailable(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::AbstractionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->get_AbstractionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics::CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManagerStatics)->CreateVirtualDevice(*(void**)(&creationConfig), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDevice{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PreferredMidiProtocol(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PreferredMidiProtocol()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RequestEndpointTransmitJitterReductionTimestamps(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RequestEndpointTransmitJitterReductionTimestamps()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RequestEndpointReceiveJitterReductionTimestamps(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RequestEndpointReceiveJitterReductionTimestamps()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_DeviceEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FunctionBlocks(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().FunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateFunctionBlock(void* block, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateFunctionBlock(*reinterpret_cast(&block))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateEndpointName(void* name, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateEndpointName(*reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_SuppressHandledMessages(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SuppressHandledMessages()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_SuppressHandledMessages(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().SuppressHandledMessages(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall add_StreamConfigRequestReceived(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().StreamConfigRequestReceived(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_StreamConfigRequestReceived(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().StreamConfigRequestReceived(*reinterpret_cast(&token)); - return 0; - } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Name(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Name(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Description(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Description()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Description(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Description(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Manufacturer(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Manufacturer()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Manufacturer(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Manufacturer(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AssociationId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AssociationId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredDeviceIdentity()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DeclaredDeviceIdentity(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredEndpointInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DeclaredEndpointInfo(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().UserSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().UserSuppliedInfo(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FunctionBlocks(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().FunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity declaredDeviceIdentity, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo), *reinterpret_cast(&declaredDeviceIdentity))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(void* name, void* description, void* manufacturer, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo declaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity declaredDeviceIdentity, struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo userSuppliedInfo, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(*reinterpret_cast(&name), *reinterpret_cast(&description), *reinterpret_cast(&manufacturer), *reinterpret_cast(&declaredEndpointInfo), *reinterpret_cast(&declaredDeviceIdentity), *reinterpret_cast(&userSuppliedInfo))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsTransportAvailable(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsTransportAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AbstractionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AbstractionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateVirtualDevice(void* creationConfig, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateVirtualDevice(*reinterpret_cast(&creationConfig))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance(name, description, manufacturer, declaredEndpointInfo); })) - { - } - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance2(name, description, manufacturer, declaredEndpointInfo, declaredDeviceIdentity); })) - { - } - inline MidiVirtualDeviceCreationConfig::MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) : - MidiVirtualDeviceCreationConfig(impl::call_factory([&](IMidiVirtualDeviceCreationConfigFactory const& f) { return f.CreateInstance3(name, description, manufacturer, declaredEndpointInfo, declaredDeviceIdentity, userSuppliedInfo); })) - { - } - inline auto MidiVirtualDeviceManager::IsTransportAvailable() - { - return impl::call_factory_cast([](IMidiVirtualDeviceManagerStatics const& f) { return f.IsTransportAvailable(); }); - } - inline auto MidiVirtualDeviceManager::AbstractionId() - { - return impl::call_factory_cast([](IMidiVirtualDeviceManagerStatics const& f) { return f.AbstractionId(); }); - } - inline auto MidiVirtualDeviceManager::CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) - { - return impl::call_factory([&](IMidiVirtualDeviceManagerStatics const& f) { return f.CreateVirtualDevice(creationConfig); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h deleted file mode 100644 index 3fec6b2d9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h +++ /dev/null @@ -1,162 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::IsOperatingSystemSupported() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->IsOperatingSystemSupported(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::EnsureServiceAvailable() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->EnsureServiceAvailable(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::InitializeSdkRuntime() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->InitializeSdkRuntime(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::IsCompatibleDesktopAppSdkRuntimeInstalled() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->IsCompatibleDesktopAppSdkRuntimeInstalled(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestRuntimeReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestRuntimeReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestSettingsAppReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestSettingsAppReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics::GetLatestConsoleAppReleaseInstallerUri() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializerStatics)->GetLatestConsoleAppReleaseInstallerUri(&result)); - return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall IsOperatingSystemSupported(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsOperatingSystemSupported()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall EnsureServiceAvailable(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().EnsureServiceAvailable()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall InitializeSdkRuntime(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().InitializeSdkRuntime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsCompatibleDesktopAppSdkRuntimeInstalled(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsCompatibleDesktopAppSdkRuntimeInstalled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestRuntimeReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestRuntimeReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestSettingsAppReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestSettingsAppReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetLatestConsoleAppReleaseInstallerUri(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetLatestConsoleAppReleaseInstallerUri()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - inline auto MidiServicesInitializer::IsOperatingSystemSupported() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.IsOperatingSystemSupported(); }); - } - inline auto MidiServicesInitializer::EnsureServiceAvailable() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.EnsureServiceAvailable(); }); - } - inline auto MidiServicesInitializer::InitializeSdkRuntime() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.InitializeSdkRuntime(); }); - } - inline auto MidiServicesInitializer::IsCompatibleDesktopAppSdkRuntimeInstalled() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.IsCompatibleDesktopAppSdkRuntimeInstalled(); }); - } - inline auto MidiServicesInitializer::GetLatestRuntimeReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestRuntimeReleaseInstallerUri(); }); - } - inline auto MidiServicesInitializer::GetLatestSettingsAppReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestSettingsAppReleaseInstallerUri(); }); - } - inline auto MidiServicesInitializer::GetLatestConsoleAppReleaseInstallerUri() - { - return impl::call_factory_cast([](IMidiServicesInitializerStatics const& f) { return f.GetLatestConsoleAppReleaseInstallerUri(); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h deleted file mode 100644 index dc6388835..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h +++ /dev/null @@ -1,1341 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Windows.Devices.Midi.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildUtilityMessage(timestamp, status, dataOrReserved, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemMessage(timestamp, *(void**)(&group), status, midi1Byte2, midi1Byte3, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMidi1ChannelVoiceMessage(timestamp, *(void**)(&group), static_cast(status), *(void**)(&channel), byte3, byte4, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemExclusive7Message(timestamp, *(void**)(&group), status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMidi2ChannelVoiceMessage(timestamp, *(void**)(&group), static_cast(status), *(void**)(&channel), index, data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildSystemExclusive8Message(timestamp, *(void**)(&group), static_cast(status), numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMixedDataSetChunkHeaderMessage(timestamp, *(void**)(&group), mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildMixedDataSetChunkDataMessage(timestamp, *(void**)(&group), mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildFlexDataMessage(timestamp, *(void**)(&group), form, address, *(void**)(&channel), statusBank, status, word1Data, word2Data, word3Data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics::BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageBuilderStatics)->BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message(timestamp, *(void**)(&group), statusByte, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message2(timestamp, *(void**)(&group), statusByte, dataByte1, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1Message3(timestamp, *(void**)(&group), statusByte, dataByte1, dataByte2, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ChannelPressureMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1NoteOffMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1NoteOnMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1PitchBendChangeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1PolyphonicKeyPressureMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ProgramChangeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TimeCodeMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SongPositionPointerMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SongSelectMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TuneRequestMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1TimingClockMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1StartMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ContinueMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1StopMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1ActiveSensingMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics::ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageConverterStatics)->ConvertMidi1SystemResetMessage(timestamp, *(void**)(&group), *(void**)(&originalMessage), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage32MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage32MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage64MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage64MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage96MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage96MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ValidateMessage128MessageType(uint32_t word0) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ValidateMessage128MessageType(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetMessageTypeFromMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetMessageTypeFromMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetPacketTypeFromMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetPacketTypeFromMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->MessageTypeHasGroupField(static_cast(messageType), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ReplaceGroupInMessageFirstWord(word0, *(void**)(&newGroup), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetGroupFromMessageFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetGroupFromMessageFirstWord(word0, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromUtilityMessage(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromUtilityMessage(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromMidi1ChannelVoiceMessage(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusBankFromFlexDataMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromFlexDataMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromFlexDataMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromSystemCommonMessage(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromSystemCommonMessage(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromDataMessage64FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromDataMessage64FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetNumberOfBytesFromDataMessage64FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromDataMessage128FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromDataMessage128FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetNumberOfBytesFromDataMessage128FirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->MessageTypeHasChannelField(static_cast(messageType), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->ReplaceChannelInMessageFirstWord(word0, *(void**)(&newChannel), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetChannelFromMessageFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetChannelFromMessageFirstWord(word0, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiChannel{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetFormFromStreamMessageFirstWord(uint32_t word0) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetFormFromStreamMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetStatusFromStreamMessageFirstWord(uint32_t word0) const - { - uint16_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetStatusFromStreamMessageFirstWord(word0, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetMessageDisplayNameFromFirstWord(uint32_t word0) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetMessageDisplayNameFromFirstWord(word0, &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetPacketListFromWordList(timestamp, *(void**)(&words), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics::GetWordListFromPacketList(param::iterable const& words) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiMessageHelperStatics)->GetWordListFromPacketList(*(void**)(&words), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, static_cast(request), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildEndpointNameNotificationMessages(timestamp, *(void**)(&name), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildProductInstanceIdNotificationMessages(timestamp, *(void**)(&productInstanceId), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseEndpointNameNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseEndpointNameNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseProductInstanceIdNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseProductInstanceIdNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, static_cast(requestFlags), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, static_cast(uiHint), static_cast(midi10), static_cast(direction), firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, *(void**)(&name), &result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics::ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::Messages::IMidiStreamMessageBuilderStatics)->ParseFunctionBlockNameNotificationMessages(*(void**)(&messages), &result)); - return hstring{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildUtilityMessage(timestamp, status, dataOrReserved)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemMessage(uint64_t timestamp, void* group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemMessage(timestamp, *reinterpret_cast(&group), status, midi1Byte2, midi1Byte3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMidi1ChannelVoiceMessage(uint64_t timestamp, void* group, int32_t status, void* channel, uint8_t byte3, uint8_t byte4, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMidi1ChannelVoiceMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), *reinterpret_cast(&channel), byte3, byte4)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemExclusive7Message(uint64_t timestamp, void* group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemExclusive7Message(timestamp, *reinterpret_cast(&group), status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMidi2ChannelVoiceMessage(uint64_t timestamp, void* group, int32_t status, void* channel, uint16_t index, uint32_t data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMidi2ChannelVoiceMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), *reinterpret_cast(&channel), index, data)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildSystemExclusive8Message(uint64_t timestamp, void* group, int32_t status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildSystemExclusive8Message(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&status), numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, void* group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMixedDataSetChunkHeaderMessage(timestamp, *reinterpret_cast(&group), mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildMixedDataSetChunkDataMessage(uint64_t timestamp, void* group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildMixedDataSetChunkDataMessage(timestamp, *reinterpret_cast(&group), mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFlexDataMessage(uint64_t timestamp, void* group, uint8_t form, uint8_t address, void* channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFlexDataMessage(timestamp, *reinterpret_cast(&group), form, address, *reinterpret_cast(&channel), statusBank, status, word1Data, word2Data, word3Data)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall ConvertMidi1Message(uint64_t timestamp, void* group, uint8_t statusByte, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1Message2(uint64_t timestamp, void* group, uint8_t statusByte, uint8_t dataByte1, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte, dataByte1)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1Message3(uint64_t timestamp, void* group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1Message(timestamp, *reinterpret_cast(&group), statusByte, dataByte1, dataByte2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ChannelPressureMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ChannelPressureMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1NoteOffMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1NoteOffMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1NoteOnMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1NoteOnMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1PitchBendChangeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1PolyphonicKeyPressureMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ProgramChangeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ProgramChangeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TimeCodeMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TimeCodeMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SongPositionPointerMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SongSelectMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SongSelectMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TuneRequestMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TuneRequestMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1TimingClockMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1TimingClockMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1StartMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1StartMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ContinueMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ContinueMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1StopMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1StopMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1ActiveSensingMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1ActiveSensingMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertMidi1SystemResetMessage(uint64_t timestamp, void* group, void* originalMessage, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertMidi1SystemResetMessage(timestamp, *reinterpret_cast(&group), *reinterpret_cast(&originalMessage))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall ValidateMessage32MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage32MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage64MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage64MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage96MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage96MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ValidateMessage128MessageType(uint32_t word0, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ValidateMessage128MessageType(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessageTypeFromMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessageTypeFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetPacketTypeFromMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetPacketTypeFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall MessageTypeHasGroupField(int32_t messageType, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().MessageTypeHasGroupField(*reinterpret_cast(&messageType))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ReplaceGroupInMessageFirstWord(uint32_t word0, void* newGroup, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ReplaceGroupInMessageFirstWord(word0, *reinterpret_cast(&newGroup))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetGroupFromMessageFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetGroupFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromUtilityMessage(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromUtilityMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromMidi1ChannelVoiceMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0, int32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusBankFromFlexDataMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromFlexDataMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromFlexDataMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromSystemCommonMessage(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromSystemCommonMessage(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromDataMessage64FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromDataMessage64FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetNumberOfBytesFromDataMessage64FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromDataMessage128FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromDataMessage128FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetNumberOfBytesFromDataMessage128FirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall MessageTypeHasChannelField(int32_t messageType, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().MessageTypeHasChannelField(*reinterpret_cast(&messageType))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ReplaceChannelInMessageFirstWord(uint32_t word0, void* newChannel, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ReplaceChannelInMessageFirstWord(word0, *reinterpret_cast(&newChannel))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetChannelFromMessageFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetChannelFromMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetFormFromStreamMessageFirstWord(uint32_t word0, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetFormFromStreamMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetStatusFromStreamMessageFirstWord(uint32_t word0, uint16_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetStatusFromStreamMessageFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessageDisplayNameFromFirstWord(uint32_t word0, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessageDisplayNameFromFirstWord(word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetPacketListFromWordList(uint64_t timestamp, void* words, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetPacketListFromWordList(timestamp, *reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetWordListFromPacketList(void* words, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetWordListFromPacketList(*reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, uint32_t request, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, *reinterpret_cast(&request))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildEndpointNameNotificationMessages(uint64_t timestamp, void* name, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildEndpointNameNotificationMessages(timestamp, *reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildProductInstanceIdNotificationMessages(uint64_t timestamp, void* productInstanceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildProductInstanceIdNotificationMessages(timestamp, *reinterpret_cast(&productInstanceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseEndpointNameNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseEndpointNameNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseProductInstanceIdNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseProductInstanceIdNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, uint32_t requestFlags, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, *reinterpret_cast(&requestFlags))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, int32_t uiHint, int32_t midi10, int32_t direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, *reinterpret_cast(&uiHint), *reinterpret_cast(&midi10), *reinterpret_cast(&direction), firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, void* name, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, *reinterpret_cast(&name))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ParseFunctionBlockNameNotificationMessages(void* messages, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ParseFunctionBlockNameNotificationMessages(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - constexpr auto operator|(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiEndpointDiscoveryRequests const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiEndpointDiscoveryRequests const left, MidiEndpointDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiEndpointDiscoveryRequests& left, MidiEndpointDiscoveryRequests const right) noexcept - { - left = left ^ right; - return left; - } - constexpr auto operator|(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiFunctionBlockDiscoveryRequests const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiFunctionBlockDiscoveryRequests const left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiFunctionBlockDiscoveryRequests& left, MidiFunctionBlockDiscoveryRequests const right) noexcept - { - left = left ^ right; - return left; - } - inline auto MidiMessageBuilder::BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildUtilityMessage(timestamp, status, dataOrReserved); }); - } - inline auto MidiMessageBuilder::BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemMessage(timestamp, group, status, midi1Byte2, midi1Byte3); }); - } - inline auto MidiMessageBuilder::BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMidi1ChannelVoiceMessage(timestamp, group, status, channel, byte3, byte4); }); - } - inline auto MidiMessageBuilder::BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemExclusive7Message(timestamp, group, status, numberOfBytes, dataByte0, dataByte1, dataByte2, dataByte3, dataByte4, dataByte5); }); - } - inline auto MidiMessageBuilder::BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMidi2ChannelVoiceMessage(timestamp, group, status, channel, index, data); }); - } - inline auto MidiMessageBuilder::BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildSystemExclusive8Message(timestamp, group, status, numberOfValidDataBytesThisMessage, streamId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12); }); - } - inline auto MidiMessageBuilder::BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMixedDataSetChunkHeaderMessage(timestamp, group, mdsId, numberValidDataBytesInThisChunk, numberChunksInMixedDataSet, numberOfThisChunk, manufacturerId, deviceId, subId1, subId2); }); - } - inline auto MidiMessageBuilder::BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildMixedDataSetChunkDataMessage(timestamp, group, mdsId, dataByte00, dataByte01, dataByte02, dataByte03, dataByte04, dataByte05, dataByte06, dataByte07, dataByte08, dataByte09, dataByte10, dataByte11, dataByte12, dataByte13); }); - } - inline auto MidiMessageBuilder::BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildFlexDataMessage(timestamp, group, form, address, channel, statusBank, status, word1Data, word2Data, word3Data); }); - } - inline auto MidiMessageBuilder::BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) - { - return impl::call_factory([&](IMidiMessageBuilderStatics const& f) { return f.BuildStreamMessage(timestamp, form, status, word0RemainingData, word1Data, word2Data, word3Data); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte, dataByte1); }); - } - inline auto MidiMessageConverter::ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1Message(timestamp, group, statusByte, dataByte1, dataByte2); }); - } - inline auto MidiMessageConverter::ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ChannelPressureMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1NoteOffMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1NoteOnMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1PitchBendChangeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1PolyphonicKeyPressureMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ProgramChangeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TimeCodeMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SongPositionPointerMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SongSelectMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TuneRequestMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1TimingClockMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1StartMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ContinueMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1StopMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1ActiveSensingMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageConverter::ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) - { - return impl::call_factory([&](IMidiMessageConverterStatics const& f) { return f.ConvertMidi1SystemResetMessage(timestamp, group, originalMessage); }); - } - inline auto MidiMessageHelper::ValidateMessage32MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage32MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage64MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage64MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage96MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage96MessageType(word0); }); - } - inline auto MidiMessageHelper::ValidateMessage128MessageType(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ValidateMessage128MessageType(word0); }); - } - inline auto MidiMessageHelper::GetMessageTypeFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetMessageTypeFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetPacketTypeFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetPacketTypeFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.MessageTypeHasGroupField(messageType); }); - } - inline auto MidiMessageHelper::ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ReplaceGroupInMessageFirstWord(word0, newGroup); }); - } - inline auto MidiMessageHelper::GetGroupFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetGroupFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromUtilityMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromUtilityMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromMidi1ChannelVoiceMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromMidi2ChannelVoiceMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusBankFromFlexDataMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromFlexDataMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromFlexDataMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromSystemCommonMessage(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromSystemCommonMessage(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromDataMessage64FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromDataMessage64FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetNumberOfBytesFromDataMessage64FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromDataMessage128FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromDataMessage128FirstWord(word0); }); - } - inline auto MidiMessageHelper::GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetNumberOfBytesFromDataMessage128FirstWord(word0); }); - } - inline auto MidiMessageHelper::MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.MessageTypeHasChannelField(messageType); }); - } - inline auto MidiMessageHelper::ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.ReplaceChannelInMessageFirstWord(word0, newChannel); }); - } - inline auto MidiMessageHelper::GetChannelFromMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetChannelFromMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetFormFromStreamMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetFormFromStreamMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetStatusFromStreamMessageFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetStatusFromStreamMessageFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetMessageDisplayNameFromFirstWord(uint32_t word0) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetMessageDisplayNameFromFirstWord(word0); }); - } - inline auto MidiMessageHelper::GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetPacketListFromWordList(timestamp, words); }); - } - inline auto MidiMessageHelper::GetWordListFromPacketList(param::iterable const& words) - { - return impl::call_factory([&](IMidiMessageHelperStatics const& f) { return f.GetWordListFromPacketList(words); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointDiscoveryMessage(timestamp, umpVersionMajor, umpVersionMinor, request); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointInfoNotificationMessage(timestamp, umpVersionMajor, umpVersionMinor, hasStaticFunctionBlocks, numberOfFunctionBlocks, supportsMidi20Protocol, supportsMidi10Protocol, supportsReceivingJitterReductionTimestamps, supportsSendingJitterReductionTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildDeviceIdentityNotificationMessage(timestamp, deviceManufacturerSysExIdByte1, deviceManufacturerSysExIdByte2, deviceManufacturerSysExIdByte3, deviceFamilyLsb, deviceFamilyMsb, deviceFamilyModelNumberLsb, deviceFamilyModelNumberMsb, softwareRevisionLevelByte1, softwareRevisionLevelByte2, softwareRevisionLevelByte3, softwareRevisionLevelByte4); }); - } - inline auto MidiStreamMessageBuilder::BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildEndpointNameNotificationMessages(timestamp, name); }); - } - inline auto MidiStreamMessageBuilder::BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildProductInstanceIdNotificationMessages(timestamp, productInstanceId); }); - } - inline auto MidiStreamMessageBuilder::ParseEndpointNameNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseEndpointNameNotificationMessages(messages); }); - } - inline auto MidiStreamMessageBuilder::ParseProductInstanceIdNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseProductInstanceIdNotificationMessages(messages); }); - } - inline auto MidiStreamMessageBuilder::BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildStreamConfigurationRequestMessage(timestamp, protocol, expectToReceiveJRTimestamps, requestToSendJRTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildStreamConfigurationNotificationMessage(timestamp, protocol, confirmationWillReceiveJRTimestamps, confirmationSendJRTimestamps); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockDiscoveryMessage(timestamp, functionBlockNumber, requestFlags); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockInfoNotificationMessage(timestamp, active, functionBlockNumber, uiHint, midi10, direction, firstGroup, numberOfGroups, midiCIVersionFormat, maxNumberSysEx8Streams); }); - } - inline auto MidiStreamMessageBuilder::BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.BuildFunctionBlockNameNotificationMessages(timestamp, functionBlockNumber, name); }); - } - inline auto MidiStreamMessageBuilder::ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) - { - return impl::call_factory([&](IMidiStreamMessageBuilderStatics const& f) { return f.ParseFunctionBlockNameNotificationMessages(messages); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h deleted file mode 100644 index e221d614e..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h +++ /dev/null @@ -1,192 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/Microsoft.Windows.Devices.Midi2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics::UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) const - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponse result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfigStatics)->UpdateTransportPluginConfig(*(void**)(&configUpdate), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics::UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) const - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponse result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfigStatics)->UpdateProcessingPluginConfig(*(void**)(&configUpdate), put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::MessageProcessingPluginId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_MessageProcessingPluginId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::PluginInstanceId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_PluginInstanceId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::IsFromCurrentConfigFile() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->get_IsFromCurrentConfigFile(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig::GetConfigJson() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig)->GetConfigJson(&result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::TransportId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->get_TransportId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::IsFromCurrentConfigFile() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->get_IsFromCurrentConfigFile(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig::GetConfigJson() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig)->GetConfigJson(&result)); - return hstring{ result, take_ownership_from_abi }; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall UpdateTransportPluginConfig(void* configUpdate, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateTransportPluginConfig(*reinterpret_cast(&configUpdate))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateProcessingPluginConfig(void* configUpdate, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateProcessingPluginConfig(*reinterpret_cast(&configUpdate))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageProcessingPluginId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageProcessingPluginId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PluginInstanceId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PluginInstanceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsFromCurrentConfigFile(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsFromCurrentConfigFile()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetConfigJson(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetConfigJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; - template - struct produce : produce_base - { - int32_t __stdcall get_TransportId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TransportId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsFromCurrentConfigFile(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsFromCurrentConfigFile()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetConfigJson(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetConfigJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - inline auto MidiServiceConfig::UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) - { - return impl::call_factory([&](IMidiServiceConfigStatics const& f) { return f.UpdateTransportPluginConfig(configUpdate); }); - } - inline auto MidiServiceConfig::UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) - { - return impl::call_factory([&](IMidiServiceConfigStatics const& f) { return f.UpdateProcessingPluginConfig(configUpdate); }); - } -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h deleted file mode 100644 index 3a83fd447..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h +++ /dev/null @@ -1,3689 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_H -#include "winrt/base.h" -static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); -#define CPPWINRT_VERSION "2.0.240405.15" -#include "winrt/impl/Windows.Devices.Enumeration.2.h" -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Windows.Foundation.Collections.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -namespace winrt::impl -{ - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::Index() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->get_Index(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::Index(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->put_Index(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannel::DisplayValue() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel)->get_DisplayValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory::CreateInstance(uint8_t index) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelFactory)->CreateInstance(index, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiChannel{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics::IsValidIndex(uint8_t index) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiChannelStatics)->IsValidIndex(index, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::Now() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_Now(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::TimestampConstantSendImmediately() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_TimestampConstantSendImmediately(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::TimestampFrequency() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->get_TimestampFrequency(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToNanoseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToMicroseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToMilliseconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::ConvertTimestampTicksToSeconds(uint64_t timestampValue) const - { - double result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->ConvertTimestampTicksToSeconds(timestampValue, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByTicks(timestampValue, offsetTicks, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics::OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) const - { - uint64_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiClockStatics)->OffsetTimestampBySeconds(timestampValue, offsetSeconds, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::ConnectionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_ConnectionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::ConnectedEndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_ConnectedEndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Tag() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_Tag(&value)); - return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Tag(winrt::Windows::Foundation::IInspectable const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->put_Tag(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::LogMessageDataValidationErrorDetails() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_LogMessageDataValidationErrorDetails(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::LogMessageDataValidationErrorDetails(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->put_LogMessageDataValidationErrorDetails(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Settings() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_Settings(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::IsOpen() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_IsOpen(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::Open() const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->Open(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::IsAutoReconnectEnabled() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_IsAutoReconnectEnabled(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::MessageProcessingPlugins() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->get_MessageProcessingPlugins(&value)); - return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::AddMessageProcessingPlugin(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin const& plugin) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->AddMessageProcessingPlugin(*(void**)(&plugin))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::RemoveMessageProcessingPlugin(winrt::guid const& id) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->RemoveMessageProcessingPlugin(impl::bind_in(id))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessagePacket(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket const& message) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessagePacket(*(void**)(&message), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageStruct(timestamp, wordCount, impl::bind_in(message), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, array_view words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWordArray(timestamp, startIndex, wordCount, words.size(), get_abi(words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords(timestamp, word0, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords2(timestamp, word0, word1, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords3(timestamp, word0, word1, word2, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageWords4(timestamp, word0, word1, word2, word3, reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendSingleMessageBuffer(timestamp, byteOffset, byteCount, *(void**)(&buffer), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesWordList(uint64_t timestamp, param::iterable const& words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesWordList(timestamp, *(void**)(&words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, array_view words) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesWordArray(timestamp, startIndex, wordCount, words.size(), get_abi(words), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesPacketList(param::iterable const& messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesPacketList(*(void**)(&messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesStructList(uint64_t timestamp, param::iterable const& messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesStructList(timestamp, *(void**)(&messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, array_view messages) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesStructArray(timestamp, startIndex, messageCount, messages.size(), get_abi(messages), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection::SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection)->SendMultipleMessagesBuffer(timestamp, byteOffset, byteCount, *(void**)(&buffer), reinterpret_cast(&result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings::SettingsJson() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings)->get_SettingsJson(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->add_EndpointDeviceDisconnected(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EndpointDeviceDisconnected(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceDisconnected(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->remove_EndpointDeviceDisconnected(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->add_EndpointDeviceReconnected(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EndpointDeviceReconnected(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource::EndpointDeviceReconnected(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource)->remove_EndpointDeviceReconnected(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::GetDeviceSelector() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->GetDeviceSelector(&result)); - return hstring{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->SendMessageSucceeded(static_cast(sendResult), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics::SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionStatics)->SendMessageFailed(static_cast(sendResult), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::ContainerId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_ContainerId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeviceInstanceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeviceInstanceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::EndpointPurpose() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDevicePurpose value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_EndpointPurpose(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredEndpointInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredEndpointInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredEndpointInfoLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredEndpointInfoLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredDeviceIdentity() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredDeviceIdentity(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredDeviceIdentityLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredDeviceIdentityLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredStreamConfiguration() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredStreamConfiguration result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredStreamConfiguration(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredStreamConfigurationLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredStreamConfigurationLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetDeclaredFunctionBlocks() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetDeclaredFunctionBlocks(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::DeclaredFunctionBlocksLastUpdateTime() const - { - winrt::Windows::Foundation::DateTime value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_DeclaredFunctionBlocksLastUpdateTime(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetGroupTerminalBlocks() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetGroupTerminalBlocks(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetUserSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetUserSuppliedInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetTransportSuppliedInfo() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointTransportSuppliedInfo result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetTransportSuppliedInfo(put_abi(result))); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetParentDeviceInformation() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetParentDeviceInformation(&result)); - return winrt::Windows::Devices::Enumeration::DeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::GetContainerDeviceInformation() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->GetContainerDeviceInformation(&result)); - return winrt::Windows::Devices::Enumeration::DeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation::Properties() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation)->get_Properties(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs::AddedDevice() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs)->get_AddedDevice(&value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs::DeviceInformationUpdate() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs)->get_DeviceInformationUpdate(&value)); - return winrt::Windows::Devices::Enumeration::DeviceInformationUpdate{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->CreateFromEndpointDeviceId(*(void**)(&endpointDeviceId), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll2(static_cast(sortOrder), &result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->FindAll3(static_cast(sortOrder), static_cast(endpointTypesToInclude), &result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::EndpointInterfaceClass() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->get_EndpointInterfaceClass(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::GetAdditionalPropertiesList() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->GetAdditionalPropertiesList(&result)); - return winrt::Windows::Foundation::Collections::IVectorView{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics::DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationStatics)->DeviceMatchesFilter(*(void**)(&deviceInformation), static_cast(endpointTypesToInclude), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::EndpointDeviceId() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_EndpointDeviceId(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsNameUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsNameUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsEndpointInformationUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsEndpointInformationUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsDeviceIdentityUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsDeviceIdentityUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsStreamConfigurationUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsStreamConfigurationUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::AreFunctionBlocksUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_AreFunctionBlocksUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::IsUserMetadataUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_IsUserMetadataUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::AreAdditionalCapabilitiesUpdated() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_AreAdditionalCapabilitiesUpdated(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs::DeviceInformationUpdate() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs)->get_DeviceInformationUpdate(&value)); - return winrt::Windows::Devices::Enumeration::DeviceInformationUpdate{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Start() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->Start()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stop() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->Stop()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumeratedEndpointDevices() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->get_EnumeratedEndpointDevices(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Status() const - { - winrt::Windows::Devices::Enumeration::DeviceWatcherStatus value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->get_Status(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Added(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Added(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Added(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Added(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Removed(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Removed(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Removed(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Removed(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Updated(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Updated(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Updated(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Updated(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_EnumerationCompleted(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, EnumerationCompleted(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::EnumerationCompleted(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_EnumerationCompleted(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->add_Stopped(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, Stopped(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher::Stopped(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher)->remove_Stopped(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics::Create() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcherStatics)->Create(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceWatcher{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics::Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcherStatics)->Create2(static_cast(endpointFilters), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceWatcher{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::PluginId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_PluginId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::PluginName() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_PluginName(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::PluginName(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_PluginName(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::PluginTag() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_PluginTag(&value)); - return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::PluginTag(winrt::Windows::Foundation::IInspectable const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_PluginTag(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::IsEnabled() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->get_IsEnabled(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::IsEnabled(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->put_IsEnabled(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Initialize(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource const& endpointConnection) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->Initialize(*(void**)(&endpointConnection))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::OnEndpointConnectionOpened() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->OnEndpointConnectionOpened()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::ProcessIncomingMessage(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageReceivedEventArgs const& args, bool& skipFurtherListeners, bool& skipMainMessageReceivedEvent) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->ProcessIncomingMessage(*(void**)(&args), &skipFurtherListeners, &skipMainMessageReceivedEvent)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin::Cleanup() const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin)->Cleanup()); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsReadOnly() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_IsReadOnly(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Number() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Number(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Number(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Number(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Name(param::hstring const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Name(*(void**)(&value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsActive() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_IsActive(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IsActive(bool value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_IsActive(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Direction() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_Direction(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::Direction(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_Direction(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::UIHint() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_UIHint(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::UIHint(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_UIHint(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::RepresentsMidi10Connection() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_RepresentsMidi10Connection(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::RepresentsMidi10Connection(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_RepresentsMidi10Connection(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::FirstGroupIndex() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_FirstGroupIndex(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::FirstGroupIndex(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_FirstGroupIndex(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::GroupCount() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_GroupCount(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::GroupCount(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_GroupCount(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->IncludesGroup(*(void**)(&group), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MidiCIMessageVersionFormat() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_MidiCIMessageVersionFormat(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MidiCIMessageVersionFormat(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_MidiCIMessageVersionFormat(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MaxSystemExclusive8Streams() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->get_MaxSystemExclusive8Streams(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock::MaxSystemExclusive8Streams(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock)->put_MaxSystemExclusive8Streams(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::Index() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->get_Index(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::Index(uint8_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->put_Index(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroup::DisplayValue() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup)->get_DisplayValue(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory::CreateInstance(uint8_t index) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupFactory)->CreateInstance(index, &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiGroup{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::ShortLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->get_ShortLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::LongLabel() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->get_LongLabel(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics::IsValidIndex(uint8_t index) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupStatics)->IsValidIndex(index, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Number() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Number(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Direction() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiGroupTerminalBlockDirection value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Direction(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::Protocol() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiGroupTerminalBlockProtocol value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_Protocol(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::FirstGroupIndex() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_FirstGroupIndex(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::GroupCount() const - { - uint8_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_GroupCount(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->IncludesGroup(*(void**)(&group), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::MaxDeviceInputBandwidthIn4KBitsPerSecondUnits() const - { - uint16_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits() const - { - uint16_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::CalculatedMaxDeviceInputBandwidthBitsPerSecond() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::CalculatedMaxDeviceOutputBandwidthBitsPerSecond() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock::AsEquivalentFunctionBlock() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock)->AsEquivalentFunctionBlock(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word2() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word2(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word3() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->get_Word3(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128::Word3(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128)->put_Word3(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance2(timestamp, word0, word1, word2, word3, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Factory)->CreateInstance2(timestamp, word0, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance2(timestamp, word0, word1, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word0() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word0(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word0(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word0(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word1() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word1(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word1(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word1(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word2() const - { - uint32_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->get_Word2(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96::Word2(uint32_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96)->put_Word2(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance(*(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance2(timestamp, word0, word1, word2, *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory::CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Factory)->CreateInstance3(timestamp, words.size(), get_abi(words), *(void**)(&baseInterface), impl::bind_out(innerInterface), &value)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96Statics)->CreateFromStruct(timestamp, impl::bind_in(message), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::PacketType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_PacketType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::MessageType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->get_MessageType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::PeekFirstWord() const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->PeekFirstWord(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::GetMessagePacket() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->GetMessagePacket(&result)); - return winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillWords(uint32_t& word0, uint32_t& word1, uint32_t& word2, uint32_t& word3) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillWords(&word0, &word1, &word2, &word3, &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessageStruct(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct& message) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessageStruct(impl::bind_out(message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage32(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage32(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage64(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage64(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage96(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage96(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillMessage128(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128 const& message) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillMessage128(*(void**)(&message), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillWordArray(uint32_t startIndex, array_view words) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillWordArray(startIndex, words.size(), put_abi(words), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillByteArray(uint32_t startIndex, array_view bytes) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillByteArray(startIndex, bytes.size(), put_abi(bytes), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->FillBuffer(byteOffset, *(void**)(&buffer), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs::AppendWordsToList(param::vector const& wordList) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs)->AppendWordsToList(*(void**)(&wordList), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - winrt::event_token token{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventSource)->add_MessageReceived(*(void**)(&handler), put_abi(token))); - return token; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const - { - return impl::make_event_revoker(this, MessageReceived(handler)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource::MessageReceived(winrt::event_token const& token) const noexcept - { - WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventSource)->remove_MessageReceived(impl::bind_in(token)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::SessionId() const - { - winrt::guid value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_SessionId(put_abi(value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::Name() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_Name(&value)); - return hstring{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::IsOpen() const - { - bool value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_IsOpen(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::Connections() const - { - void* value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->get_Connections(&value)); - return winrt::Windows::Foundation::Collections::IMapView{ value, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection(*(void**)(&endpointDeviceId), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection2(*(void**)(&endpointDeviceId), autoReconnect, &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect, winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings const& settings) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->CreateEndpointConnection3(*(void**)(&endpointDeviceId), autoReconnect, *(void**)(&settings), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointConnection{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::DisconnectEndpointConnection(winrt::guid const& endpointConnectionId) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->DisconnectEndpointConnection(impl::bind_in(endpointConnectionId))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSession::UpdateName(param::hstring const& newName) const - { - bool result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSession)->UpdateName(*(void**)(&newName), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics::Create(param::hstring const& sessionName) const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiSessionStatics)->Create(*(void**)(&sessionName), &result)); - return winrt::Microsoft::Windows::Devices::Midi2::MidiSession{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::Timestamp() const - { - uint64_t value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_Timestamp(&value)); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::Timestamp(uint64_t value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->put_Timestamp(value)); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::MessageType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_MessageType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::MessageType(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& value) const - { - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->put_MessageType(static_cast(value))); - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::PacketType() const - { - winrt::Microsoft::Windows::Devices::Midi2::MidiPacketType value{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->get_PacketType(reinterpret_cast(&value))); - return value; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::PeekFirstWord() const - { - uint32_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->PeekFirstWord(&result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::GetAllWords() const - { - void* result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->GetAllWords(&result)); - return winrt::Windows::Foundation::Collections::IVector{ result, take_ownership_from_abi }; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::AppendAllMessageWordsToList(param::vector const& targetList) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->AppendAllMessageWordsToList(*(void**)(&targetList), &result)); - return result; - } - template auto consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket::FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const - { - uint8_t result{}; - check_hresult(WINRT_IMPL_SHIM(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket)->FillBuffer(byteOffset, *(void**)(&buffer), &result)); - return result; - } -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Index(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Index()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Index(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Index(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DisplayValue(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DisplayValue()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint8_t index, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsValidIndex(uint8_t index, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsValidIndex(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Now(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Now()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TimestampConstantSendImmediately(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TimestampConstantSendImmediately()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_TimestampFrequency(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().TimestampFrequency()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToNanoseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToNanoseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToMicroseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToMicroseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToMilliseconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToMilliseconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ConvertTimestampTicksToSeconds(uint64_t timestampValue, double* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().ConvertTimestampTicksToSeconds(timestampValue)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByTicks(timestampValue, offsetTicks)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds, uint64_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().OffsetTimestampBySeconds(timestampValue, offsetSeconds)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ConnectionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ConnectionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ConnectedEndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ConnectedEndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Tag(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Tag()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Tag(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Tag(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LogMessageDataValidationErrorDetails(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LogMessageDataValidationErrorDetails()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_LogMessageDataValidationErrorDetails(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().LogMessageDataValidationErrorDetails(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Settings(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Settings()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsOpen(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsOpen()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Open(bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Open()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsAutoReconnectEnabled(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsAutoReconnectEnabled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageProcessingPlugins(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().MessageProcessingPlugins()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AddMessageProcessingPlugin(void* plugin) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().AddMessageProcessingPlugin(*reinterpret_cast(&plugin)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall RemoveMessageProcessingPlugin(winrt::guid id) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().RemoveMessageProcessingPlugin(*reinterpret_cast(&id)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessagePacket(void* message, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessagePacket(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct const& message, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageStruct(timestamp, wordCount, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, uint32_t __wordsSize, uint32_t* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWordArray(timestamp, startIndex, wordCount, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords3(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1, word2)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageWords4(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageWords(timestamp, word0, word1, word2, word3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, void* buffer, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendSingleMessageBuffer(timestamp, byteOffset, byteCount, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesWordList(uint64_t timestamp, void* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesWordList(timestamp, *reinterpret_cast const*>(&words))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, uint32_t __wordsSize, uint32_t* words, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesWordArray(timestamp, startIndex, wordCount, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesPacketList(void* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesPacketList(*reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesStructList(uint64_t timestamp, void* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesStructList(timestamp, *reinterpret_cast const*>(&messages))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, uint32_t __messagesSize, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct* messages, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesStructArray(timestamp, startIndex, messageCount, array_view(reinterpret_cast(messages), reinterpret_cast(messages) + __messagesSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, void* buffer, uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMultipleMessagesBuffer(timestamp, byteOffset, byteCount, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_SettingsJson(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SettingsJson()); - return 0; - } - catch (...) { return to_hresult(); } - }; - template - struct produce : produce_base - { - int32_t __stdcall add_EndpointDeviceDisconnected(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EndpointDeviceDisconnected(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EndpointDeviceDisconnected(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDeviceDisconnected(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_EndpointDeviceReconnected(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EndpointDeviceReconnected(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EndpointDeviceReconnected(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EndpointDeviceReconnected(*reinterpret_cast(&token)); - return 0; - } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall GetDeviceSelector(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeviceSelector()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMessageSucceeded(uint32_t sendResult, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMessageSucceeded(*reinterpret_cast(&sendResult))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall SendMessageFailed(uint32_t sendResult, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().SendMessageFailed(*reinterpret_cast(&sendResult))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_ContainerId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ContainerId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInstanceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInstanceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointPurpose(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointPurpose()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredEndpointInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredEndpointInfoLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredEndpointInfoLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredDeviceIdentity()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredDeviceIdentityLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredDeviceIdentityLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredStreamConfiguration(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetDeclaredStreamConfiguration()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredStreamConfigurationLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredStreamConfigurationLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetDeclaredFunctionBlocks(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetDeclaredFunctionBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeclaredFunctionBlocksLastUpdateTime(int64_t* value) noexcept final try - { - zero_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeclaredFunctionBlocksLastUpdateTime()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetGroupTerminalBlocks(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetGroupTerminalBlocks()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetUserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetUserSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetTransportSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo* result) noexcept final try - { - zero_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetTransportSuppliedInfo()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetParentDeviceInformation(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetParentDeviceInformation()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetContainerDeviceInformation(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetContainerDeviceInformation()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Properties(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Properties()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_AddedDevice(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AddedDevice()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInformationUpdate(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInformationUpdate()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromEndpointDeviceId(void* endpointDeviceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromEndpointDeviceId(*reinterpret_cast(&endpointDeviceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll2(int32_t sortOrder, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll(*reinterpret_cast(&sortOrder))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FindAll3(int32_t sortOrder, uint32_t endpointTypesToInclude, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().FindAll(*reinterpret_cast(&sortOrder), *reinterpret_cast(&endpointTypesToInclude))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EndpointInterfaceClass(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointInterfaceClass()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetAdditionalPropertiesList(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetAdditionalPropertiesList()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall DeviceMatchesFilter(void* deviceInformation, uint32_t endpointTypesToInclude, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().DeviceMatchesFilter(*reinterpret_cast(&deviceInformation), *reinterpret_cast(&endpointTypesToInclude))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_EndpointDeviceId(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().EndpointDeviceId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsNameUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsNameUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsEndpointInformationUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsEndpointInformationUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsDeviceIdentityUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsDeviceIdentityUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsStreamConfigurationUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsStreamConfigurationUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AreFunctionBlocksUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AreFunctionBlocksUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsUserMetadataUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsUserMetadataUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_AreAdditionalCapabilitiesUpdated(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().AreAdditionalCapabilitiesUpdated()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DeviceInformationUpdate(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DeviceInformationUpdate()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Start() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Start(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Stop() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Stop(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_EnumeratedEndpointDevices(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().EnumeratedEndpointDevices()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Status(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Status()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall add_Added(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Added(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Added(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Added(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Removed(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Removed(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Removed(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Removed(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Updated(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Updated(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Updated(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Updated(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_EnumerationCompleted(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().EnumerationCompleted(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_EnumerationCompleted(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().EnumerationCompleted(*reinterpret_cast(&token)); - return 0; - } - int32_t __stdcall add_Stopped(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().Stopped(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_Stopped(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().Stopped(*reinterpret_cast(&token)); - return 0; - } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Create(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Create2(uint32_t endpointFilters, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create(*reinterpret_cast(&endpointFilters))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_PluginId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PluginId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PluginName(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PluginName()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PluginName(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PluginName(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PluginTag(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PluginTag()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_PluginTag(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().PluginTag(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsEnabled(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsEnabled()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IsEnabled(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IsEnabled(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Initialize(void* endpointConnection) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Initialize(*reinterpret_cast(&endpointConnection)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall OnEndpointConnectionOpened() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().OnEndpointConnectionOpened(); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall ProcessIncomingMessage(void* args, bool* skipFurtherListeners, bool* skipMainMessageReceivedEvent) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().ProcessIncomingMessage(*reinterpret_cast(&args), *skipFurtherListeners, *skipMainMessageReceivedEvent); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall Cleanup() noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Cleanup(); - return 0; - } - catch (...) { return to_hresult(); } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_IsReadOnly(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsReadOnly()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Number(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Number()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Number(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Number(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Name(void* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Name(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsActive(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsActive()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_IsActive(bool value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().IsActive(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Direction(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Direction()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Direction(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Direction(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_UIHint(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().UIHint()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_UIHint(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().UIHint(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_RepresentsMidi10Connection(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().RepresentsMidi10Connection()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_RepresentsMidi10Connection(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().RepresentsMidi10Connection(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FirstGroupIndex(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FirstGroupIndex()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_FirstGroupIndex(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().FirstGroupIndex(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_GroupCount(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().GroupCount()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_GroupCount(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().GroupCount(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IncludesGroup(void* group, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IncludesGroup(*reinterpret_cast(&group))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MidiCIMessageVersionFormat(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MidiCIMessageVersionFormat()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MidiCIMessageVersionFormat(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MidiCIMessageVersionFormat(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxSystemExclusive8Streams(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxSystemExclusive8Streams()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MaxSystemExclusive8Streams(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MaxSystemExclusive8Streams(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Index(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Index()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Index(uint8_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Index(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_DisplayValue(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().DisplayValue()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(uint8_t index, void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_ShortLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().ShortLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_LongLabel(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().LongLabel()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IsValidIndex(uint8_t index, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IsValidIndex(index)); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Number(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Number()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Direction(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Direction()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Protocol(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Protocol()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_FirstGroupIndex(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().FirstGroupIndex()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_GroupCount(uint8_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().GroupCount()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall IncludesGroup(void* group, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().IncludesGroup(*reinterpret_cast(&group))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(uint16_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxDeviceInputBandwidthIn4KBitsPerSecondUnits()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(uint16_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CalculatedMaxDeviceInputBandwidthBitsPerSecond()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CalculatedMaxDeviceOutputBandwidthBitsPerSecond()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AsEquivalentFunctionBlock(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AsEquivalentFunctionBlock()); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word2(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word2(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word2(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word3(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word3()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word3(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word3(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, word2, word3, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Word0(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word0()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word0(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word0(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word1(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word1()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word1(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word1(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Word2(uint32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Word2()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Word2(uint32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Word2(value); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateInstance(void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance(*reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance2(timestamp, word0, word1, word2, *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateInstance3(uint64_t timestamp, uint32_t __wordsSize, uint32_t* words, void* baseInterface, void** innerInterface, void** value) noexcept final try - { - if (innerInterface) *innerInterface = nullptr; - winrt::Windows::Foundation::IInspectable winrt_impl_innerInterface; - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().CreateInstance3(timestamp, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize), *reinterpret_cast(&baseInterface), winrt_impl_innerInterface)); - if (innerInterface) *innerInterface = detach_abi(winrt_impl_innerInterface); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall CreateFromStruct(uint64_t timestamp, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct message, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateFromStruct(timestamp, *reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PacketType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PacketType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PeekFirstWord(uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PeekFirstWord()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetMessagePacket(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().GetMessagePacket()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillWords(uint32_t* word0, uint32_t* word1, uint32_t* word2, uint32_t* word3, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillWords(*word0, *word1, *word2, *word3)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessageStruct(struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct* message, uint8_t* result) noexcept final try - { - zero_abi(message); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessageStruct(*reinterpret_cast(message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage32(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage32(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage64(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage64(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage96(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage96(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillMessage128(void* message, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillMessage128(*reinterpret_cast(&message))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillWordArray(uint32_t startIndex, uint32_t __wordsSize, uint32_t* words, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillWordArray(startIndex, array_view(reinterpret_cast(words), reinterpret_cast(words) + __wordsSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillByteArray(uint32_t startIndex, uint32_t __bytesSize, uint8_t* bytes, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillByteArray(startIndex, array_view(reinterpret_cast(bytes), reinterpret_cast(bytes) + __bytesSize))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillBuffer(uint32_t byteOffset, void* buffer, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillBuffer(byteOffset, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AppendWordsToList(void* wordList, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AppendWordsToList(*reinterpret_cast const*>(&wordList))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall add_MessageReceived(void* handler, winrt::event_token* token) noexcept final try - { - zero_abi(token); - typename D::abi_guard guard(this->shim()); - *token = detach_from(this->shim().MessageReceived(*reinterpret_cast const*>(&handler))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall remove_MessageReceived(winrt::event_token token) noexcept final - { - typename D::abi_guard guard(this->shim()); - this->shim().MessageReceived(*reinterpret_cast(&token)); - return 0; - } - }; -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall get_SessionId(winrt::guid* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().SessionId()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Name(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Name()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_IsOpen(bool* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().IsOpen()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_Connections(void** value) noexcept final try - { - clear_abi(value); - typename D::abi_guard guard(this->shim()); - *value = detach_from>(this->shim().Connections()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection(void* endpointDeviceId, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection2(void* endpointDeviceId, bool autoReconnect, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId), autoReconnect)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall CreateEndpointConnection3(void* endpointDeviceId, bool autoReconnect, void* settings, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().CreateEndpointConnection(*reinterpret_cast(&endpointDeviceId), autoReconnect, *reinterpret_cast(&settings))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall DisconnectEndpointConnection(winrt::guid endpointConnectionId) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().DisconnectEndpointConnection(*reinterpret_cast(&endpointConnectionId)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall UpdateName(void* newName, bool* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().UpdateName(*reinterpret_cast(&newName))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif -#ifndef WINRT_LEAN_AND_MEAN - template - struct produce : produce_base - { - int32_t __stdcall Create(void* sessionName, void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().Create(*reinterpret_cast(&sessionName))); - return 0; - } - catch (...) { return to_hresult(); } - }; -#endif - template - struct produce : produce_base - { - int32_t __stdcall get_Timestamp(uint64_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().Timestamp()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_Timestamp(uint64_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().Timestamp(value); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_MessageType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().MessageType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall put_MessageType(int32_t value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - this->shim().MessageType(*reinterpret_cast(&value)); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall get_PacketType(int32_t* value) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *value = detach_from(this->shim().PacketType()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall PeekFirstWord(uint32_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().PeekFirstWord()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall GetAllWords(void** result) noexcept final try - { - clear_abi(result); - typename D::abi_guard guard(this->shim()); - *result = detach_from>(this->shim().GetAllWords()); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall AppendAllMessageWordsToList(void* targetList, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().AppendAllMessageWordsToList(*reinterpret_cast const*>(&targetList))); - return 0; - } - catch (...) { return to_hresult(); } - int32_t __stdcall FillBuffer(uint32_t byteOffset, void* buffer, uint8_t* result) noexcept final try - { - typename D::abi_guard guard(this->shim()); - *result = detach_from(this->shim().FillBuffer(byteOffset, *reinterpret_cast(&buffer))); - return 0; - } - catch (...) { return to_hresult(); } - }; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - constexpr auto operator|(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiEndpointDeviceInformationFilters const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiEndpointDeviceInformationFilters const left, MidiEndpointDeviceInformationFilters const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiEndpointDeviceInformationFilters& left, MidiEndpointDeviceInformationFilters const right) noexcept - { - left = left ^ right; - return left; - } - constexpr auto operator|(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) | impl::to_underlying_type(right)); - } - constexpr auto operator|=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left | right; - return left; - } - constexpr auto operator&(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) & impl::to_underlying_type(right)); - } - constexpr auto operator&=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left & right; - return left; - } - constexpr auto operator~(MidiSendMessageResults const value) noexcept - { - return static_cast(~impl::to_underlying_type(value)); - } - constexpr auto operator^(MidiSendMessageResults const left, MidiSendMessageResults const right) noexcept - { - return static_cast(impl::to_underlying_type(left) ^ impl::to_underlying_type(right)); - } - constexpr auto operator^=(MidiSendMessageResults& left, MidiSendMessageResults const right) noexcept - { - left = left ^ right; - return left; - } - inline MidiChannel::MidiChannel(uint8_t index) : - MidiChannel(impl::call_factory([&](IMidiChannelFactory const& f) { return f.CreateInstance(index); })) - { - } - inline auto MidiChannel::ShortLabel() - { - return impl::call_factory_cast([](IMidiChannelStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiChannel::LongLabel() - { - return impl::call_factory_cast([](IMidiChannelStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiChannel::IsValidIndex(uint8_t index) - { - return impl::call_factory([&](IMidiChannelStatics const& f) { return f.IsValidIndex(index); }); - } - inline auto MidiClock::Now() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.Now(); }); - } - inline auto MidiClock::TimestampConstantSendImmediately() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.TimestampConstantSendImmediately(); }); - } - inline auto MidiClock::TimestampFrequency() - { - return impl::call_factory_cast([](IMidiClockStatics const& f) { return f.TimestampFrequency(); }); - } - inline auto MidiClock::ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToNanoseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToMicroseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToMilliseconds(timestampValue); }); - } - inline auto MidiClock::ConvertTimestampTicksToSeconds(uint64_t timestampValue) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.ConvertTimestampTicksToSeconds(timestampValue); }); - } - inline auto MidiClock::OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByTicks(timestampValue, offsetTicks); }); - } - inline auto MidiClock::OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByMicroseconds(timestampValue, offsetMicroseconds); }); - } - inline auto MidiClock::OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampByMilliseconds(timestampValue, offsetMilliseconds); }); - } - inline auto MidiClock::OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) - { - return impl::call_factory([&](IMidiClockStatics const& f) { return f.OffsetTimestampBySeconds(timestampValue, offsetSeconds); }); - } - inline auto MidiEndpointConnection::GetDeviceSelector() - { - return impl::call_factory_cast([](IMidiEndpointConnectionStatics const& f) { return f.GetDeviceSelector(); }); - } - inline auto MidiEndpointConnection::SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) - { - return impl::call_factory([&](IMidiEndpointConnectionStatics const& f) { return f.SendMessageSucceeded(sendResult); }); - } - inline auto MidiEndpointConnection::SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) - { - return impl::call_factory([&](IMidiEndpointConnectionStatics const& f) { return f.SendMessageFailed(sendResult); }); - } - inline auto MidiEndpointDeviceInformation::CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.CreateFromEndpointDeviceId(endpointDeviceId); }); - } - inline auto MidiEndpointDeviceInformation::FindAll() - { - return impl::call_factory_cast(*)(IMidiEndpointDeviceInformationStatics const&), MidiEndpointDeviceInformation, IMidiEndpointDeviceInformationStatics>([](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(); }); - } - inline auto MidiEndpointDeviceInformation::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(sortOrder); }); - } - inline auto MidiEndpointDeviceInformation::FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.FindAll(sortOrder, endpointTypesToInclude); }); - } - inline auto MidiEndpointDeviceInformation::EndpointInterfaceClass() - { - return impl::call_factory_cast([](IMidiEndpointDeviceInformationStatics const& f) { return f.EndpointInterfaceClass(); }); - } - inline auto MidiEndpointDeviceInformation::GetAdditionalPropertiesList() - { - return impl::call_factory_cast(*)(IMidiEndpointDeviceInformationStatics const&), MidiEndpointDeviceInformation, IMidiEndpointDeviceInformationStatics>([](IMidiEndpointDeviceInformationStatics const& f) { return f.GetAdditionalPropertiesList(); }); - } - inline auto MidiEndpointDeviceInformation::DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) - { - return impl::call_factory([&](IMidiEndpointDeviceInformationStatics const& f) { return f.DeviceMatchesFilter(deviceInformation, endpointTypesToInclude); }); - } - inline auto MidiEndpointDeviceWatcher::Create() - { - return impl::call_factory_cast([](IMidiEndpointDeviceWatcherStatics const& f) { return f.Create(); }); - } - inline auto MidiEndpointDeviceWatcher::Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) - { - return impl::call_factory([&](IMidiEndpointDeviceWatcherStatics const& f) { return f.Create(endpointFilters); }); - } - inline MidiFunctionBlock::MidiFunctionBlock() : - MidiFunctionBlock(impl::call_factory_cast([](winrt::Windows::Foundation::IActivationFactory const& f) { return f.template ActivateInstance(); })) - { - } - inline MidiGroup::MidiGroup(uint8_t index) : - MidiGroup(impl::call_factory([&](IMidiGroupFactory const& f) { return f.CreateInstance(index); })) - { - } - inline auto MidiGroup::ShortLabel() - { - return impl::call_factory_cast([](IMidiGroupStatics const& f) { return f.ShortLabel(); }); - } - inline auto MidiGroup::LongLabel() - { - return impl::call_factory_cast([](IMidiGroupStatics const& f) { return f.LongLabel(); }); - } - inline auto MidiGroup::IsValidIndex(uint8_t index) - { - return impl::call_factory([&](IMidiGroupStatics const& f) { return f.IsValidIndex(index); }); - } - inline MidiMessage128::MidiMessage128() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage128::MidiMessage128(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, word2, word3, baseInterface, innerInterface); }); - } - inline MidiMessage128::MidiMessage128(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage128Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage128::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage128Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage32::MidiMessage32() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage32Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage32::MidiMessage32(uint64_t timestamp, uint32_t word0) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage32Factory const& f) { return f.CreateInstance2(timestamp, word0, baseInterface, innerInterface); }); - } - inline auto MidiMessage32::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage32Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage64::MidiMessage64() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage64::MidiMessage64(uint64_t timestamp, uint32_t word0, uint32_t word1) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, baseInterface, innerInterface); }); - } - inline MidiMessage64::MidiMessage64(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage64Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage64::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage64Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline MidiMessage96::MidiMessage96() - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance(baseInterface, innerInterface); }); - } - inline MidiMessage96::MidiMessage96(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance2(timestamp, word0, word1, word2, baseInterface, innerInterface); }); - } - inline MidiMessage96::MidiMessage96(uint64_t timestamp, array_view words) - { - winrt::Windows::Foundation::IInspectable baseInterface, innerInterface; - *this = impl::call_factory([&](IMidiMessage96Factory const& f) { return f.CreateInstance3(timestamp, words, baseInterface, innerInterface); }); - } - inline auto MidiMessage96::CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) - { - return impl::call_factory([&](IMidiMessage96Statics const& f) { return f.CreateFromStruct(timestamp, message); }); - } - inline auto MidiSession::Create(param::hstring const& sessionName) - { - return impl::call_factory([&](IMidiSessionStatics const& f) { return f.Create(sessionName); }); - } - template - struct MidiMessage128T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage128; - protected: - MidiMessage128T() - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage128T(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, word2, word3, *this, this->m_inner); }); - } - MidiMessage128T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage128Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; - template - struct MidiMessage32T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage32; - protected: - MidiMessage32T() - { - impl::call_factory([&](IMidiMessage32Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage32T(uint64_t timestamp, uint32_t word0) - { - impl::call_factory([&](IMidiMessage32Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, *this, this->m_inner); }); - } - }; - template - struct MidiMessage64T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage64; - protected: - MidiMessage64T() - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage64T(uint64_t timestamp, uint32_t word0, uint32_t word1) - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, *this, this->m_inner); }); - } - MidiMessage64T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage64Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; - template - struct MidiMessage96T : - implements, - impl::require, - impl::base - { - using composable = MidiMessage96; - protected: - MidiMessage96T() - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance(*this, this->m_inner); }); - } - MidiMessage96T(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance2(timestamp, word0, word1, word2, *this, this->m_inner); }); - } - MidiMessage96T(uint64_t timestamp, array_view words) - { - impl::call_factory([&](IMidiMessage96Factory const& f) { [[maybe_unused]] auto winrt_impl_discarded = f.CreateInstance3(timestamp, words, *this, this->m_inner); }); - } - }; -} -namespace std -{ -#ifndef WINRT_LEAN_AND_MEAN - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; - template<> struct hash : winrt::impl::hash_base {}; -#endif -#ifdef __cpp_lib_format - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; - template<> struct formatter : formatter {}; -#endif -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h deleted file mode 100644 index 7ba28d513..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h +++ /dev/null @@ -1,1524 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_0_H -WINRT_EXPORT namespace winrt::Windows::Devices::Enumeration -{ - struct DeviceInformation; - struct DeviceInformationUpdate; - enum class DeviceWatcherStatus : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct EventRegistrationToken; - struct IMemoryBuffer; - template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; -} -WINRT_EXPORT namespace winrt::Windows::Foundation::Collections -{ - template struct WINRT_IMPL_EMPTY_BASES IIterable; - template struct WINRT_IMPL_EMPTY_BASES IVector; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - enum class MidiEndpointDeviceInformationFilters : uint32_t - { - StandardNativeUniversalMidiPacketFormat = 0x1, - StandardNativeMidi1ByteFormat = 0x2, - VirtualDeviceResponder = 0x100, - DiagnosticLoopback = 0x10000, - DiagnosticPing = 0x20000, - AllStandardEndpoints = 0x3, - }; - enum class MidiEndpointDeviceInformationSortOrder : int32_t - { - None = 0, - Name = 1, - EndpointDeviceId = 2, - DeviceInstanceId = 3, - ContainerThenName = 11, - ContainerThenEndpointDeviceId = 12, - ContainerThenDeviceInstanceId = 13, - TransportMnemonicThenName = 21, - TransportMnemonicThenEndpointDeviceId = 22, - TransportMnemonicThenDeviceInstanceId = 23, - }; - enum class MidiEndpointDevicePurpose : int32_t - { - NormalMessageEndpoint = 0, - VirtualDeviceResponder = 100, - InBoxGeneralMidiSynth = 400, - DiagnosticLoopback = 500, - DiagnosticPing = 510, - }; - enum class MidiEndpointNativeDataFormat : int32_t - { - Unknown = 0, - Midi1ByteFormat = 1, - UniversalMidiPacketFormat = 2, - }; - enum class MidiFunctionBlockDirection : int32_t - { - Undefined = 0, - BlockInput = 1, - BlockOutput = 2, - Bidirectional = 3, - }; - enum class MidiFunctionBlockRepresentsMidi10Connection : int32_t - { - Not10 = 0, - YesBandwidthUnrestricted = 1, - YesBandwidthRestricted = 2, - Reserved = 3, - }; - enum class MidiFunctionBlockUIHint : int32_t - { - Unknown = 0, - Receiver = 1, - Sender = 2, - Bidirectional = 3, - }; - enum class MidiGroupTerminalBlockDirection : int32_t - { - Bidirectional = 0, - BlockInput = 1, - BlockOutput = 2, - }; - enum class MidiGroupTerminalBlockProtocol : int32_t - { - Unknown = 0, - Midi1Message64 = 1, - Midi1Message64WithJitterReduction = 2, - Midi1Message128 = 3, - Midi1Message128WithJitterReduction = 4, - Midi2 = 17, - Midi2WithJitterReduction = 18, - }; - enum class MidiMessageType : int32_t - { - UtilityMessage32 = 0, - SystemCommon32 = 1, - Midi1ChannelVoice32 = 2, - DataMessage64 = 3, - Midi2ChannelVoice64 = 4, - DataMessage128 = 5, - FutureReserved632 = 6, - FutureReserved732 = 7, - FutureReserved864 = 8, - FutureReserved964 = 9, - FutureReservedA64 = 10, - FutureReservedB96 = 11, - FutureReservedC96 = 12, - FlexData128 = 13, - FutureReservedE128 = 14, - Stream128 = 15, - }; - enum class MidiPacketType : int32_t - { - UnknownOrInvalid = 0, - UniversalMidiPacket32 = 1, - UniversalMidiPacket64 = 2, - UniversalMidiPacket96 = 3, - UniversalMidiPacket128 = 4, - }; - enum class MidiProtocol : int32_t - { - Default = 0, - Midi1 = 1, - Midi2 = 2, - }; - enum class MidiSendMessageResults : uint32_t - { - Succeeded = 0x80000000, - Failed = 0x10000000, - BufferFull = 0x10000, - EndpointConnectionClosedOrInvalid = 0x40000, - InvalidMessageTypeForWordCount = 0x100000, - InvalidMessageOther = 0x200000, - DataIndexOutOfRange = 0x400000, - TimestampOutOfRange = 0x800000, - MessageListPartiallyProcessed = 0xf00000, - }; - struct IMidiChannel; - struct IMidiChannelFactory; - struct IMidiChannelStatics; - struct IMidiClock; - struct IMidiClockStatics; - struct IMidiEndpointConnection; - struct IMidiEndpointConnectionSettings; - struct IMidiEndpointConnectionSource; - struct IMidiEndpointConnectionStatics; - struct IMidiEndpointDeviceInformation; - struct IMidiEndpointDeviceInformationAddedEventArgs; - struct IMidiEndpointDeviceInformationRemovedEventArgs; - struct IMidiEndpointDeviceInformationStatics; - struct IMidiEndpointDeviceInformationUpdatedEventArgs; - struct IMidiEndpointDeviceWatcher; - struct IMidiEndpointDeviceWatcherStatics; - struct IMidiEndpointMessageProcessingPlugin; - struct IMidiFunctionBlock; - struct IMidiGroup; - struct IMidiGroupFactory; - struct IMidiGroupStatics; - struct IMidiGroupTerminalBlock; - struct IMidiMessage128; - struct IMidiMessage128Factory; - struct IMidiMessage128Statics; - struct IMidiMessage32; - struct IMidiMessage32Factory; - struct IMidiMessage32Statics; - struct IMidiMessage64; - struct IMidiMessage64Factory; - struct IMidiMessage64Statics; - struct IMidiMessage96; - struct IMidiMessage96Factory; - struct IMidiMessage96Statics; - struct IMidiMessageReceivedEventArgs; - struct IMidiMessageReceivedEventSource; - struct IMidiSession; - struct IMidiSessionStatics; - struct IMidiUniversalPacket; - struct MidiChannel; - struct MidiClock; - struct MidiEndpointConnection; - struct MidiEndpointDeviceInformation; - struct MidiEndpointDeviceInformationAddedEventArgs; - struct MidiEndpointDeviceInformationRemovedEventArgs; - struct MidiEndpointDeviceInformationUpdatedEventArgs; - struct MidiEndpointDeviceWatcher; - struct MidiFunctionBlock; - struct MidiGroup; - struct MidiGroupTerminalBlock; - struct MidiMessage128; - struct MidiMessage32; - struct MidiMessage64; - struct MidiMessage96; - struct MidiMessageReceivedEventArgs; - struct MidiSession; - struct MidiDeclaredDeviceIdentity; - struct MidiDeclaredEndpointInfo; - struct MidiDeclaredStreamConfiguration; - struct MidiEndpointTransportSuppliedInfo; - struct MidiEndpointUserSuppliedInfo; - struct MidiMessageStruct; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiChannel"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiClock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointConnection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformation"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationAddedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationRemovedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationUpdatedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceWatcher"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroup"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage128"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage32"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage64"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessage96"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiSession"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationFilters"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDeviceInformationSortOrder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointDevicePurpose"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointNativeDataFormat"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockDirection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockRepresentsMidi10Connection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiFunctionBlockUIHint"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlockDirection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiGroupTerminalBlockProtocol"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageType"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiPacketType"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiProtocol"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiSendMessageResults"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredDeviceIdentity"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredEndpointInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiDeclaredStreamConfiguration"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointTransportSuppliedInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiEndpointUserSuppliedInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.MidiMessageStruct"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannel"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannelFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiChannelStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiClock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiClockStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnection"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionSettings"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionSource"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointConnectionStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformation"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationAddedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationRemovedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceInformationUpdatedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceWatcher"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointDeviceWatcherStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiEndpointMessageProcessingPlugin"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiFunctionBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroup"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiGroupTerminalBlock"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage128Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage32Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage64Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96Factory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessage96Statics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessageReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiMessageReceivedEventSource"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiSession"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiSessionStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.IMidiUniversalPacket"; - template <> inline constexpr guid guid_v{ 0x34DC7F81,0xF0C2,0x50D4,{ 0xBE,0xDF,0x42,0xFA,0xB9,0xA1,0xCE,0xF8 } }; // 34DC7F81-F0C2-50D4-BEDF-42FAB9A1CEF8 - template <> inline constexpr guid guid_v{ 0x02A0FF18,0xFE96,0x5193,{ 0x98,0xEF,0xD9,0x67,0x58,0xCD,0x68,0xD4 } }; // 02A0FF18-FE96-5193-98EF-D96758CD68D4 - template <> inline constexpr guid guid_v{ 0xEC86B553,0xADB5,0x5330,{ 0x99,0x60,0x1D,0x8B,0x3A,0x35,0xB0,0xC6 } }; // EC86B553-ADB5-5330-9960-1D8B3A35B0C6 - template <> inline constexpr guid guid_v{ 0xF065F78B,0xE4DC,0x55A7,{ 0x96,0x97,0x63,0x59,0xD0,0xEC,0xD7,0x3A } }; // F065F78B-E4DC-55A7-9697-6359D0ECD73A - template <> inline constexpr guid guid_v{ 0xF672B9EB,0xD41D,0x5CDD,{ 0xAF,0x7B,0x64,0x29,0x94,0x0B,0xE3,0xE7 } }; // F672B9EB-D41D-5CDD-AF7B-6429940BE3E7 - template <> inline constexpr guid guid_v{ 0x452EECE5,0x4FB8,0x5C0C,{ 0xB8,0xDA,0x46,0x70,0x30,0xBD,0xAC,0xE2 } }; // 452EECE5-4FB8-5C0C-B8DA-467030BDACE2 - template <> inline constexpr guid guid_v{ 0x65736736,0x35F3,0x421C,{ 0xA6,0x83,0x3A,0x03,0x4A,0xD0,0xDC,0xC2 } }; // 65736736-35F3-421C-A683-3A034AD0DCC2 - template <> inline constexpr guid guid_v{ 0x44385CDD,0xB64C,0x4195,{ 0x8F,0xAA,0x8A,0x61,0xFC,0x95,0x2A,0x23 } }; // 44385CDD-B64C-4195-8FAA-8A61FC952A23 - template <> inline constexpr guid guid_v{ 0x99355145,0xBC11,0x5B85,{ 0x9B,0x23,0x1B,0x58,0x26,0x6F,0x46,0x30 } }; // 99355145-BC11-5B85-9B23-1B58266F4630 - template <> inline constexpr guid guid_v{ 0xFB4A1253,0x4429,0x5765,{ 0x99,0xDE,0xFF,0x76,0xBB,0xED,0x58,0x8B } }; // FB4A1253-4429-5765-99DE-FF76BBED588B - template <> inline constexpr guid guid_v{ 0xECF028D0,0xEECC,0x5F99,{ 0x8A,0xDF,0x8F,0x29,0xB7,0x0B,0x29,0x6C } }; // ECF028D0-EECC-5F99-8ADF-8F29B70B296C - template <> inline constexpr guid guid_v{ 0x84D3DDE4,0xE6F8,0x5BA5,{ 0x97,0xB4,0xB8,0xD4,0xC5,0x0A,0xFD,0x9F } }; // 84D3DDE4-E6F8-5BA5-97B4-B8D4C50AFD9F - template <> inline constexpr guid guid_v{ 0x1D2C9C0A,0x428E,0x5F75,{ 0x89,0xD5,0x00,0xC3,0xA3,0x79,0x4D,0x88 } }; // 1D2C9C0A-428E-5F75-89D5-00C3A3794D88 - template <> inline constexpr guid guid_v{ 0xAA4B1E3A,0x04B6,0x5560,{ 0xBC,0x2B,0xCF,0xD1,0x64,0xC0,0xF1,0xDE } }; // AA4B1E3A-04B6-5560-BC2B-CFD164C0F1DE - template <> inline constexpr guid guid_v{ 0x5CBF4CAC,0x3409,0x5A57,{ 0x9C,0x47,0xFC,0xA8,0x3C,0x69,0xDB,0xE3 } }; // 5CBF4CAC-3409-5A57-9C47-FCA83C69DBE3 - template <> inline constexpr guid guid_v{ 0xF28F646C,0x6BE6,0x5E13,{ 0x8A,0x78,0x7F,0xD1,0xB8,0x5A,0x7E,0x95 } }; // F28F646C-6BE6-5E13-8A78-7FD1B85A7E95 - template <> inline constexpr guid guid_v{ 0x198D5EF2,0x313F,0x41AF,{ 0x92,0x59,0xA4,0x29,0x97,0xE0,0x60,0xF0 } }; // 198D5EF2-313F-41AF-9259-A42997E060F0 - template <> inline constexpr guid guid_v{ 0xEB43C123,0x5382,0x5C71,{ 0x8D,0x1B,0x22,0x3B,0x8F,0x76,0xC2,0x3B } }; // EB43C123-5382-5C71-8D1B-223B8F76C23B - template <> inline constexpr guid guid_v{ 0xD2FE009D,0x8542,0x5AE7,{ 0xA8,0xF8,0x4F,0x28,0x14,0x5E,0x3A,0x8F } }; // D2FE009D-8542-5AE7-A8F8-4F28145E3A8F - template <> inline constexpr guid guid_v{ 0xEC11AC98,0x616B,0x545C,{ 0xA0,0x6C,0x95,0xB3,0x91,0x5A,0xDB,0x41 } }; // EC11AC98-616B-545C-A06C-95B3915ADB41 - template <> inline constexpr guid guid_v{ 0x08071F7E,0xBA0B,0x5020,{ 0x8E,0x23,0xBC,0x81,0x9B,0x24,0xA4,0xE2 } }; // 08071F7E-BA0B-5020-8E23-BC819B24A4E2 - template <> inline constexpr guid guid_v{ 0x3DBA035F,0xE298,0x5F22,{ 0xB0,0x0B,0x51,0xC7,0x2D,0xCF,0xF7,0x1F } }; // 3DBA035F-E298-5F22-B00B-51C72DCFF71F - template <> inline constexpr guid guid_v{ 0xEFB9C9BB,0x4397,0x538A,{ 0xB1,0x7F,0xBC,0x83,0x00,0x12,0xE1,0xEA } }; // EFB9C9BB-4397-538A-B17F-BC830012E1EA - template <> inline constexpr guid guid_v{ 0x6FB629DF,0xE277,0x5EE8,{ 0xB7,0xB8,0x13,0xA3,0x52,0x8B,0xA2,0x55 } }; // 6FB629DF-E277-5EE8-B7B8-13A3528BA255 - template <> inline constexpr guid guid_v{ 0x722B7533,0x8EFB,0x5CA9,{ 0x93,0x99,0x74,0xEE,0x2D,0x8D,0x53,0x8C } }; // 722B7533-8EFB-5CA9-9399-74EE2D8D538C - template <> inline constexpr guid guid_v{ 0x1C2EC0A7,0xE093,0x5FF0,{ 0xA0,0x9B,0x77,0x68,0x6A,0x75,0x64,0x18 } }; // 1C2EC0A7-E093-5FF0-A09B-77686A756418 - template <> inline constexpr guid guid_v{ 0x47D7FD0F,0x7945,0x5283,{ 0xB1,0x1B,0xA4,0xF5,0xCF,0xBB,0xF6,0xF2 } }; // 47D7FD0F-7945-5283-B11B-A4F5CFBBF6F2 - template <> inline constexpr guid guid_v{ 0x52D01ECA,0x60AC,0x5229,{ 0xAA,0xC2,0xAF,0xA7,0x2E,0xF1,0x40,0x45 } }; // 52D01ECA-60AC-5229-AAC2-AFA72EF14045 - template <> inline constexpr guid guid_v{ 0x62885C57,0x325C,0x5A7C,{ 0xB1,0x8F,0xDE,0x36,0x0A,0xC3,0x77,0xBD } }; // 62885C57-325C-5A7C-B18F-DE360AC377BD - template <> inline constexpr guid guid_v{ 0x10B85E46,0xC6B8,0x593A,{ 0x93,0x85,0x11,0xAE,0x2F,0xCE,0xB9,0xF1 } }; // 10B85E46-C6B8-593A-9385-11AE2FCEB9F1 - template <> inline constexpr guid guid_v{ 0xA75E98A2,0xC6AC,0x5333,{ 0x89,0x65,0x97,0xCD,0xA8,0x80,0x85,0x2E } }; // A75E98A2-C6AC-5333-8965-97CDA880852E - template <> inline constexpr guid guid_v{ 0x82B6C4F8,0xC292,0x50DA,{ 0xBD,0xDF,0xC1,0x18,0x6D,0x3B,0x9E,0xE6 } }; // 82B6C4F8-C292-50DA-BDDF-C1186D3B9EE6 - template <> inline constexpr guid guid_v{ 0x4AC4FE62,0x41C9,0x5605,{ 0x9D,0xB8,0xDE,0xD7,0xCB,0x44,0xB8,0x59 } }; // 4AC4FE62-41C9-5605-9DB8-DED7CB44B859 - template <> inline constexpr guid guid_v{ 0x80451AFD,0xE703,0x5790,{ 0x9C,0xF7,0x4A,0x17,0xAD,0x1E,0x47,0x3B } }; // 80451AFD-E703-5790-9CF7-4A17AD1E473B - template <> inline constexpr guid guid_v{ 0x190C0204,0x845B,0x5A20,{ 0xB9,0x5E,0x91,0x78,0xA8,0xDD,0xAF,0xC6 } }; // 190C0204-845B-5A20-B95E-9178A8DDAFC6 - template <> inline constexpr guid guid_v{ 0x101CEB4B,0xCCA4,0x48A1,{ 0xB9,0x1E,0x60,0x02,0xB9,0x28,0x61,0x3C } }; // 101CEB4B-CCA4-48A1-B91E-6002B928613C - template <> inline constexpr guid guid_v{ 0x47D3E2F0,0xB352,0x5D13,{ 0x88,0x37,0xE4,0x8F,0xF4,0x84,0x5F,0xA0 } }; // 47D3E2F0-B352-5D13-8837-E48FF4845FA0 - template <> inline constexpr guid guid_v{ 0x8678C907,0x163D,0x5D86,{ 0xBF,0xC7,0xFE,0x80,0x04,0x63,0x61,0x86 } }; // 8678C907-163D-5D86-BFC7-FE8004636186 - template <> inline constexpr guid guid_v{ 0x2EB5DF8A,0xD751,0x4997,{ 0xBF,0x96,0xBA,0x9A,0x53,0x1F,0xD5,0xFF } }; // 2EB5DF8A-D751-4997-BF96-BA9A531FD5FF - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiClock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::IMidiSession; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Index(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Index(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_DisplayValue(uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall IsValidIndex(uint8_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Now(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_TimestampConstantSendImmediately(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_TimestampFrequency(uint64_t*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToNanoseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToMicroseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToMilliseconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall ConvertTimestampTicksToSeconds(uint64_t, double*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByTicks(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByMicroseconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampByMilliseconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - virtual int32_t __stdcall OffsetTimestampBySeconds(uint64_t, int64_t, uint64_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ConnectionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_ConnectedEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_Tag(void**) noexcept = 0; - virtual int32_t __stdcall put_Tag(void*) noexcept = 0; - virtual int32_t __stdcall get_LogMessageDataValidationErrorDetails(bool*) noexcept = 0; - virtual int32_t __stdcall put_LogMessageDataValidationErrorDetails(bool) noexcept = 0; - virtual int32_t __stdcall get_Settings(void**) noexcept = 0; - virtual int32_t __stdcall get_IsOpen(bool*) noexcept = 0; - virtual int32_t __stdcall Open(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsAutoReconnectEnabled(bool*) noexcept = 0; - virtual int32_t __stdcall get_MessageProcessingPlugins(void**) noexcept = 0; - virtual int32_t __stdcall AddMessageProcessingPlugin(void*) noexcept = 0; - virtual int32_t __stdcall RemoveMessageProcessingPlugin(winrt::guid) noexcept = 0; - virtual int32_t __stdcall SendSingleMessagePacket(void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageStruct(uint64_t, uint8_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct const&, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWordArray(uint64_t, uint32_t, uint8_t, uint32_t, uint32_t*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords(uint64_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords2(uint64_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords3(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageWords4(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendSingleMessageBuffer(uint64_t, uint32_t, uint8_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesWordList(uint64_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesWordArray(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesPacketList(void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesStructList(uint64_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesStructArray(uint64_t, uint32_t, uint32_t, uint32_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall SendMultipleMessagesBuffer(uint64_t, uint32_t, uint32_t, void*, uint32_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SettingsJson(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall add_EndpointDeviceDisconnected(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EndpointDeviceDisconnected(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_EndpointDeviceReconnected(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EndpointDeviceReconnected(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall GetDeviceSelector(void**) noexcept = 0; - virtual int32_t __stdcall SendMessageSucceeded(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall SendMessageFailed(uint32_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_ContainerId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_DeviceInstanceId(void**) noexcept = 0; - virtual int32_t __stdcall get_EndpointPurpose(int32_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredEndpointInfoLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredDeviceIdentityLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredStreamConfiguration(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredStreamConfigurationLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetDeclaredFunctionBlocks(void**) noexcept = 0; - virtual int32_t __stdcall get_DeclaredFunctionBlocksLastUpdateTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall GetGroupTerminalBlocks(void**) noexcept = 0; - virtual int32_t __stdcall GetUserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall GetTransportSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall GetParentDeviceInformation(void**) noexcept = 0; - virtual int32_t __stdcall GetContainerDeviceInformation(void**) noexcept = 0; - virtual int32_t __stdcall get_Properties(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AddedDevice(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_DeviceInformationUpdate(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromEndpointDeviceId(void*, void**) noexcept = 0; - virtual int32_t __stdcall FindAll(void**) noexcept = 0; - virtual int32_t __stdcall FindAll2(int32_t, void**) noexcept = 0; - virtual int32_t __stdcall FindAll3(int32_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall get_EndpointInterfaceClass(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall GetAdditionalPropertiesList(void**) noexcept = 0; - virtual int32_t __stdcall DeviceMatchesFilter(void*, uint32_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_IsNameUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsEndpointInformationUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsDeviceIdentityUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsStreamConfigurationUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_AreFunctionBlocksUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsUserMetadataUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_AreAdditionalCapabilitiesUpdated(bool*) noexcept = 0; - virtual int32_t __stdcall get_DeviceInformationUpdate(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Start() noexcept = 0; - virtual int32_t __stdcall Stop() noexcept = 0; - virtual int32_t __stdcall get_EnumeratedEndpointDevices(void**) noexcept = 0; - virtual int32_t __stdcall get_Status(int32_t*) noexcept = 0; - virtual int32_t __stdcall add_Added(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Added(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Removed(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Removed(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Updated(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Updated(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_EnumerationCompleted(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_EnumerationCompleted(winrt::event_token) noexcept = 0; - virtual int32_t __stdcall add_Stopped(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_Stopped(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Create(void**) noexcept = 0; - virtual int32_t __stdcall Create2(uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_PluginId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_PluginName(void**) noexcept = 0; - virtual int32_t __stdcall put_PluginName(void*) noexcept = 0; - virtual int32_t __stdcall get_PluginTag(void**) noexcept = 0; - virtual int32_t __stdcall put_PluginTag(void*) noexcept = 0; - virtual int32_t __stdcall get_IsEnabled(bool*) noexcept = 0; - virtual int32_t __stdcall put_IsEnabled(bool) noexcept = 0; - virtual int32_t __stdcall Initialize(void*) noexcept = 0; - virtual int32_t __stdcall OnEndpointConnectionOpened() noexcept = 0; - virtual int32_t __stdcall ProcessIncomingMessage(void*, bool*, bool*) noexcept = 0; - virtual int32_t __stdcall Cleanup() noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsReadOnly(bool*) noexcept = 0; - virtual int32_t __stdcall get_Number(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Number(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall put_Name(void*) noexcept = 0; - virtual int32_t __stdcall get_IsActive(bool*) noexcept = 0; - virtual int32_t __stdcall put_IsActive(bool) noexcept = 0; - virtual int32_t __stdcall get_Direction(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_Direction(int32_t) noexcept = 0; - virtual int32_t __stdcall get_UIHint(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_UIHint(int32_t) noexcept = 0; - virtual int32_t __stdcall get_RepresentsMidi10Connection(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_RepresentsMidi10Connection(int32_t) noexcept = 0; - virtual int32_t __stdcall get_FirstGroupIndex(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_FirstGroupIndex(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_GroupCount(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_GroupCount(uint8_t) noexcept = 0; - virtual int32_t __stdcall IncludesGroup(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_MidiCIMessageVersionFormat(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_MidiCIMessageVersionFormat(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_MaxSystemExclusive8Streams(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_MaxSystemExclusive8Streams(uint8_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Index(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Index(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_DisplayValue(uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall IsValidIndex(uint8_t, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Number(uint8_t*) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_Direction(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_Protocol(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_FirstGroupIndex(uint8_t*) noexcept = 0; - virtual int32_t __stdcall get_GroupCount(uint8_t*) noexcept = 0; - virtual int32_t __stdcall IncludesGroup(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_MaxDeviceInputBandwidthIn4KBitsPerSecondUnits(uint16_t*) noexcept = 0; - virtual int32_t __stdcall get_MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits(uint16_t*) noexcept = 0; - virtual int32_t __stdcall get_CalculatedMaxDeviceInputBandwidthBitsPerSecond(uint32_t*) noexcept = 0; - virtual int32_t __stdcall get_CalculatedMaxDeviceOutputBandwidthBitsPerSecond(uint32_t*) noexcept = 0; - virtual int32_t __stdcall AsEquivalentFunctionBlock(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word2(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word2(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word3(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word3(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Word0(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word0(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word1(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word1(uint32_t) noexcept = 0; - virtual int32_t __stdcall get_Word2(uint32_t*) noexcept = 0; - virtual int32_t __stdcall put_Word2(uint32_t) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint64_t, uint32_t, uint32_t, uint32_t, void*, void**, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(uint64_t, uint32_t, uint32_t*, void*, void**, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateFromStruct(uint64_t, struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_PacketType(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_MessageType(int32_t*) noexcept = 0; - virtual int32_t __stdcall PeekFirstWord(uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetMessagePacket(void**) noexcept = 0; - virtual int32_t __stdcall FillWords(uint32_t*, uint32_t*, uint32_t*, uint32_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillMessageStruct(struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillMessage32(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage64(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage96(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillMessage128(void*, bool*) noexcept = 0; - virtual int32_t __stdcall FillWordArray(uint32_t, uint32_t, uint32_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillByteArray(uint32_t, uint32_t, uint8_t*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillBuffer(uint32_t, void*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall AppendWordsToList(void*, uint8_t*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall add_MessageReceived(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_MessageReceived(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SessionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall get_IsOpen(bool*) noexcept = 0; - virtual int32_t __stdcall get_Connections(void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection(void*, void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection2(void*, bool, void**) noexcept = 0; - virtual int32_t __stdcall CreateEndpointConnection3(void*, bool, void*, void**) noexcept = 0; - virtual int32_t __stdcall DisconnectEndpointConnection(winrt::guid) noexcept = 0; - virtual int32_t __stdcall UpdateName(void*, bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall Create(void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall put_Timestamp(uint64_t) noexcept = 0; - virtual int32_t __stdcall get_MessageType(int32_t*) noexcept = 0; - virtual int32_t __stdcall put_MessageType(int32_t) noexcept = 0; - virtual int32_t __stdcall get_PacketType(int32_t*) noexcept = 0; - virtual int32_t __stdcall PeekFirstWord(uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetAllWords(void**) noexcept = 0; - virtual int32_t __stdcall AppendAllMessageWordsToList(void*, uint8_t*) noexcept = 0; - virtual int32_t __stdcall FillBuffer(uint32_t, void*, uint8_t*) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannel - { - [[nodiscard]] auto Index() const; - auto Index(uint8_t value) const; - [[nodiscard]] auto DisplayValue() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannel; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory - { - auto CreateInstance(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannelFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto IsValidIndex(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiChannelStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiClock - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiClock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics - { - [[nodiscard]] auto Now() const; - [[nodiscard]] auto TimestampConstantSendImmediately() const; - [[nodiscard]] auto TimestampFrequency() const; - auto ConvertTimestampTicksToNanoseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToMicroseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToMilliseconds(uint64_t timestampValue) const; - auto ConvertTimestampTicksToSeconds(uint64_t timestampValue) const; - auto OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks) const; - auto OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds) const; - auto OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds) const; - auto OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiClockStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection - { - [[nodiscard]] auto ConnectionId() const; - [[nodiscard]] auto ConnectedEndpointDeviceId() const; - [[nodiscard]] auto Tag() const; - auto Tag(winrt::Windows::Foundation::IInspectable const& value) const; - [[nodiscard]] auto LogMessageDataValidationErrorDetails() const; - auto LogMessageDataValidationErrorDetails(bool value) const; - [[nodiscard]] auto Settings() const; - [[nodiscard]] auto IsOpen() const; - auto Open() const; - [[nodiscard]] auto IsAutoReconnectEnabled() const; - [[nodiscard]] auto MessageProcessingPlugins() const; - auto AddMessageProcessingPlugin(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointMessageProcessingPlugin const& plugin) const; - auto RemoveMessageProcessingPlugin(winrt::guid const& id) const; - auto SendSingleMessagePacket(winrt::Microsoft::Windows::Devices::Midi2::IMidiUniversalPacket const& message) const; - auto SendSingleMessageStruct(uint64_t timestamp, uint8_t wordCount, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - auto SendSingleMessageWordArray(uint64_t timestamp, uint32_t startIndex, uint8_t wordCount, array_view words) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2) const; - auto SendSingleMessageWords(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3) const; - auto SendSingleMessageBuffer(uint64_t timestamp, uint32_t byteOffset, uint8_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - auto SendMultipleMessagesWordList(uint64_t timestamp, param::iterable const& words) const; - auto SendMultipleMessagesWordArray(uint64_t timestamp, uint32_t startIndex, uint32_t wordCount, array_view words) const; - auto SendMultipleMessagesPacketList(param::iterable const& messages) const; - auto SendMultipleMessagesStructList(uint64_t timestamp, param::iterable const& messages) const; - auto SendMultipleMessagesStructArray(uint64_t timestamp, uint32_t startIndex, uint32_t messageCount, array_view messages) const; - auto SendMultipleMessagesBuffer(uint64_t timestamp, uint32_t byteOffset, uint32_t byteCount, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnection; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings - { - [[nodiscard]] auto SettingsJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSettings; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource - { - auto EndpointDeviceDisconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EndpointDeviceDisconnected_revoker = impl::event_revoker::remove_EndpointDeviceDisconnected>; - [[nodiscard]] auto EndpointDeviceDisconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EndpointDeviceDisconnected(winrt::event_token const& token) const noexcept; - auto EndpointDeviceReconnected(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EndpointDeviceReconnected_revoker = impl::event_revoker::remove_EndpointDeviceReconnected>; - [[nodiscard]] auto EndpointDeviceReconnected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EndpointDeviceReconnected(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionSource; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics - { - auto GetDeviceSelector() const; - auto SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const; - auto SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointConnectionStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto ContainerId() const; - [[nodiscard]] auto DeviceInstanceId() const; - [[nodiscard]] auto EndpointPurpose() const; - auto GetDeclaredEndpointInfo() const; - [[nodiscard]] auto DeclaredEndpointInfoLastUpdateTime() const; - auto GetDeclaredDeviceIdentity() const; - [[nodiscard]] auto DeclaredDeviceIdentityLastUpdateTime() const; - auto GetDeclaredStreamConfiguration() const; - [[nodiscard]] auto DeclaredStreamConfigurationLastUpdateTime() const; - auto GetDeclaredFunctionBlocks() const; - [[nodiscard]] auto DeclaredFunctionBlocksLastUpdateTime() const; - auto GetGroupTerminalBlocks() const; - auto GetUserSuppliedInfo() const; - auto GetTransportSuppliedInfo() const; - auto GetParentDeviceInformation() const; - auto GetContainerDeviceInformation() const; - [[nodiscard]] auto Properties() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformation; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs - { - [[nodiscard]] auto AddedDevice() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationAddedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto DeviceInformationUpdate() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationRemovedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics - { - auto CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId) const; - auto FindAll() const; - auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder) const; - auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) const; - [[nodiscard]] auto EndpointInterfaceClass() const; - auto GetAdditionalPropertiesList() const; - auto DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto IsNameUpdated() const; - [[nodiscard]] auto IsEndpointInformationUpdated() const; - [[nodiscard]] auto IsDeviceIdentityUpdated() const; - [[nodiscard]] auto IsStreamConfigurationUpdated() const; - [[nodiscard]] auto AreFunctionBlocksUpdated() const; - [[nodiscard]] auto IsUserMetadataUpdated() const; - [[nodiscard]] auto AreAdditionalCapabilitiesUpdated() const; - [[nodiscard]] auto DeviceInformationUpdate() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceInformationUpdatedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher - { - auto Start() const; - auto Stop() const; - [[nodiscard]] auto EnumeratedEndpointDevices() const; - [[nodiscard]] auto Status() const; - auto Added(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Added_revoker = impl::event_revoker::remove_Added>; - [[nodiscard]] auto Added(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Added(winrt::event_token const& token) const noexcept; - auto Removed(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Removed_revoker = impl::event_revoker::remove_Removed>; - [[nodiscard]] auto Removed(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Removed(winrt::event_token const& token) const noexcept; - auto Updated(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Updated_revoker = impl::event_revoker::remove_Updated>; - [[nodiscard]] auto Updated(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Updated(winrt::event_token const& token) const noexcept; - auto EnumerationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using EnumerationCompleted_revoker = impl::event_revoker::remove_EnumerationCompleted>; - [[nodiscard]] auto EnumerationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto EnumerationCompleted(winrt::event_token const& token) const noexcept; - auto Stopped(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using Stopped_revoker = impl::event_revoker::remove_Stopped>; - [[nodiscard]] auto Stopped(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto Stopped(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcher; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics - { - auto Create() const; - auto Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointDeviceWatcherStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin - { - [[nodiscard]] auto PluginId() const; - [[nodiscard]] auto PluginName() const; - auto PluginName(param::hstring const& value) const; - [[nodiscard]] auto PluginTag() const; - auto PluginTag(winrt::Windows::Foundation::IInspectable const& value) const; - [[nodiscard]] auto IsEnabled() const; - auto IsEnabled(bool value) const; - auto Initialize(winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSource const& endpointConnection) const; - auto OnEndpointConnectionOpened() const; - auto ProcessIncomingMessage(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageReceivedEventArgs const& args, bool& skipFurtherListeners, bool& skipMainMessageReceivedEvent) const; - auto Cleanup() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiEndpointMessageProcessingPlugin; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock - { - [[nodiscard]] auto IsReadOnly() const; - [[nodiscard]] auto Number() const; - auto Number(uint8_t value) const; - [[nodiscard]] auto Name() const; - auto Name(param::hstring const& value) const; - [[nodiscard]] auto IsActive() const; - auto IsActive(bool value) const; - [[nodiscard]] auto Direction() const; - auto Direction(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& value) const; - [[nodiscard]] auto UIHint() const; - auto UIHint(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& value) const; - [[nodiscard]] auto RepresentsMidi10Connection() const; - auto RepresentsMidi10Connection(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& value) const; - [[nodiscard]] auto FirstGroupIndex() const; - auto FirstGroupIndex(uint8_t value) const; - [[nodiscard]] auto GroupCount() const; - auto GroupCount(uint8_t value) const; - auto IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const; - [[nodiscard]] auto MidiCIMessageVersionFormat() const; - auto MidiCIMessageVersionFormat(uint8_t value) const; - [[nodiscard]] auto MaxSystemExclusive8Streams() const; - auto MaxSystemExclusive8Streams(uint8_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiFunctionBlock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroup - { - [[nodiscard]] auto Index() const; - auto Index(uint8_t value) const; - [[nodiscard]] auto DisplayValue() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroup; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory - { - auto CreateInstance(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto IsValidIndex(uint8_t index) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock - { - [[nodiscard]] auto Number() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto Direction() const; - [[nodiscard]] auto Protocol() const; - [[nodiscard]] auto FirstGroupIndex() const; - [[nodiscard]] auto GroupCount() const; - auto IncludesGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group) const; - [[nodiscard]] auto MaxDeviceInputBandwidthIn4KBitsPerSecondUnits() const; - [[nodiscard]] auto MaxDeviceOutputBandwidthIn4KBitsPerSecondUnits() const; - [[nodiscard]] auto CalculatedMaxDeviceInputBandwidthBitsPerSecond() const; - [[nodiscard]] auto CalculatedMaxDeviceOutputBandwidthBitsPerSecond() const; - auto AsEquivalentFunctionBlock() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiGroupTerminalBlock; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - [[nodiscard]] auto Word2() const; - auto Word2(uint32_t value) const; - [[nodiscard]] auto Word3() const; - auto Word3(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage128Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage32Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage64Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96 - { - [[nodiscard]] auto Word0() const; - auto Word0(uint32_t value) const; - [[nodiscard]] auto Word1() const; - auto Word1(uint32_t value) const; - [[nodiscard]] auto Word2() const; - auto Word2(uint32_t value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory - { - auto CreateInstance(winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance2(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - auto CreateInstance3(uint64_t timestamp, array_view words, winrt::Windows::Foundation::IInspectable const& baseInterface, winrt::Windows::Foundation::IInspectable& innerInterface) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Factory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics - { - auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessage96Statics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs - { - [[nodiscard]] auto Timestamp() const; - [[nodiscard]] auto PacketType() const; - [[nodiscard]] auto MessageType() const; - auto PeekFirstWord() const; - auto GetMessagePacket() const; - auto FillWords(uint32_t& word0, uint32_t& word1, uint32_t& word2, uint32_t& word3) const; - auto FillMessageStruct(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct& message) const; - auto FillMessage32(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage32 const& message) const; - auto FillMessage64(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage64 const& message) const; - auto FillMessage96(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage96 const& message) const; - auto FillMessage128(winrt::Microsoft::Windows::Devices::Midi2::MidiMessage128 const& message) const; - auto FillWordArray(uint32_t startIndex, array_view words) const; - auto FillByteArray(uint32_t startIndex, array_view bytes) const; - auto FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - auto AppendWordsToList(param::vector const& wordList) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource - { - auto MessageReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using MessageReceived_revoker = impl::event_revoker::remove_MessageReceived>; - [[nodiscard]] auto MessageReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto MessageReceived(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiMessageReceivedEventSource; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiSession - { - [[nodiscard]] auto SessionId() const; - [[nodiscard]] auto Name() const; - [[nodiscard]] auto IsOpen() const; - [[nodiscard]] auto Connections() const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId) const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect) const; - auto CreateEndpointConnection(param::hstring const& endpointDeviceId, bool autoReconnect, winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnectionSettings const& settings) const; - auto DisconnectEndpointConnection(winrt::guid const& endpointConnectionId) const; - auto UpdateName(param::hstring const& newName) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiSession; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics - { - auto Create(param::hstring const& sessionName) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiSessionStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket - { - [[nodiscard]] auto Timestamp() const; - auto Timestamp(uint64_t value) const; - [[nodiscard]] auto MessageType() const; - auto MessageType(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& value) const; - [[nodiscard]] auto PacketType() const; - auto PeekFirstWord() const; - auto GetAllWords() const; - auto AppendAllMessageWordsToList(param::vector const& targetList) const; - auto FillBuffer(uint32_t byteOffset, winrt::Windows::Foundation::IMemoryBuffer const& buffer) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_IMidiUniversalPacket; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity - { - uint8_t SystemExclusiveIdByte1; - uint8_t SystemExclusiveIdByte2; - uint8_t SystemExclusiveIdByte3; - uint8_t DeviceFamilyLsb; - uint8_t DeviceFamilyMsb; - uint8_t DeviceFamilyModelNumberLsb; - uint8_t DeviceFamilyModelNumberMsb; - uint8_t SoftwareRevisionLevelByte1; - uint8_t SoftwareRevisionLevelByte2; - uint8_t SoftwareRevisionLevelByte3; - uint8_t SoftwareRevisionLevelByte4; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo - { - void* Name; - void* ProductInstanceId; - bool SupportsMidi10Protocol; - bool SupportsMidi20Protocol; - bool SupportsReceivingJitterReductionTimestamps; - bool SupportsSendingJitterReductionTimestamps; - bool HasStaticFunctionBlocks; - uint8_t DeclaredFunctionBlockCount; - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration - { - int32_t Protocol; - bool ReceiveJitterReductionTimestamps; - bool SendJitterReductionTimestamps; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredStreamConfiguration; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo - { - void* Name; - void* Description; - void* SerialNumber; - uint16_t VendorId; - uint16_t ProductId; - void* ManufacturerName; - bool SupportsMultiClient; - int32_t NativeDataFormat; - winrt::guid TransportId; - void* TransportAbbreviation; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiEndpointTransportSuppliedInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo - { - void* Name; - void* Description; - void* LargeImagePath; - void* SmallImagePath; - bool RequiresNoteOffTranslation; - uint16_t RecommendedControlChangeAutomationIntervalMilliseconds; - bool SupportsMidiPolyphonicExpression; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct - { - uint32_t Word0; - uint32_t Word1; - uint32_t Word2; - uint32_t Word3; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_MidiMessageStruct; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h deleted file mode 100644 index 3958e0869..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h +++ /dev/null @@ -1,283 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct WINRT_IMPL_EMPTY_BASES IMidiChannel : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannel(std::nullptr_t = nullptr) noexcept {} - IMidiChannel(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiChannelFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelFactory(std::nullptr_t = nullptr) noexcept {} - IMidiChannelFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiChannelStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelStatics(std::nullptr_t = nullptr) noexcept {} - IMidiChannelStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiClock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiClock(std::nullptr_t = nullptr) noexcept {} - IMidiClock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiClockStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiClockStatics(std::nullptr_t = nullptr) noexcept {} - IMidiClockStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnection : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnection(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnection(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionSettings : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionSettings(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionSettings(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionSource : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionSource(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointConnectionStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointConnectionStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointConnectionStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformation : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformation(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationAddedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationAddedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationAddedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationRemovedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationRemovedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationRemovedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceInformationUpdatedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceInformationUpdatedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceInformationUpdatedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceWatcher : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceWatcher(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceWatcher(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointDeviceWatcherStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointDeviceWatcherStatics(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointDeviceWatcherStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiEndpointMessageProcessingPlugin : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiEndpointMessageProcessingPlugin(std::nullptr_t = nullptr) noexcept {} - IMidiEndpointMessageProcessingPlugin(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiFunctionBlock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiFunctionBlock(std::nullptr_t = nullptr) noexcept {} - IMidiFunctionBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroup : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroup(std::nullptr_t = nullptr) noexcept {} - IMidiGroup(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupFactory(std::nullptr_t = nullptr) noexcept {} - IMidiGroupFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupStatics(std::nullptr_t = nullptr) noexcept {} - IMidiGroupStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupTerminalBlock : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupTerminalBlock(std::nullptr_t = nullptr) noexcept {} - IMidiGroupTerminalBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage128Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage128Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage128Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage32Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage32Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage32Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage64Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage64Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage64Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96 : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96Factory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96Factory(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96Factory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessage96Statics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessage96Statics(std::nullptr_t = nullptr) noexcept {} - IMidiMessage96Statics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageReceivedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageReceivedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiMessageReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageReceivedEventSource : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageReceivedEventSource(std::nullptr_t = nullptr) noexcept {} - IMidiMessageReceivedEventSource(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiSession : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiSession(std::nullptr_t = nullptr) noexcept {} - IMidiSession(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiSessionStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiSessionStatics(std::nullptr_t = nullptr) noexcept {} - IMidiSessionStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniversalPacket : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniversalPacket(std::nullptr_t = nullptr) noexcept {} - IMidiUniversalPacket(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h deleted file mode 100644 index e322db4de..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h +++ /dev/null @@ -1,261 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_2_H -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiDeclaredDeviceIdentity - { - uint8_t SystemExclusiveIdByte1; - uint8_t SystemExclusiveIdByte2; - uint8_t SystemExclusiveIdByte3; - uint8_t DeviceFamilyLsb; - uint8_t DeviceFamilyMsb; - uint8_t DeviceFamilyModelNumberLsb; - uint8_t DeviceFamilyModelNumberMsb; - uint8_t SoftwareRevisionLevelByte1; - uint8_t SoftwareRevisionLevelByte2; - uint8_t SoftwareRevisionLevelByte3; - uint8_t SoftwareRevisionLevelByte4; - }; - inline bool operator==(MidiDeclaredDeviceIdentity const& left, MidiDeclaredDeviceIdentity const& right) noexcept - { - return left.SystemExclusiveIdByte1 == right.SystemExclusiveIdByte1 && left.SystemExclusiveIdByte2 == right.SystemExclusiveIdByte2 && left.SystemExclusiveIdByte3 == right.SystemExclusiveIdByte3 && left.DeviceFamilyLsb == right.DeviceFamilyLsb && left.DeviceFamilyMsb == right.DeviceFamilyMsb && left.DeviceFamilyModelNumberLsb == right.DeviceFamilyModelNumberLsb && left.DeviceFamilyModelNumberMsb == right.DeviceFamilyModelNumberMsb && left.SoftwareRevisionLevelByte1 == right.SoftwareRevisionLevelByte1 && left.SoftwareRevisionLevelByte2 == right.SoftwareRevisionLevelByte2 && left.SoftwareRevisionLevelByte3 == right.SoftwareRevisionLevelByte3 && left.SoftwareRevisionLevelByte4 == right.SoftwareRevisionLevelByte4; - } - inline bool operator!=(MidiDeclaredDeviceIdentity const& left, MidiDeclaredDeviceIdentity const& right) noexcept - { - return !(left == right); - } - struct MidiDeclaredEndpointInfo - { - hstring Name; - hstring ProductInstanceId; - bool SupportsMidi10Protocol; - bool SupportsMidi20Protocol; - bool SupportsReceivingJitterReductionTimestamps; - bool SupportsSendingJitterReductionTimestamps; - bool HasStaticFunctionBlocks; - uint8_t DeclaredFunctionBlockCount; - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - }; - inline bool operator==(MidiDeclaredEndpointInfo const& left, MidiDeclaredEndpointInfo const& right) noexcept - { - return left.Name == right.Name && left.ProductInstanceId == right.ProductInstanceId && left.SupportsMidi10Protocol == right.SupportsMidi10Protocol && left.SupportsMidi20Protocol == right.SupportsMidi20Protocol && left.SupportsReceivingJitterReductionTimestamps == right.SupportsReceivingJitterReductionTimestamps && left.SupportsSendingJitterReductionTimestamps == right.SupportsSendingJitterReductionTimestamps && left.HasStaticFunctionBlocks == right.HasStaticFunctionBlocks && left.DeclaredFunctionBlockCount == right.DeclaredFunctionBlockCount && left.SpecificationVersionMajor == right.SpecificationVersionMajor && left.SpecificationVersionMinor == right.SpecificationVersionMinor; - } - inline bool operator!=(MidiDeclaredEndpointInfo const& left, MidiDeclaredEndpointInfo const& right) noexcept - { - return !(left == right); - } - struct MidiDeclaredStreamConfiguration - { - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol Protocol; - bool ReceiveJitterReductionTimestamps; - bool SendJitterReductionTimestamps; - }; - inline bool operator==(MidiDeclaredStreamConfiguration const& left, MidiDeclaredStreamConfiguration const& right) noexcept - { - return left.Protocol == right.Protocol && left.ReceiveJitterReductionTimestamps == right.ReceiveJitterReductionTimestamps && left.SendJitterReductionTimestamps == right.SendJitterReductionTimestamps; - } - inline bool operator!=(MidiDeclaredStreamConfiguration const& left, MidiDeclaredStreamConfiguration const& right) noexcept - { - return !(left == right); - } - struct MidiEndpointTransportSuppliedInfo - { - hstring Name; - hstring Description; - hstring SerialNumber; - uint16_t VendorId; - uint16_t ProductId; - hstring ManufacturerName; - bool SupportsMultiClient; - winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointNativeDataFormat NativeDataFormat; - winrt::guid TransportId; - hstring TransportAbbreviation; - }; - inline bool operator==(MidiEndpointTransportSuppliedInfo const& left, MidiEndpointTransportSuppliedInfo const& right) noexcept - { - return left.Name == right.Name && left.Description == right.Description && left.SerialNumber == right.SerialNumber && left.VendorId == right.VendorId && left.ProductId == right.ProductId && left.ManufacturerName == right.ManufacturerName && left.SupportsMultiClient == right.SupportsMultiClient && left.NativeDataFormat == right.NativeDataFormat && left.TransportId == right.TransportId && left.TransportAbbreviation == right.TransportAbbreviation; - } - inline bool operator!=(MidiEndpointTransportSuppliedInfo const& left, MidiEndpointTransportSuppliedInfo const& right) noexcept - { - return !(left == right); - } - struct MidiEndpointUserSuppliedInfo - { - hstring Name; - hstring Description; - hstring LargeImagePath; - hstring SmallImagePath; - bool RequiresNoteOffTranslation; - uint16_t RecommendedControlChangeAutomationIntervalMilliseconds; - bool SupportsMidiPolyphonicExpression; - }; - inline bool operator==(MidiEndpointUserSuppliedInfo const& left, MidiEndpointUserSuppliedInfo const& right) noexcept - { - return left.Name == right.Name && left.Description == right.Description && left.LargeImagePath == right.LargeImagePath && left.SmallImagePath == right.SmallImagePath && left.RequiresNoteOffTranslation == right.RequiresNoteOffTranslation && left.RecommendedControlChangeAutomationIntervalMilliseconds == right.RecommendedControlChangeAutomationIntervalMilliseconds && left.SupportsMidiPolyphonicExpression == right.SupportsMidiPolyphonicExpression; - } - inline bool operator!=(MidiEndpointUserSuppliedInfo const& left, MidiEndpointUserSuppliedInfo const& right) noexcept - { - return !(left == right); - } - struct MidiMessageStruct - { - uint32_t Word0; - uint32_t Word1; - uint32_t Word2; - uint32_t Word3; - }; - inline bool operator==(MidiMessageStruct const& left, MidiMessageStruct const& right) noexcept - { - return left.Word0 == right.Word0 && left.Word1 == right.Word1 && left.Word2 == right.Word2 && left.Word3 == right.Word3; - } - inline bool operator!=(MidiMessageStruct const& left, MidiMessageStruct const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiChannel : winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel - { - MidiChannel(std::nullptr_t) noexcept {} - MidiChannel(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiChannel(ptr, take_ownership_from_abi) {} - explicit MidiChannel(uint8_t index); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto IsValidIndex(uint8_t index); - }; - struct WINRT_IMPL_EMPTY_BASES MidiClock : winrt::Microsoft::Windows::Devices::Midi2::IMidiClock - { - MidiClock(std::nullptr_t) noexcept {} - MidiClock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiClock(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto Now(); - [[nodiscard]] static auto TimestampConstantSendImmediately(); - [[nodiscard]] static auto TimestampFrequency(); - static auto ConvertTimestampTicksToNanoseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToMicroseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToMilliseconds(uint64_t timestampValue); - static auto ConvertTimestampTicksToSeconds(uint64_t timestampValue); - static auto OffsetTimestampByTicks(uint64_t timestampValue, int64_t offsetTicks); - static auto OffsetTimestampByMicroseconds(uint64_t timestampValue, int64_t offsetMicroseconds); - static auto OffsetTimestampByMilliseconds(uint64_t timestampValue, int64_t offsetMilliseconds); - static auto OffsetTimestampBySeconds(uint64_t timestampValue, int64_t offsetSeconds); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointConnection : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection, - impl::require - { - MidiEndpointConnection(std::nullptr_t) noexcept {} - MidiEndpointConnection(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointConnection(ptr, take_ownership_from_abi) {} - static auto GetDeviceSelector(); - static auto SendMessageSucceeded(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult); - static auto SendMessageFailed(winrt::Microsoft::Windows::Devices::Midi2::MidiSendMessageResults const& sendResult); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformation : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation - { - MidiEndpointDeviceInformation(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformation(ptr, take_ownership_from_abi) {} - static auto CreateFromEndpointDeviceId(param::hstring const& endpointDeviceId); - static auto FindAll(); - static auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder); - static auto FindAll(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationSortOrder const& sortOrder, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude); - [[nodiscard]] static auto EndpointInterfaceClass(); - static auto GetAdditionalPropertiesList(); - static auto DeviceMatchesFilter(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformation const& deviceInformation, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointTypesToInclude); - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationAddedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs - { - MidiEndpointDeviceInformationAddedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationAddedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationAddedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationRemovedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs - { - MidiEndpointDeviceInformationRemovedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationRemovedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationRemovedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceInformationUpdatedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs - { - MidiEndpointDeviceInformationUpdatedEventArgs(std::nullptr_t) noexcept {} - MidiEndpointDeviceInformationUpdatedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceInformationUpdatedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiEndpointDeviceWatcher : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher - { - MidiEndpointDeviceWatcher(std::nullptr_t) noexcept {} - MidiEndpointDeviceWatcher(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiEndpointDeviceWatcher(ptr, take_ownership_from_abi) {} - static auto Create(); - static auto Create(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointDeviceInformationFilters const& endpointFilters); - }; - struct WINRT_IMPL_EMPTY_BASES MidiFunctionBlock : winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock - { - MidiFunctionBlock(std::nullptr_t) noexcept {} - MidiFunctionBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiFunctionBlock(ptr, take_ownership_from_abi) {} - MidiFunctionBlock(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroup : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup - { - MidiGroup(std::nullptr_t) noexcept {} - MidiGroup(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroup(ptr, take_ownership_from_abi) {} - explicit MidiGroup(uint8_t index); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto IsValidIndex(uint8_t index); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroupTerminalBlock : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock - { - MidiGroupTerminalBlock(std::nullptr_t) noexcept {} - MidiGroupTerminalBlock(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiGroupTerminalBlock(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage128 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128, - impl::require - { - MidiMessage128(std::nullptr_t) noexcept {} - MidiMessage128(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage128(ptr, take_ownership_from_abi) {} - MidiMessage128(); - MidiMessage128(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2, uint32_t word3); - MidiMessage128(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage32 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32, - impl::require - { - MidiMessage32(std::nullptr_t) noexcept {} - MidiMessage32(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage32(ptr, take_ownership_from_abi) {} - MidiMessage32(); - MidiMessage32(uint64_t timestamp, uint32_t word0); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage64 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64, - impl::require - { - MidiMessage64(std::nullptr_t) noexcept {} - MidiMessage64(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage64(ptr, take_ownership_from_abi) {} - MidiMessage64(); - MidiMessage64(uint64_t timestamp, uint32_t word0, uint32_t word1); - MidiMessage64(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessage96 : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96, - impl::require - { - MidiMessage96(std::nullptr_t) noexcept {} - MidiMessage96(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessage96(ptr, take_ownership_from_abi) {} - MidiMessage96(); - MidiMessage96(uint64_t timestamp, uint32_t word0, uint32_t word1, uint32_t word2); - MidiMessage96(uint64_t timestamp, array_view words); - static auto CreateFromStruct(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiMessageStruct const& message); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessageReceivedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs - { - MidiMessageReceivedEventArgs(std::nullptr_t) noexcept {} - MidiMessageReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiMessageReceivedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiSession : winrt::Microsoft::Windows::Devices::Midi2::IMidiSession, - impl::require - { - MidiSession(std::nullptr_t) noexcept {} - MidiSession(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::IMidiSession(ptr, take_ownership_from_abi) {} - static auto Create(param::hstring const& sessionName); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h deleted file mode 100644 index 438febb66..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h +++ /dev/null @@ -1,104 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct IMidiUniqueId; - struct IMidiUniqueIdFactory; - struct IMidiUniqueIdStatics; - struct MidiUniqueId; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.MidiUniqueId"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueId"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueIdFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.CapabilityInquiry.IMidiUniqueIdStatics"; - template <> inline constexpr guid guid_v{ 0x2476DCBC,0x3CD7,0x5346,{ 0x9F,0x5C,0xE6,0xD1,0xAD,0xD1,0x67,0x41 } }; // 2476DCBC-3CD7-5346-9F5C-E6D1ADD16741 - template <> inline constexpr guid guid_v{ 0xD2F59A5C,0xE78B,0x5D7A,{ 0x9B,0x22,0x3D,0xC0,0x28,0x58,0x1A,0x64 } }; // D2F59A5C-E78B-5D7A-9B22-3DC028581A64 - template <> inline constexpr guid guid_v{ 0x27B256C2,0xB3B0,0x507A,{ 0xBC,0x6B,0x48,0xE6,0xFC,0x42,0xB4,0x68 } }; // 27B256C2-B3B0-507A-BC6B-48E6FC42B468 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Byte1(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte1(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte2(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte2(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte3(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte3(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_Byte4(uint8_t*) noexcept = 0; - virtual int32_t __stdcall put_Byte4(uint8_t) noexcept = 0; - virtual int32_t __stdcall get_AsCombined28BitValue(uint32_t*) noexcept = 0; - virtual int32_t __stdcall get_IsBroadcast(bool*) noexcept = 0; - virtual int32_t __stdcall get_IsReserved(bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_ShortLabel(void**) noexcept = 0; - virtual int32_t __stdcall get_LongLabel(void**) noexcept = 0; - virtual int32_t __stdcall CreateBroadcast(void**) noexcept = 0; - virtual int32_t __stdcall CreateRandom(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId - { - [[nodiscard]] auto Byte1() const; - auto Byte1(uint8_t value) const; - [[nodiscard]] auto Byte2() const; - auto Byte2(uint8_t value) const; - [[nodiscard]] auto Byte3() const; - auto Byte3(uint8_t value) const; - [[nodiscard]] auto Byte4() const; - auto Byte4(uint8_t value) const; - [[nodiscard]] auto AsCombined28BitValue() const; - [[nodiscard]] auto IsBroadcast() const; - [[nodiscard]] auto IsReserved() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueId; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory - { - auto CreateInstance(uint32_t combined28BitValue) const; - auto CreateInstance2(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics - { - [[nodiscard]] auto ShortLabel() const; - [[nodiscard]] auto LongLabel() const; - auto CreateBroadcast() const; - auto CreateRandom() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_IMidiUniqueIdStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h deleted file mode 100644 index d105e51bc..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h +++ /dev/null @@ -1,31 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueId : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueId(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueId(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueIdFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueIdFactory(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueIdFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiUniqueIdStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiUniqueIdStatics(std::nullptr_t = nullptr) noexcept {} - IMidiUniqueIdStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h deleted file mode 100644 index b4914e773..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h +++ /dev/null @@ -1,22 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_CapabilityInquiry_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry -{ - struct WINRT_IMPL_EMPTY_BASES MidiUniqueId : winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId - { - MidiUniqueId(std::nullptr_t) noexcept {} - MidiUniqueId(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::CapabilityInquiry::IMidiUniqueId(ptr, take_ownership_from_abi) {} - MidiUniqueId(); - explicit MidiUniqueId(uint32_t combined28BitValue); - MidiUniqueId(uint8_t sevenBitByte1, uint8_t sevenBitByte2, uint8_t sevenBitByte3, uint8_t sevenBitByte4); - [[nodiscard]] static auto ShortLabel(); - [[nodiscard]] static auto LongLabel(); - static auto CreateBroadcast(); - static auto CreateRandom(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h deleted file mode 100644 index 6bf8c9af9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h +++ /dev/null @@ -1,116 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiGroup; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct IMidiChannelEndpointListener; - struct IMidiGroupEndpointListener; - struct IMidiMessageTypeEndpointListener; - struct MidiChannelEndpointListener; - struct MidiGroupEndpointListener; - struct MidiMessageTypeEndpointListener; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiChannelEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiGroupEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.MidiMessageTypeEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiChannelEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiGroupEndpointListener"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ClientPlugins.IMidiMessageTypeEndpointListener"; - template <> inline constexpr guid guid_v{ 0xFD961EBD,0xE883,0x5C78,{ 0xB1,0x00,0xC0,0x2B,0x70,0x50,0xAE,0x59 } }; // FD961EBD-E883-5C78-B100-C02B7050AE59 - template <> inline constexpr guid guid_v{ 0xA8FE598F,0x2E81,0x507E,{ 0x99,0x46,0x44,0x45,0x45,0x26,0xBF,0x61 } }; // A8FE598F-2E81-507E-9946-44454526BF61 - template <> inline constexpr guid guid_v{ 0x3F03A513,0x6032,0x58F6,{ 0x98,0x17,0xB8,0xD3,0xC7,0xE8,0x9B,0x89 } }; // 3F03A513-6032-58F6-9817-B8D3C7E89B89 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedGroup(void**) noexcept = 0; - virtual int32_t __stdcall put_IncludedGroup(void*) noexcept = 0; - virtual int32_t __stdcall get_IncludedChannels(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedGroups(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IncludedMessageTypes(void**) noexcept = 0; - virtual int32_t __stdcall get_PreventCallingFurtherListeners(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventCallingFurtherListeners(bool) noexcept = 0; - virtual int32_t __stdcall get_PreventFiringMainMessageReceivedEvent(bool*) noexcept = 0; - virtual int32_t __stdcall put_PreventFiringMainMessageReceivedEvent(bool) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener - { - [[nodiscard]] auto IncludedGroup() const; - auto IncludedGroup(winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& value) const; - [[nodiscard]] auto IncludedChannels() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiChannelEndpointListener; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener - { - [[nodiscard]] auto IncludedGroups() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiGroupEndpointListener; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener - { - [[nodiscard]] auto IncludedMessageTypes() const; - [[nodiscard]] auto PreventCallingFurtherListeners() const; - auto PreventCallingFurtherListeners(bool value) const; - [[nodiscard]] auto PreventFiringMainMessageReceivedEvent() const; - auto PreventFiringMainMessageReceivedEvent(bool value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ClientPlugins_IMidiMessageTypeEndpointListener; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h deleted file mode 100644 index 9cef219ea..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h +++ /dev/null @@ -1,31 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct WINRT_IMPL_EMPTY_BASES IMidiChannelEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiChannelEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiChannelEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiGroupEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiGroupEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiGroupEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageTypeEndpointListener : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageTypeEndpointListener(std::nullptr_t = nullptr) noexcept {} - IMidiMessageTypeEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h deleted file mode 100644 index fde3586c8..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h +++ /dev/null @@ -1,32 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ClientPlugins_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins -{ - struct WINRT_IMPL_EMPTY_BASES MidiChannelEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener, - impl::require - { - MidiChannelEndpointListener(std::nullptr_t) noexcept {} - MidiChannelEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiChannelEndpointListener(ptr, take_ownership_from_abi) {} - MidiChannelEndpointListener(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiGroupEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener, - impl::require - { - MidiGroupEndpointListener(std::nullptr_t) noexcept {} - MidiGroupEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiGroupEndpointListener(ptr, take_ownership_from_abi) {} - MidiGroupEndpointListener(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiMessageTypeEndpointListener : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener, - impl::require - { - MidiMessageTypeEndpointListener(std::nullptr_t) noexcept {} - MidiMessageTypeEndpointListener(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ClientPlugins::IMidiMessageTypeEndpointListener(ptr, take_ownership_from_abi) {} - MidiMessageTypeEndpointListener(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h deleted file mode 100644 index 5a140177a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h +++ /dev/null @@ -1,206 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_0_H -WINRT_EXPORT namespace winrt::Windows::Foundation -{ -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct IMidiDiagnosticsStatics; - struct IMidiReportingStatics; - struct IMidiServicePingResponseSummary; - struct IMidiServiceSessionInfo; - struct MidiDiagnostics; - struct MidiReporting; - struct MidiServicePingResponseSummary; - struct MidiServiceSessionInfo; - struct MidiServiceMessageProcessingPluginInfo; - struct MidiServicePingResponse; - struct MidiServiceSessionConnectionInfo; - struct MidiServiceTransportPluginInfo; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiDiagnostics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiReporting"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServicePingResponseSummary"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceSessionInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceMessageProcessingPluginInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServicePingResponse"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceSessionConnectionInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.MidiServiceTransportPluginInfo"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiDiagnosticsStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiReportingStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiServicePingResponseSummary"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Diagnostics.IMidiServiceSessionInfo"; - template <> inline constexpr guid guid_v{ 0x4AB631D4,0x3C9A,0x5E7D,{ 0xB3,0xDA,0xB4,0x85,0x69,0x7E,0xDF,0x9E } }; // 4AB631D4-3C9A-5E7D-B3DA-B485697EDF9E - template <> inline constexpr guid guid_v{ 0x836257F9,0xF81F,0x5C0E,{ 0xB6,0xF2,0xB2,0xD0,0xF9,0xDC,0xF6,0x8E } }; // 836257F9-F81F-5C0E-B6F2-B2D0F9DCF68E - template <> inline constexpr guid guid_v{ 0x9826B87F,0x01ED,0x56CE,{ 0xA5,0x40,0x6A,0xB9,0x89,0xA0,0x3E,0xF8 } }; // 9826B87F-01ED-56CE-A540-6AB989A03EF8 - template <> inline constexpr guid guid_v{ 0x3156AD39,0x109E,0x5B67,{ 0x86,0x1B,0xAE,0x41,0x38,0x27,0xC9,0x05 } }; // 3156AD39-109E-5B67-861B-AE413827C905 - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_DiagnosticsLoopbackAEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_DiagnosticsLoopbackBEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall PingService(uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall PingService2(uint8_t, uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall GetInstalledTransportPlugins(void**) noexcept = 0; - virtual int32_t __stdcall GetInstalledMessageProcessingPlugins(void**) noexcept = 0; - virtual int32_t __stdcall GetActiveSessions(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Success(bool*) noexcept = 0; - virtual int32_t __stdcall get_FailureReason(void**) noexcept = 0; - virtual int32_t __stdcall get_TotalPingRoundTripMidiClock(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_AveragePingRoundTripMidiClock(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_Responses(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_SessionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_ProcessId(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_ProcessName(void**) noexcept = 0; - virtual int32_t __stdcall get_SessionName(void**) noexcept = 0; - virtual int32_t __stdcall get_StartTime(int64_t*) noexcept = 0; - virtual int32_t __stdcall get_Connections(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics - { - [[nodiscard]] auto DiagnosticsLoopbackAEndpointDeviceId() const; - [[nodiscard]] auto DiagnosticsLoopbackBEndpointDeviceId() const; - auto PingService(uint8_t pingCount) const; - auto PingService(uint8_t pingCount, uint32_t timeoutMilliseconds) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiDiagnosticsStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics - { - auto GetInstalledTransportPlugins() const; - auto GetInstalledMessageProcessingPlugins() const; - auto GetActiveSessions() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiReportingStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary - { - [[nodiscard]] auto Success() const; - [[nodiscard]] auto FailureReason() const; - [[nodiscard]] auto TotalPingRoundTripMidiClock() const; - [[nodiscard]] auto AveragePingRoundTripMidiClock() const; - [[nodiscard]] auto Responses() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServicePingResponseSummary; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo - { - [[nodiscard]] auto SessionId() const; - [[nodiscard]] auto ProcessId() const; - [[nodiscard]] auto ProcessName() const; - [[nodiscard]] auto SessionName() const; - [[nodiscard]] auto StartTime() const; - [[nodiscard]] auto Connections() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Diagnostics_IMidiServiceSessionInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceMessageProcessingPluginInfo - { - winrt::guid Id; - void* Name; - void* Description; - void* Author; - void* SmallImagePath; - void* Version; - bool SupportsMultipleInstancesPerDevice; - bool IsSystemManaged; - bool IsClientConfigurable; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceMessageProcessingPluginInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServicePingResponse - { - uint32_t SourceId; - uint32_t Index; - uint64_t ClientSendMidiTimestamp; - uint64_t ServiceReportedMidiTimestamp; - uint64_t ClientReceiveMidiTimestamp; - uint64_t ClientDeltaTimestamp; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServicePingResponse; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceSessionConnectionInfo - { - void* EndpointDeviceId; - uint16_t InstanceCount; - int64_t EarliestConnectionTime; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceSessionConnectionInfo; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceTransportPluginInfo - { - winrt::guid Id; - void* Name; - void* Abbreviation; - void* Description; - void* SmallImagePath; - void* Author; - void* Version; - bool IsRuntimeCreatableByApps; - bool IsRuntimeCreatableBySettings; - bool IsSystemManaged; - bool CanConfigure; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Diagnostics_MidiServiceTransportPluginInfo; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h deleted file mode 100644 index 4138c1102..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct WINRT_IMPL_EMPTY_BASES IMidiDiagnosticsStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiDiagnosticsStatics(std::nullptr_t = nullptr) noexcept {} - IMidiDiagnosticsStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiReportingStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiReportingStatics(std::nullptr_t = nullptr) noexcept {} - IMidiReportingStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServicePingResponseSummary : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicePingResponseSummary(std::nullptr_t = nullptr) noexcept {} - IMidiServicePingResponseSummary(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceSessionInfo : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceSessionInfo(std::nullptr_t = nullptr) noexcept {} - IMidiServiceSessionInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h deleted file mode 100644 index cee0e284c..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h +++ /dev/null @@ -1,109 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Diagnostics_2_H -#include "winrt/impl/Windows.Foundation.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Diagnostics -{ - struct MidiServiceMessageProcessingPluginInfo - { - winrt::guid Id; - hstring Name; - hstring Description; - hstring Author; - hstring SmallImagePath; - hstring Version; - bool SupportsMultipleInstancesPerDevice; - bool IsSystemManaged; - bool IsClientConfigurable; - }; - inline bool operator==(MidiServiceMessageProcessingPluginInfo const& left, MidiServiceMessageProcessingPluginInfo const& right) noexcept - { - return left.Id == right.Id && left.Name == right.Name && left.Description == right.Description && left.Author == right.Author && left.SmallImagePath == right.SmallImagePath && left.Version == right.Version && left.SupportsMultipleInstancesPerDevice == right.SupportsMultipleInstancesPerDevice && left.IsSystemManaged == right.IsSystemManaged && left.IsClientConfigurable == right.IsClientConfigurable; - } - inline bool operator!=(MidiServiceMessageProcessingPluginInfo const& left, MidiServiceMessageProcessingPluginInfo const& right) noexcept - { - return !(left == right); - } - struct MidiServicePingResponse - { - uint32_t SourceId; - uint32_t Index; - uint64_t ClientSendMidiTimestamp; - uint64_t ServiceReportedMidiTimestamp; - uint64_t ClientReceiveMidiTimestamp; - uint64_t ClientDeltaTimestamp; - }; - inline bool operator==(MidiServicePingResponse const& left, MidiServicePingResponse const& right) noexcept - { - return left.SourceId == right.SourceId && left.Index == right.Index && left.ClientSendMidiTimestamp == right.ClientSendMidiTimestamp && left.ServiceReportedMidiTimestamp == right.ServiceReportedMidiTimestamp && left.ClientReceiveMidiTimestamp == right.ClientReceiveMidiTimestamp && left.ClientDeltaTimestamp == right.ClientDeltaTimestamp; - } - inline bool operator!=(MidiServicePingResponse const& left, MidiServicePingResponse const& right) noexcept - { - return !(left == right); - } - struct MidiServiceSessionConnectionInfo - { - hstring EndpointDeviceId; - uint16_t InstanceCount; - winrt::Windows::Foundation::DateTime EarliestConnectionTime; - }; - inline bool operator==(MidiServiceSessionConnectionInfo const& left, MidiServiceSessionConnectionInfo const& right) noexcept - { - return left.EndpointDeviceId == right.EndpointDeviceId && left.InstanceCount == right.InstanceCount && left.EarliestConnectionTime == right.EarliestConnectionTime; - } - inline bool operator!=(MidiServiceSessionConnectionInfo const& left, MidiServiceSessionConnectionInfo const& right) noexcept - { - return !(left == right); - } - struct MidiServiceTransportPluginInfo - { - winrt::guid Id; - hstring Name; - hstring Abbreviation; - hstring Description; - hstring SmallImagePath; - hstring Author; - hstring Version; - bool IsRuntimeCreatableByApps; - bool IsRuntimeCreatableBySettings; - bool IsSystemManaged; - bool CanConfigure; - }; - inline bool operator==(MidiServiceTransportPluginInfo const& left, MidiServiceTransportPluginInfo const& right) noexcept - { - return left.Id == right.Id && left.Name == right.Name && left.Abbreviation == right.Abbreviation && left.Description == right.Description && left.SmallImagePath == right.SmallImagePath && left.Author == right.Author && left.Version == right.Version && left.IsRuntimeCreatableByApps == right.IsRuntimeCreatableByApps && left.IsRuntimeCreatableBySettings == right.IsRuntimeCreatableBySettings && left.IsSystemManaged == right.IsSystemManaged && left.CanConfigure == right.CanConfigure; - } - inline bool operator!=(MidiServiceTransportPluginInfo const& left, MidiServiceTransportPluginInfo const& right) noexcept - { - return !(left == right); - } - struct MidiDiagnostics - { - MidiDiagnostics() = delete; - [[nodiscard]] static auto DiagnosticsLoopbackAEndpointDeviceId(); - [[nodiscard]] static auto DiagnosticsLoopbackBEndpointDeviceId(); - static auto PingService(uint8_t pingCount); - static auto PingService(uint8_t pingCount, uint32_t timeoutMilliseconds); - }; - struct MidiReporting - { - MidiReporting() = delete; - static auto GetInstalledTransportPlugins(); - static auto GetInstalledMessageProcessingPlugins(); - static auto GetActiveSessions(); - }; - struct WINRT_IMPL_EMPTY_BASES MidiServicePingResponseSummary : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary - { - MidiServicePingResponseSummary(std::nullptr_t) noexcept {} - MidiServicePingResponseSummary(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServicePingResponseSummary(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiServiceSessionInfo : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo - { - MidiServiceSessionInfo(std::nullptr_t) noexcept {} - MidiServiceSessionInfo(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Diagnostics::IMidiServiceSessionInfo(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h deleted file mode 100644 index cd7b9ca69..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h +++ /dev/null @@ -1,187 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct IMidiLoopbackEndpointCreationConfig; - struct IMidiLoopbackEndpointCreationConfigFactory; - struct IMidiLoopbackEndpointDeletionConfig; - struct IMidiLoopbackEndpointDeletionConfigFactory; - struct IMidiLoopbackEndpointManager; - struct IMidiLoopbackEndpointManagerStatics; - struct MidiLoopbackEndpointCreationConfig; - struct MidiLoopbackEndpointDeletionConfig; - struct MidiLoopbackEndpointManager; - struct MidiLoopbackEndpointCreationResult; - struct MidiLoopbackEndpointDefinition; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointDeletionConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointCreationResult"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.MidiLoopbackEndpointDefinition"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointCreationConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointDeletionConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointDeletionConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.IMidiLoopbackEndpointManagerStatics"; - template <> inline constexpr guid guid_v{ 0x53EF39E5,0x179D,0x57AF,{ 0x98,0x4D,0xC4,0x0D,0x5C,0x29,0x99,0xFA } }; // 53EF39E5-179D-57AF-984D-C40D5C2999FA - template <> inline constexpr guid guid_v{ 0x5FA6051E,0x83EE,0x5D4D,{ 0x92,0x1C,0x48,0xBA,0xD0,0xAA,0xDE,0x61 } }; // 5FA6051E-83EE-5D4D-921C-48BAD0AADE61 - template <> inline constexpr guid guid_v{ 0x717579E3,0xE3BE,0x5D34,{ 0x87,0x79,0xA1,0x56,0x31,0x1B,0x84,0x8D } }; // 717579E3-E3BE-5D34-8779-A156311B848D - template <> inline constexpr guid guid_v{ 0x2663EB28,0xD010,0x5610,{ 0x86,0xCA,0xBD,0x68,0x40,0xDE,0x78,0xE8 } }; // 2663EB28-D010-5610-86CA-BD6840DE78E8 - template <> inline constexpr guid guid_v{ 0x1DFB714C,0x710A,0x58D5,{ 0x9E,0xAD,0x49,0xAC,0x8C,0x3F,0x34,0x98 } }; // 1DFB714C-710A-58D5-9EAD-49AC8C3F3498 - template <> inline constexpr guid guid_v{ 0x2B788E99,0x2384,0x5518,{ 0x82,0x39,0x03,0x2F,0xBE,0x23,0x2D,0x2B } }; // 2B788E99-2384-5518-8239-032FBE232D2B - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall put_AssociationId(winrt::guid) noexcept = 0; - virtual int32_t __stdcall get_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition*) noexcept = 0; - virtual int32_t __stdcall put_EndpointDefinitionA(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition) noexcept = 0; - virtual int32_t __stdcall get_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition*) noexcept = 0; - virtual int32_t __stdcall put_EndpointDefinitionB(struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(winrt::guid, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall put_AssociationId(winrt::guid) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(winrt::guid, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsTransportAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall get_AbstractionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall CreateTransientLoopbackEndpoints(void*, struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult*) noexcept = 0; - virtual int32_t __stdcall RemoveTransientLoopbackEndpoints(void*, bool*) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig - { - [[nodiscard]] auto AssociationId() const; - auto AssociationId(winrt::guid const& value) const; - [[nodiscard]] auto EndpointDefinitionA() const; - auto EndpointDefinitionA(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const; - [[nodiscard]] auto EndpointDefinitionB() const; - auto EndpointDefinitionB(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory - { - auto CreateInstance(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointCreationConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig - { - [[nodiscard]] auto AssociationId() const; - auto AssociationId(winrt::guid const& value) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory - { - auto CreateInstance(winrt::guid const& associationId) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointDeletionConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManager - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManager; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics - { - [[nodiscard]] auto IsTransportAvailable() const; - [[nodiscard]] auto AbstractionId() const; - auto CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig) const; - auto RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_IMidiLoopbackEndpointManagerStatics; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult - { - bool Success; - winrt::guid AssociationId; - void* EndpointDeviceIdA; - void* EndpointDeviceIdB; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointCreationResult; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition - { - void* Name; - void* UniqueId; - void* Description; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_MidiLoopbackEndpointDefinition; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h deleted file mode 100644 index 5a5457ec9..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h +++ /dev/null @@ -1,52 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointCreationConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointCreationConfig(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointCreationConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointCreationConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointCreationConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointDeletionConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointDeletionConfig(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointDeletionConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointDeletionConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointDeletionConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointDeletionConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointManager : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointManager(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiLoopbackEndpointManagerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiLoopbackEndpointManagerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiLoopbackEndpointManagerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h deleted file mode 100644 index 021b1a4a5..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h +++ /dev/null @@ -1,64 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Loopback_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback -{ - struct MidiLoopbackEndpointCreationResult - { - bool Success; - winrt::guid AssociationId; - hstring EndpointDeviceIdA; - hstring EndpointDeviceIdB; - }; - inline bool operator==(MidiLoopbackEndpointCreationResult const& left, MidiLoopbackEndpointCreationResult const& right) noexcept - { - return left.Success == right.Success && left.AssociationId == right.AssociationId && left.EndpointDeviceIdA == right.EndpointDeviceIdA && left.EndpointDeviceIdB == right.EndpointDeviceIdB; - } - inline bool operator!=(MidiLoopbackEndpointCreationResult const& left, MidiLoopbackEndpointCreationResult const& right) noexcept - { - return !(left == right); - } - struct MidiLoopbackEndpointDefinition - { - hstring Name; - hstring UniqueId; - hstring Description; - }; - inline bool operator==(MidiLoopbackEndpointDefinition const& left, MidiLoopbackEndpointDefinition const& right) noexcept - { - return left.Name == right.Name && left.UniqueId == right.UniqueId && left.Description == right.Description; - } - inline bool operator!=(MidiLoopbackEndpointDefinition const& left, MidiLoopbackEndpointDefinition const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointCreationConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig, - impl::require - { - MidiLoopbackEndpointCreationConfig(std::nullptr_t) noexcept {} - MidiLoopbackEndpointCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointCreationConfig(ptr, take_ownership_from_abi) {} - MidiLoopbackEndpointCreationConfig(); - MidiLoopbackEndpointCreationConfig(winrt::guid const& associationId, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionA, winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDefinition const& endpointDefinitionB); - }; - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointDeletionConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig, - impl::require - { - MidiLoopbackEndpointDeletionConfig(std::nullptr_t) noexcept {} - MidiLoopbackEndpointDeletionConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointDeletionConfig(ptr, take_ownership_from_abi) {} - explicit MidiLoopbackEndpointDeletionConfig(winrt::guid const& associationId); - }; - struct WINRT_IMPL_EMPTY_BASES MidiLoopbackEndpointManager : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager - { - MidiLoopbackEndpointManager(std::nullptr_t) noexcept {} - MidiLoopbackEndpointManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::IMidiLoopbackEndpointManager(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto IsTransportAvailable(); - [[nodiscard]] static auto AbstractionId(); - static auto CreateTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointCreationConfig const& creationConfig); - static auto RemoveTransientLoopbackEndpoints(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Loopback::MidiLoopbackEndpointDeletionConfig const& deletionConfig); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h deleted file mode 100644 index 780a0d43a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h +++ /dev/null @@ -1,232 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct MidiDeclaredDeviceIdentity; - struct MidiDeclaredEndpointInfo; - struct MidiEndpointUserSuppliedInfo; - struct MidiFunctionBlock; - enum class MidiProtocol : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct EventRegistrationToken; - template struct WINRT_IMPL_EMPTY_BASES TypedEventHandler; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct IMidiStreamConfigRequestReceivedEventArgs; - struct IMidiVirtualDevice; - struct IMidiVirtualDeviceCreationConfig; - struct IMidiVirtualDeviceCreationConfigFactory; - struct IMidiVirtualDeviceManager; - struct IMidiVirtualDeviceManagerStatics; - struct MidiStreamConfigRequestReceivedEventArgs; - struct MidiVirtualDevice; - struct MidiVirtualDeviceCreationConfig; - struct MidiVirtualDeviceManager; - struct MidiStreamConfigRequestedSettings; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiStreamConfigRequestReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDevice"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDeviceCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiVirtualDeviceManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.MidiStreamConfigRequestedSettings"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiStreamConfigRequestReceivedEventArgs"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDevice"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceCreationConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceCreationConfigFactory"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceManager"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.IMidiVirtualDeviceManagerStatics"; - template <> inline constexpr guid guid_v{ 0x95E66544,0x7629,0x50AF,{ 0x9E,0xEE,0x0B,0x10,0x99,0x40,0x8E,0xD6 } }; // 95E66544-7629-50AF-9EEE-0B1099408ED6 - template <> inline constexpr guid guid_v{ 0x95BCDF56,0x519E,0x5E44,{ 0x98,0xF2,0x3B,0x0A,0xE6,0x1F,0x4B,0xC7 } }; // 95BCDF56-519E-5E44-98F2-3B0AE61F4BC7 - template <> inline constexpr guid guid_v{ 0xEF8BC038,0xAC5D,0x5B85,{ 0x88,0x8D,0x11,0xDF,0x01,0x91,0x0D,0xDC } }; // EF8BC038-AC5D-5B85-888D-11DF01910DDC - template <> inline constexpr guid guid_v{ 0x6B3BFE63,0x5C8F,0x57D8,{ 0x8C,0xBA,0x20,0x8C,0x93,0x8F,0x08,0x34 } }; // 6B3BFE63-5C8F-57D8-8CBA-208C938F0834 - template <> inline constexpr guid guid_v{ 0x4235E62B,0xDF65,0x5B6C,{ 0x93,0x0F,0x64,0x0D,0xA2,0xF5,0x64,0x9C } }; // 4235E62B-DF65-5B6C-930F-640DA2F5649C - template <> inline constexpr guid guid_v{ 0xA3C905C1,0x56B5,0x58CE,{ 0xAD,0x79,0x82,0x66,0xE5,0x0A,0x1C,0x0C } }; // A3C905C1-56B5-58CE-AD79-8266E50A1C0C - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig; }; - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Timestamp(uint64_t*) noexcept = 0; - virtual int32_t __stdcall get_PreferredMidiProtocol(int32_t*) noexcept = 0; - virtual int32_t __stdcall get_RequestEndpointTransmitJitterReductionTimestamps(bool*) noexcept = 0; - virtual int32_t __stdcall get_RequestEndpointReceiveJitterReductionTimestamps(bool*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_DeviceEndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_FunctionBlocks(void**) noexcept = 0; - virtual int32_t __stdcall UpdateFunctionBlock(void*, bool*) noexcept = 0; - virtual int32_t __stdcall UpdateEndpointName(void*, bool*) noexcept = 0; - virtual int32_t __stdcall get_SuppressHandledMessages(bool*) noexcept = 0; - virtual int32_t __stdcall put_SuppressHandledMessages(bool) noexcept = 0; - virtual int32_t __stdcall add_StreamConfigRequestReceived(void*, winrt::event_token*) noexcept = 0; - virtual int32_t __stdcall remove_StreamConfigRequestReceived(winrt::event_token) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_Name(void**) noexcept = 0; - virtual int32_t __stdcall put_Name(void*) noexcept = 0; - virtual int32_t __stdcall get_Description(void**) noexcept = 0; - virtual int32_t __stdcall put_Description(void*) noexcept = 0; - virtual int32_t __stdcall get_Manufacturer(void**) noexcept = 0; - virtual int32_t __stdcall put_Manufacturer(void*) noexcept = 0; - virtual int32_t __stdcall get_AssociationId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity*) noexcept = 0; - virtual int32_t __stdcall put_DeclaredDeviceIdentity(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity) noexcept = 0; - virtual int32_t __stdcall get_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo*) noexcept = 0; - virtual int32_t __stdcall put_DeclaredEndpointInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo) noexcept = 0; - virtual int32_t __stdcall get_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo*) noexcept = 0; - virtual int32_t __stdcall put_UserSuppliedInfo(struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo) noexcept = 0; - virtual int32_t __stdcall get_FunctionBlocks(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall CreateInstance(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance2(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity, void**) noexcept = 0; - virtual int32_t __stdcall CreateInstance3(void*, void*, void*, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredEndpointInfo, struct struct_Microsoft_Windows_Devices_Midi2_MidiDeclaredDeviceIdentity, struct struct_Microsoft_Windows_Devices_Midi2_MidiEndpointUserSuppliedInfo, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_IsTransportAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall get_AbstractionId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall CreateVirtualDevice(void*, void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs - { - [[nodiscard]] auto Timestamp() const; - [[nodiscard]] auto PreferredMidiProtocol() const; - [[nodiscard]] auto RequestEndpointTransmitJitterReductionTimestamps() const; - [[nodiscard]] auto RequestEndpointReceiveJitterReductionTimestamps() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiStreamConfigRequestReceivedEventArgs; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice - { - [[nodiscard]] auto DeviceEndpointDeviceId() const; - [[nodiscard]] auto AssociationId() const; - [[nodiscard]] auto FunctionBlocks() const; - auto UpdateFunctionBlock(winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlock const& block) const; - auto UpdateEndpointName(param::hstring const& name) const; - [[nodiscard]] auto SuppressHandledMessages() const; - auto SuppressHandledMessages(bool value) const; - auto StreamConfigRequestReceived(winrt::Windows::Foundation::TypedEventHandler const& handler) const; - using StreamConfigRequestReceived_revoker = impl::event_revoker::remove_StreamConfigRequestReceived>; - [[nodiscard]] auto StreamConfigRequestReceived(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; - auto StreamConfigRequestReceived(winrt::event_token const& token) const noexcept; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDevice; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig - { - [[nodiscard]] auto Name() const; - auto Name(param::hstring const& value) const; - [[nodiscard]] auto Description() const; - auto Description(param::hstring const& value) const; - [[nodiscard]] auto Manufacturer() const; - auto Manufacturer(param::hstring const& value) const; - [[nodiscard]] auto AssociationId() const; - [[nodiscard]] auto DeclaredDeviceIdentity() const; - auto DeclaredDeviceIdentity(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& value) const; - [[nodiscard]] auto DeclaredEndpointInfo() const; - auto DeclaredEndpointInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& value) const; - [[nodiscard]] auto UserSuppliedInfo() const; - auto UserSuppliedInfo(winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& value) const; - [[nodiscard]] auto FunctionBlocks() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory - { - auto CreateInstance(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo) const; - auto CreateInstance2(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity) const; - auto CreateInstance3(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceCreationConfigFactory; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManager - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManager; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics - { - [[nodiscard]] auto IsTransportAvailable() const; - [[nodiscard]] auto AbstractionId() const; - auto CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_IMidiVirtualDeviceManagerStatics; - }; - struct struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiStreamConfigRequestedSettings - { - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - int32_t PreferredMidiProtocol; - bool RequestEndpointTransmitJitterReductionTimestamps; - bool RequestEndpointReceiveJitterReductionTimestamps; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_MidiStreamConfigRequestedSettings; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h deleted file mode 100644 index 83dc91a3a..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h +++ /dev/null @@ -1,52 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct WINRT_IMPL_EMPTY_BASES IMidiStreamConfigRequestReceivedEventArgs : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiStreamConfigRequestReceivedEventArgs(std::nullptr_t = nullptr) noexcept {} - IMidiStreamConfigRequestReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDevice : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDevice(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDevice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceCreationConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceCreationConfig(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceCreationConfigFactory : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceCreationConfigFactory(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceCreationConfigFactory(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceManager : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceManager(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiVirtualDeviceManagerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiVirtualDeviceManagerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiVirtualDeviceManagerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h deleted file mode 100644 index 7838b2613..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h +++ /dev/null @@ -1,56 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Endpoints_Virtual_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual -{ - struct MidiStreamConfigRequestedSettings - { - uint8_t SpecificationVersionMajor; - uint8_t SpecificationVersionMinor; - winrt::Microsoft::Windows::Devices::Midi2::MidiProtocol PreferredMidiProtocol; - bool RequestEndpointTransmitJitterReductionTimestamps; - bool RequestEndpointReceiveJitterReductionTimestamps; - }; - inline bool operator==(MidiStreamConfigRequestedSettings const& left, MidiStreamConfigRequestedSettings const& right) noexcept - { - return left.SpecificationVersionMajor == right.SpecificationVersionMajor && left.SpecificationVersionMinor == right.SpecificationVersionMinor && left.PreferredMidiProtocol == right.PreferredMidiProtocol && left.RequestEndpointTransmitJitterReductionTimestamps == right.RequestEndpointTransmitJitterReductionTimestamps && left.RequestEndpointReceiveJitterReductionTimestamps == right.RequestEndpointReceiveJitterReductionTimestamps; - } - inline bool operator!=(MidiStreamConfigRequestedSettings const& left, MidiStreamConfigRequestedSettings const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiStreamConfigRequestReceivedEventArgs : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs - { - MidiStreamConfigRequestReceivedEventArgs(std::nullptr_t) noexcept {} - MidiStreamConfigRequestReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiStreamConfigRequestReceivedEventArgs(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDevice : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice, - impl::require - { - MidiVirtualDevice(std::nullptr_t) noexcept {} - MidiVirtualDevice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDevice(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDeviceCreationConfig : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig, - impl::require - { - MidiVirtualDeviceCreationConfig(std::nullptr_t) noexcept {} - MidiVirtualDeviceCreationConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceCreationConfig(ptr, take_ownership_from_abi) {} - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo); - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity); - MidiVirtualDeviceCreationConfig(param::hstring const& name, param::hstring const& description, param::hstring const& manufacturer, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredEndpointInfo const& declaredEndpointInfo, winrt::Microsoft::Windows::Devices::Midi2::MidiDeclaredDeviceIdentity const& declaredDeviceIdentity, winrt::Microsoft::Windows::Devices::Midi2::MidiEndpointUserSuppliedInfo const& userSuppliedInfo); - }; - struct WINRT_IMPL_EMPTY_BASES MidiVirtualDeviceManager : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager - { - MidiVirtualDeviceManager(std::nullptr_t) noexcept {} - MidiVirtualDeviceManager(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::IMidiVirtualDeviceManager(ptr, take_ownership_from_abi) {} - [[nodiscard]] static auto IsTransportAvailable(); - [[nodiscard]] static auto AbstractionId(); - static auto CreateVirtualDevice(winrt::Microsoft::Windows::Devices::Midi2::Endpoints::Virtual::MidiVirtualDeviceCreationConfig const& creationConfig); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h deleted file mode 100644 index 304eccc15..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h +++ /dev/null @@ -1,70 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_0_H -WINRT_EXPORT namespace winrt::Windows::Foundation -{ - struct Uri; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct IMidiServicesInitializer; - struct IMidiServicesInitializerStatics; - struct MidiServicesInitializer; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.MidiServicesInitializer"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.IMidiServicesInitializer"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Initialization.IMidiServicesInitializerStatics"; - template <> inline constexpr guid guid_v{ 0x3A60A020,0x720A,0x563F,{ 0x90,0x9C,0x9C,0x3C,0xF4,0x77,0x21,0xCE } }; // 3A60A020-720A-563F-909C-9C3CF47721CE - template <> inline constexpr guid guid_v{ 0x56FC8938,0x93CD,0x51B3,{ 0x9E,0x6E,0x5B,0xB3,0xDA,0xBD,0x19,0x0E } }; // 56FC8938-93CD-51B3-9E6E-5BB3DABD190E - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall IsOperatingSystemSupported(bool*) noexcept = 0; - virtual int32_t __stdcall EnsureServiceAvailable(bool*) noexcept = 0; - virtual int32_t __stdcall InitializeSdkRuntime(bool*) noexcept = 0; - virtual int32_t __stdcall IsCompatibleDesktopAppSdkRuntimeInstalled(bool*) noexcept = 0; - virtual int32_t __stdcall GetLatestRuntimeReleaseInstallerUri(void**) noexcept = 0; - virtual int32_t __stdcall GetLatestSettingsAppReleaseInstallerUri(void**) noexcept = 0; - virtual int32_t __stdcall GetLatestConsoleAppReleaseInstallerUri(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializer - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializer; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics - { - auto IsOperatingSystemSupported() const; - auto EnsureServiceAvailable() const; - auto InitializeSdkRuntime() const; - auto IsCompatibleDesktopAppSdkRuntimeInstalled() const; - auto GetLatestRuntimeReleaseInstallerUri() const; - auto GetLatestSettingsAppReleaseInstallerUri() const; - auto GetLatestConsoleAppReleaseInstallerUri() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Initialization_IMidiServicesInitializerStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h deleted file mode 100644 index 0fe7114e6..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h +++ /dev/null @@ -1,24 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct WINRT_IMPL_EMPTY_BASES IMidiServicesInitializer : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicesInitializer(std::nullptr_t = nullptr) noexcept {} - IMidiServicesInitializer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServicesInitializerStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServicesInitializerStatics(std::nullptr_t = nullptr) noexcept {} - IMidiServicesInitializerStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h deleted file mode 100644 index 76c852b5f..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h +++ /dev/null @@ -1,22 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Initialization_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Initialization_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Initialization -{ - struct WINRT_IMPL_EMPTY_BASES MidiServicesInitializer : winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer - { - MidiServicesInitializer(std::nullptr_t) noexcept {} - MidiServicesInitializer(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::Initialization::IMidiServicesInitializer(ptr, take_ownership_from_abi) {} - static auto IsOperatingSystemSupported(); - static auto EnsureServiceAvailable(); - static auto InitializeSdkRuntime(); - static auto IsCompatibleDesktopAppSdkRuntimeInstalled(); - static auto GetLatestRuntimeReleaseInstallerUri(); - static auto GetLatestSettingsAppReleaseInstallerUri(); - static auto GetLatestConsoleAppReleaseInstallerUri(); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h deleted file mode 100644 index 70023d180..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h +++ /dev/null @@ -1,331 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2 -{ - struct IMidiUniversalPacket; - struct MidiChannel; - enum class MidiFunctionBlockDirection : int32_t; - enum class MidiFunctionBlockRepresentsMidi10Connection : int32_t; - enum class MidiFunctionBlockUIHint : int32_t; - struct MidiGroup; - struct MidiMessage128; - struct MidiMessage32; - struct MidiMessage64; - enum class MidiMessageType : int32_t; - enum class MidiPacketType : int32_t; -} -WINRT_EXPORT namespace winrt::Windows::Devices::Midi -{ - struct MidiActiveSensingMessage; - struct MidiChannelPressureMessage; - struct MidiContinueMessage; - struct MidiNoteOffMessage; - struct MidiNoteOnMessage; - struct MidiPitchBendChangeMessage; - struct MidiPolyphonicKeyPressureMessage; - struct MidiProgramChangeMessage; - struct MidiSongPositionPointerMessage; - struct MidiSongSelectMessage; - struct MidiStartMessage; - struct MidiStopMessage; - struct MidiSystemResetMessage; - struct MidiTimeCodeMessage; - struct MidiTimingClockMessage; - struct MidiTuneRequestMessage; -} -WINRT_EXPORT namespace winrt::Windows::Foundation::Collections -{ - template struct WINRT_IMPL_EMPTY_BASES IIterable; -} -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - enum class Midi1ChannelVoiceMessageStatus : int32_t - { - NoteOff = 8, - NoteOn = 9, - PolyPressure = 10, - ControlChange = 11, - ProgramChange = 12, - ChannelPressure = 13, - PitchBend = 14, - }; - enum class Midi2ChannelVoiceMessageStatus : int32_t - { - RegisteredPerNoteController = 0, - AssignablePerNoteController = 1, - RegisteredController = 2, - AssignableController = 3, - RelativeRegisteredController = 4, - RelativeAssignableController = 5, - PerNotePitchBend = 6, - NoteOff = 8, - NoteOn = 9, - PolyPressure = 10, - ControlChange = 11, - ProgramChange = 12, - ChannelPressure = 13, - PitchBend = 14, - PerNoteManagement = 15, - }; - enum class MidiEndpointDiscoveryRequests : uint32_t - { - None = 0, - RequestEndpointInfo = 0x1, - RequestDeviceIdentity = 0x2, - RequestEndpointName = 0x4, - RequestProductInstanceId = 0x8, - RequestStreamConfiguration = 0x10, - }; - enum class MidiFunctionBlockDiscoveryRequests : uint32_t - { - None = 0, - RequestFunctionBlockInfo = 0x1, - RequestFunctionBlockName = 0x2, - }; - enum class MidiSystemExclusive8Status : int32_t - { - CompleteMessageInSingleMessagePacket = 0, - StartMessagePacket = 1, - ContinueMessagePacket = 2, - EndMessagePacket = 3, - }; - struct IMidiMessageBuilderStatics; - struct IMidiMessageConverterStatics; - struct IMidiMessageHelperStatics; - struct IMidiStreamMessageBuilderStatics; - struct MidiMessageBuilder; - struct MidiMessageConverter; - struct MidiMessageHelper; - struct MidiStreamMessageBuilder; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = enum_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageBuilder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageConverter"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiMessageHelper"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiStreamMessageBuilder"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.Midi1ChannelVoiceMessageStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.Midi2ChannelVoiceMessageStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiEndpointDiscoveryRequests"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiFunctionBlockDiscoveryRequests"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.MidiSystemExclusive8Status"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageBuilderStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageConverterStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiMessageHelperStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.Messages.IMidiStreamMessageBuilderStatics"; - template <> inline constexpr guid guid_v{ 0x090C2C0B,0x95E4,0x5FF3,{ 0xA4,0xA9,0x2C,0x23,0x86,0x10,0x31,0x36 } }; // 090C2C0B-95E4-5FF3-A4A9-2C2386103136 - template <> inline constexpr guid guid_v{ 0x30BE1DB6,0x9E9E,0x5EAC,{ 0xB1,0xE6,0x6D,0x4F,0x11,0xFA,0x1E,0xBF } }; // 30BE1DB6-9E9E-5EAC-B1E6-6D4F11FA1EBF - template <> inline constexpr guid guid_v{ 0xCC84C703,0xE523,0x5597,{ 0xA3,0xD6,0xE8,0xAD,0x68,0x8A,0x96,0xCC } }; // CC84C703-E523-5597-A3D6-E8AD688A96CC - template <> inline constexpr guid guid_v{ 0x03E16477,0x3857,0x5ED3,{ 0x83,0x81,0x59,0xC4,0x0C,0xE4,0xA3,0x3D } }; // 03E16477-3857-5ED3-8381-59C40CE4A33D - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall BuildUtilityMessage(uint64_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemMessage(uint64_t, void*, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMidi1ChannelVoiceMessage(uint64_t, void*, int32_t, void*, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemExclusive7Message(uint64_t, void*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMidi2ChannelVoiceMessage(uint64_t, void*, int32_t, void*, uint16_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildSystemExclusive8Message(uint64_t, void*, int32_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMixedDataSetChunkHeaderMessage(uint64_t, void*, uint8_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildMixedDataSetChunkDataMessage(uint64_t, void*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFlexDataMessage(uint64_t, void*, uint8_t, uint8_t, void*, uint8_t, uint8_t, uint32_t, uint32_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamMessage(uint64_t, uint8_t, uint16_t, uint16_t, uint32_t, uint32_t, uint32_t, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall ConvertMidi1Message(uint64_t, void*, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1Message2(uint64_t, void*, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1Message3(uint64_t, void*, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ChannelPressureMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1NoteOffMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1NoteOnMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1PitchBendChangeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1PolyphonicKeyPressureMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ProgramChangeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TimeCodeMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SongPositionPointerMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SongSelectMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TuneRequestMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1TimingClockMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1StartMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ContinueMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1StopMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1ActiveSensingMessage(uint64_t, void*, void*, void**) noexcept = 0; - virtual int32_t __stdcall ConvertMidi1SystemResetMessage(uint64_t, void*, void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall ValidateMessage32MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage64MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage96MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ValidateMessage128MessageType(uint32_t, bool*) noexcept = 0; - virtual int32_t __stdcall GetMessageTypeFromMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetPacketTypeFromMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall MessageTypeHasGroupField(int32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ReplaceGroupInMessageFirstWord(uint32_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetGroupFromMessageFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetStatusFromUtilityMessage(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromMidi1ChannelVoiceMessage(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t, int32_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusBankFromFlexDataMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromFlexDataMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromSystemCommonMessage(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromDataMessage64FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetNumberOfBytesFromDataMessage64FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromDataMessage128FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetNumberOfBytesFromDataMessage128FirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall MessageTypeHasChannelField(int32_t, bool*) noexcept = 0; - virtual int32_t __stdcall ReplaceChannelInMessageFirstWord(uint32_t, void*, uint32_t*) noexcept = 0; - virtual int32_t __stdcall GetChannelFromMessageFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetFormFromStreamMessageFirstWord(uint32_t, uint8_t*) noexcept = 0; - virtual int32_t __stdcall GetStatusFromStreamMessageFirstWord(uint32_t, uint16_t*) noexcept = 0; - virtual int32_t __stdcall GetMessageDisplayNameFromFirstWord(uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall GetPacketListFromWordList(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall GetWordListFromPacketList(void*, void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall BuildEndpointDiscoveryMessage(uint64_t, uint8_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildEndpointInfoNotificationMessage(uint64_t, uint8_t, uint8_t, bool, uint8_t, bool, bool, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildDeviceIdentityNotificationMessage(uint64_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildEndpointNameNotificationMessages(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall BuildProductInstanceIdNotificationMessages(uint64_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseEndpointNameNotificationMessages(void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseProductInstanceIdNotificationMessages(void*, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamConfigurationRequestMessage(uint64_t, uint8_t, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildStreamConfigurationNotificationMessage(uint64_t, uint8_t, bool, bool, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockDiscoveryMessage(uint64_t, uint8_t, uint32_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockInfoNotificationMessage(uint64_t, bool, uint8_t, int32_t, int32_t, int32_t, uint8_t, uint8_t, uint8_t, uint8_t, void**) noexcept = 0; - virtual int32_t __stdcall BuildFunctionBlockNameNotificationMessages(uint64_t, uint8_t, void*, void**) noexcept = 0; - virtual int32_t __stdcall ParseFunctionBlockNameNotificationMessages(void*, void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics - { - auto BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved) const; - auto BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3) const; - auto BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4) const; - auto BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5) const; - auto BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data) const; - auto BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12) const; - auto BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2) const; - auto BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13) const; - auto BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const; - auto BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageBuilderStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics - { - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte) const; - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1) const; - auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2) const; - auto ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage) const; - auto ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage) const; - auto ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage) const; - auto ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage) const; - auto ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage) const; - auto ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage) const; - auto ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage) const; - auto ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage) const; - auto ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage) const; - auto ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage) const; - auto ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage) const; - auto ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage) const; - auto ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage) const; - auto ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage) const; - auto ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage) const; - auto ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageConverterStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics - { - auto ValidateMessage32MessageType(uint32_t word0) const; - auto ValidateMessage64MessageType(uint32_t word0) const; - auto ValidateMessage96MessageType(uint32_t word0) const; - auto ValidateMessage128MessageType(uint32_t word0) const; - auto GetMessageTypeFromMessageFirstWord(uint32_t word0) const; - auto GetPacketTypeFromMessageFirstWord(uint32_t word0) const; - auto MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const; - auto ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup) const; - auto GetGroupFromMessageFirstWord(uint32_t word0) const; - auto GetStatusFromUtilityMessage(uint32_t word0) const; - auto GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0) const; - auto GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0) const; - auto GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0) const; - auto GetStatusFromFlexDataMessageFirstWord(uint32_t word0) const; - auto GetStatusFromSystemCommonMessage(uint32_t word0) const; - auto GetStatusFromDataMessage64FirstWord(uint32_t word0) const; - auto GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0) const; - auto GetStatusFromDataMessage128FirstWord(uint32_t word0) const; - auto GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0) const; - auto MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType) const; - auto ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel) const; - auto GetChannelFromMessageFirstWord(uint32_t word0) const; - auto GetFormFromStreamMessageFirstWord(uint32_t word0) const; - auto GetStatusFromStreamMessageFirstWord(uint32_t word0) const; - auto GetMessageDisplayNameFromFirstWord(uint32_t word0) const; - auto GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words) const; - auto GetWordListFromPacketList(param::iterable const& words) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiMessageHelperStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics - { - auto BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request) const; - auto BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps) const; - auto BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4) const; - auto BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name) const; - auto BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId) const; - auto ParseEndpointNameNotificationMessages(param::iterable const& messages) const; - auto ParseProductInstanceIdNotificationMessages(param::iterable const& messages) const; - auto BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps) const; - auto BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps) const; - auto BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags) const; - auto BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams) const; - auto BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name) const; - auto ParseFunctionBlockNameNotificationMessages(param::iterable const& messages) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_Messages_IMidiStreamMessageBuilderStatics; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h deleted file mode 100644 index e7fce06a8..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - struct WINRT_IMPL_EMPTY_BASES IMidiMessageBuilderStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageBuilderStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageBuilderStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageConverterStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageConverterStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageConverterStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiMessageHelperStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiMessageHelperStatics(std::nullptr_t = nullptr) noexcept {} - IMidiMessageHelperStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiStreamMessageBuilderStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiStreamMessageBuilderStatics(std::nullptr_t = nullptr) noexcept {} - IMidiStreamMessageBuilderStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h deleted file mode 100644 index dd17a6032..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h +++ /dev/null @@ -1,98 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_Messages_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_Messages_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.1.h" -#include "winrt/impl/Windows.Devices.Midi.1.h" -#include "winrt/impl/Windows.Foundation.Collections.1.h" -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::Messages -{ - struct MidiMessageBuilder - { - MidiMessageBuilder() = delete; - static auto BuildUtilityMessage(uint64_t timestamp, uint8_t status, uint32_t dataOrReserved); - static auto BuildSystemMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t midi1Byte2, uint8_t midi1Byte3); - static auto BuildMidi1ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi1ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t byte3, uint8_t byte4); - static auto BuildSystemExclusive7Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t status, uint8_t numberOfBytes, uint8_t dataByte0, uint8_t dataByte1, uint8_t dataByte2, uint8_t dataByte3, uint8_t dataByte4, uint8_t dataByte5); - static auto BuildMidi2ChannelVoiceMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::Midi2ChannelVoiceMessageStatus const& status, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint16_t index, uint32_t data); - static auto BuildSystemExclusive8Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiSystemExclusive8Status const& status, uint8_t numberOfValidDataBytesThisMessage, uint8_t streamId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12); - static auto BuildMixedDataSetChunkHeaderMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint16_t numberValidDataBytesInThisChunk, uint16_t numberChunksInMixedDataSet, uint16_t numberOfThisChunk, uint16_t manufacturerId, uint16_t deviceId, uint16_t subId1, uint16_t subId2); - static auto BuildMixedDataSetChunkDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t mdsId, uint8_t dataByte00, uint8_t dataByte01, uint8_t dataByte02, uint8_t dataByte03, uint8_t dataByte04, uint8_t dataByte05, uint8_t dataByte06, uint8_t dataByte07, uint8_t dataByte08, uint8_t dataByte09, uint8_t dataByte10, uint8_t dataByte11, uint8_t dataByte12, uint8_t dataByte13); - static auto BuildFlexDataMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t form, uint8_t address, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& channel, uint8_t statusBank, uint8_t status, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data); - static auto BuildStreamMessage(uint64_t timestamp, uint8_t form, uint16_t status, uint16_t word0RemainingData, uint32_t word1Data, uint32_t word2Data, uint32_t word3Data); - }; - struct MidiMessageConverter - { - MidiMessageConverter() = delete; - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte); - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1); - static auto ConvertMidi1Message(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, uint8_t statusByte, uint8_t dataByte1, uint8_t dataByte2); - static auto ConvertMidi1ChannelPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiChannelPressureMessage const& originalMessage); - static auto ConvertMidi1NoteOffMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOffMessage const& originalMessage); - static auto ConvertMidi1NoteOnMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiNoteOnMessage const& originalMessage); - static auto ConvertMidi1PitchBendChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPitchBendChangeMessage const& originalMessage); - static auto ConvertMidi1PolyphonicKeyPressureMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiPolyphonicKeyPressureMessage const& originalMessage); - static auto ConvertMidi1ProgramChangeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiProgramChangeMessage const& originalMessage); - static auto ConvertMidi1TimeCodeMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimeCodeMessage const& originalMessage); - static auto ConvertMidi1SongPositionPointerMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongPositionPointerMessage const& originalMessage); - static auto ConvertMidi1SongSelectMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSongSelectMessage const& originalMessage); - static auto ConvertMidi1TuneRequestMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTuneRequestMessage const& originalMessage); - static auto ConvertMidi1TimingClockMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiTimingClockMessage const& originalMessage); - static auto ConvertMidi1StartMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStartMessage const& originalMessage); - static auto ConvertMidi1ContinueMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiContinueMessage const& originalMessage); - static auto ConvertMidi1StopMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiStopMessage const& originalMessage); - static auto ConvertMidi1ActiveSensingMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiActiveSensingMessage const& originalMessage); - static auto ConvertMidi1SystemResetMessage(uint64_t timestamp, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& group, winrt::Windows::Devices::Midi::MidiSystemResetMessage const& originalMessage); - }; - struct MidiMessageHelper - { - MidiMessageHelper() = delete; - static auto ValidateMessage32MessageType(uint32_t word0); - static auto ValidateMessage64MessageType(uint32_t word0); - static auto ValidateMessage96MessageType(uint32_t word0); - static auto ValidateMessage128MessageType(uint32_t word0); - static auto GetMessageTypeFromMessageFirstWord(uint32_t word0); - static auto GetPacketTypeFromMessageFirstWord(uint32_t word0); - static auto MessageTypeHasGroupField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType); - static auto ReplaceGroupInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiGroup const& newGroup); - static auto GetGroupFromMessageFirstWord(uint32_t word0); - static auto GetStatusFromUtilityMessage(uint32_t word0); - static auto GetStatusFromMidi1ChannelVoiceMessage(uint32_t word0); - static auto GetStatusFromMidi2ChannelVoiceMessageFirstWord(uint32_t word0); - static auto GetStatusBankFromFlexDataMessageFirstWord(uint32_t word0); - static auto GetStatusFromFlexDataMessageFirstWord(uint32_t word0); - static auto GetStatusFromSystemCommonMessage(uint32_t word0); - static auto GetStatusFromDataMessage64FirstWord(uint32_t word0); - static auto GetNumberOfBytesFromDataMessage64FirstWord(uint32_t word0); - static auto GetStatusFromDataMessage128FirstWord(uint32_t word0); - static auto GetNumberOfBytesFromDataMessage128FirstWord(uint32_t word0); - static auto MessageTypeHasChannelField(winrt::Microsoft::Windows::Devices::Midi2::MidiMessageType const& messageType); - static auto ReplaceChannelInMessageFirstWord(uint32_t word0, winrt::Microsoft::Windows::Devices::Midi2::MidiChannel const& newChannel); - static auto GetChannelFromMessageFirstWord(uint32_t word0); - static auto GetFormFromStreamMessageFirstWord(uint32_t word0); - static auto GetStatusFromStreamMessageFirstWord(uint32_t word0); - static auto GetMessageDisplayNameFromFirstWord(uint32_t word0); - static auto GetPacketListFromWordList(uint64_t timestamp, param::iterable const& words); - static auto GetWordListFromPacketList(param::iterable const& words); - }; - struct MidiStreamMessageBuilder - { - MidiStreamMessageBuilder() = delete; - static auto BuildEndpointDiscoveryMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiEndpointDiscoveryRequests const& request); - static auto BuildEndpointInfoNotificationMessage(uint64_t timestamp, uint8_t umpVersionMajor, uint8_t umpVersionMinor, bool hasStaticFunctionBlocks, uint8_t numberOfFunctionBlocks, bool supportsMidi20Protocol, bool supportsMidi10Protocol, bool supportsReceivingJitterReductionTimestamps, bool supportsSendingJitterReductionTimestamps); - static auto BuildDeviceIdentityNotificationMessage(uint64_t timestamp, uint8_t deviceManufacturerSysExIdByte1, uint8_t deviceManufacturerSysExIdByte2, uint8_t deviceManufacturerSysExIdByte3, uint8_t deviceFamilyLsb, uint8_t deviceFamilyMsb, uint8_t deviceFamilyModelNumberLsb, uint8_t deviceFamilyModelNumberMsb, uint8_t softwareRevisionLevelByte1, uint8_t softwareRevisionLevelByte2, uint8_t softwareRevisionLevelByte3, uint8_t softwareRevisionLevelByte4); - static auto BuildEndpointNameNotificationMessages(uint64_t timestamp, param::hstring const& name); - static auto BuildProductInstanceIdNotificationMessages(uint64_t timestamp, param::hstring const& productInstanceId); - static auto ParseEndpointNameNotificationMessages(param::iterable const& messages); - static auto ParseProductInstanceIdNotificationMessages(param::iterable const& messages); - static auto BuildStreamConfigurationRequestMessage(uint64_t timestamp, uint8_t protocol, bool expectToReceiveJRTimestamps, bool requestToSendJRTimestamps); - static auto BuildStreamConfigurationNotificationMessage(uint64_t timestamp, uint8_t protocol, bool confirmationWillReceiveJRTimestamps, bool confirmationSendJRTimestamps); - static auto BuildFunctionBlockDiscoveryMessage(uint64_t timestamp, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::Messages::MidiFunctionBlockDiscoveryRequests const& requestFlags); - static auto BuildFunctionBlockInfoNotificationMessage(uint64_t timestamp, bool active, uint8_t functionBlockNumber, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockUIHint const& uiHint, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockRepresentsMidi10Connection const& midi10, winrt::Microsoft::Windows::Devices::Midi2::MidiFunctionBlockDirection const& direction, uint8_t firstGroup, uint8_t numberOfGroups, uint8_t midiCIVersionFormat, uint8_t maxNumberSysEx8Streams); - static auto BuildFunctionBlockNameNotificationMessages(uint64_t timestamp, uint8_t functionBlockNumber, param::hstring const& name); - static auto ParseFunctionBlockNameNotificationMessages(param::iterable const& messages); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h deleted file mode 100644 index 5cd89b2ef..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h +++ /dev/null @@ -1,131 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_0_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_0_H -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - enum class MidiServiceConfigResponseStatus : int32_t - { - Success = 0, - ErrorTargetNotFound = 404, - ErrorConfigJsonNullOrEmpty = 600, - ErrorProcessingConfigJson = 601, - ErrorProcessingResponseJson = 605, - ErrorNotImplemented = 2600, - }; - struct IMidiServiceConfig; - struct IMidiServiceConfigStatics; - struct IMidiServiceMessageProcessingPluginConfig; - struct IMidiServiceTransportPluginConfig; - struct MidiServiceConfig; - struct MidiServiceConfigResponse; -} -namespace winrt::impl -{ - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = interface_category; }; - template <> struct category{ using type = class_category; }; - template <> struct category{ using type = enum_category; }; - template <> struct category{ using type = struct_category; }; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfigResponseStatus"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.MidiServiceConfigResponse"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceConfigStatics"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceMessageProcessingPluginConfig"; - template <> inline constexpr auto& name_v = L"Microsoft.Windows.Devices.Midi2.ServiceConfig.IMidiServiceTransportPluginConfig"; - template <> inline constexpr guid guid_v{ 0x0F1E4863,0xC76E,0x501F,{ 0x97,0x6A,0xDB,0x48,0xFC,0x0C,0x5B,0xB7 } }; // 0F1E4863-C76E-501F-976A-DB48FC0C5BB7 - template <> inline constexpr guid guid_v{ 0x20C5F99A,0x741B,0x513B,{ 0x86,0x55,0xAC,0x13,0x2F,0x05,0x16,0x6B } }; // 20C5F99A-741B-513B-8655-AC132F05166B - template <> inline constexpr guid guid_v{ 0x2EBCFA13,0x585A,0x4376,{ 0x8F,0xE1,0x63,0x57,0x84,0xFA,0x7F,0xD4 } }; // 2EBCFA13-585A-4376-8FE1-635784FA7FD4 - template <> inline constexpr guid guid_v{ 0xB2417DDE,0xEF35,0x499B,{ 0xA8,0x9B,0x0A,0x4C,0x32,0xCC,0x69,0x9A } }; // B2417DDE-EF35-499B-A89B-0A4C32CC699A - template <> struct default_interface{ using type = winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig; }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall UpdateTransportPluginConfig(void*, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse*) noexcept = 0; - virtual int32_t __stdcall UpdateProcessingPluginConfig(void*, struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse*) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_EndpointDeviceId(void**) noexcept = 0; - virtual int32_t __stdcall get_MessageProcessingPluginId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_PluginInstanceId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_IsFromCurrentConfigFile(bool*) noexcept = 0; - virtual int32_t __stdcall GetConfigJson(void**) noexcept = 0; - }; - }; - template <> struct abi - { - struct WINRT_IMPL_NOVTABLE type : inspectable_abi - { - virtual int32_t __stdcall get_TransportId(winrt::guid*) noexcept = 0; - virtual int32_t __stdcall get_IsFromCurrentConfigFile(bool*) noexcept = 0; - virtual int32_t __stdcall GetConfigJson(void**) noexcept = 0; - }; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfig - { - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics - { - auto UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate) const; - auto UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate) const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceConfigStatics; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig - { - [[nodiscard]] auto EndpointDeviceId() const; - [[nodiscard]] auto MessageProcessingPluginId() const; - [[nodiscard]] auto PluginInstanceId() const; - [[nodiscard]] auto IsFromCurrentConfigFile() const; - auto GetConfigJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceMessageProcessingPluginConfig; - }; - template - struct consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig - { - [[nodiscard]] auto TransportId() const; - [[nodiscard]] auto IsFromCurrentConfigFile() const; - auto GetConfigJson() const; - }; - template <> struct consume - { - template using type = consume_Microsoft_Windows_Devices_Midi2_ServiceConfig_IMidiServiceTransportPluginConfig; - }; - struct struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse - { - int32_t Status; - void* ResponseJson; - }; - template <> struct abi - { - using type = struct_Microsoft_Windows_Devices_Midi2_ServiceConfig_MidiServiceConfigResponse; - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h deleted file mode 100644 index 6cc54f32d..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h +++ /dev/null @@ -1,38 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_1_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_1_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - struct WINRT_IMPL_EMPTY_BASES IMidiServiceConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceConfigStatics : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceConfigStatics(std::nullptr_t = nullptr) noexcept {} - IMidiServiceConfigStatics(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceMessageProcessingPluginConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceMessageProcessingPluginConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceMessageProcessingPluginConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; - struct WINRT_IMPL_EMPTY_BASES IMidiServiceTransportPluginConfig : - winrt::Windows::Foundation::IInspectable, - impl::consume_t - { - IMidiServiceTransportPluginConfig(std::nullptr_t = nullptr) noexcept {} - IMidiServiceTransportPluginConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IInspectable(ptr, take_ownership_from_abi) {} - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h deleted file mode 100644 index 66de80d94..000000000 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h +++ /dev/null @@ -1,30 +0,0 @@ -// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 - -#pragma once -#ifndef WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_2_H -#define WINRT_Microsoft_Windows_Devices_Midi2_ServiceConfig_2_H -#include "winrt/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h" -WINRT_EXPORT namespace winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig -{ - struct MidiServiceConfigResponse - { - winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::MidiServiceConfigResponseStatus Status; - hstring ResponseJson; - }; - inline bool operator==(MidiServiceConfigResponse const& left, MidiServiceConfigResponse const& right) noexcept - { - return left.Status == right.Status && left.ResponseJson == right.ResponseJson; - } - inline bool operator!=(MidiServiceConfigResponse const& left, MidiServiceConfigResponse const& right) noexcept - { - return !(left == right); - } - struct WINRT_IMPL_EMPTY_BASES MidiServiceConfig : winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig - { - MidiServiceConfig(std::nullptr_t) noexcept {} - MidiServiceConfig(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceConfig(ptr, take_ownership_from_abi) {} - static auto UpdateTransportPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceTransportPluginConfig const& configUpdate); - static auto UpdateProcessingPluginConfig(winrt::Microsoft::Windows::Devices::Midi2::ServiceConfig::IMidiServiceMessageProcessingPluginConfig const& configUpdate); - }; -} -#endif diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 1330d4afb..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 3ec3bf415..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index a6672a0fe..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index 686535059..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 61a87865f..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll deleted file mode 100644 index 3e71dd3a7..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 15faccfac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 626d4a166..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 7dc39cedd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index cc0b45d34..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 1c963097c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 1c963097c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 1c963097c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 1c963097c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 1330d4afb..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index 3ec3bf415..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index a6672a0fe..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index 686535059..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 61a87865f..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 15faccfac..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 626d4a166..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 7dc39cedd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index cc0b45d34..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/uap10.0/Arm64EC/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 9e11bd949..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index f8d03b278..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index 62280d0b1..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index fd62d3e7c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 6d1d55bf5..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 25f462d84..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 7d62d0c0c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 17d899219..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index f10b95cdd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 1c963097c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 1c963097c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 1c963097c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll deleted file mode 100644 index 1c963097c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd deleted file mode 100644 index 9e11bd949..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd deleted file mode 100644 index f8d03b278..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd deleted file mode 100644 index 62280d0b1..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd deleted file mode 100644 index fd62d3e7c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd deleted file mode 100644 index 6d1d55bf5..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd deleted file mode 100644 index 25f462d84..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd deleted file mode 100644 index 7d62d0c0c..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd deleted file mode 100644 index 17d899219..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and /dev/null differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd b/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd deleted file mode 100644 index f10b95cdd..000000000 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd and /dev/null differ diff --git a/samples/cpp-winrt/nuget.config b/samples/cpp-winrt/nuget.config new file mode 100644 index 000000000..88bb97b4d --- /dev/null +++ b/samples/cpp-winrt/nuget.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/samples/cpp-winrt/virtual-device-app-winui/MainWindow.idl b/samples/cpp-winrt/virtual-device-app-winui/MainWindow.idl index 2c5adea7f..99292d298 100644 --- a/samples/cpp-winrt/virtual-device-app-winui/MainWindow.idl +++ b/samples/cpp-winrt/virtual-device-app-winui/MainWindow.idl @@ -1,3 +1,5 @@ +import "Note.idl"; + namespace virtual_device_app_winui { [default_interface] @@ -5,5 +7,8 @@ namespace virtual_device_app_winui { MainWindow(); + // c++ requires IInspectable for binding + IVector Notes{ get; }; + } } diff --git a/samples/cpp-winrt/virtual-device-app-winui/MainWindow.xaml b/samples/cpp-winrt/virtual-device-app-winui/MainWindow.xaml index e7c1e011c..5790fe219 100644 --- a/samples/cpp-winrt/virtual-device-app-winui/MainWindow.xaml +++ b/samples/cpp-winrt/virtual-device-app-winui/MainWindow.xaml @@ -14,7 +14,7 @@ - + diff --git a/samples/cpp-winrt/virtual-device-app-winui/MainWindow.xaml.h b/samples/cpp-winrt/virtual-device-app-winui/MainWindow.xaml.h index aa1760f7d..bb8c5062b 100644 --- a/samples/cpp-winrt/virtual-device-app-winui/MainWindow.xaml.h +++ b/samples/cpp-winrt/virtual-device-app-winui/MainWindow.xaml.h @@ -10,10 +10,39 @@ namespace winrt::virtual_device_app_winui::implementation { // Xaml objects should not call InitializeComponent during construction. // See https://github.com/microsoft/cppwinrt/tree/master/nuget#initializecomponent + + if (!init::MidiServicesInitializer::EnsureServiceAvailable()) + { + // In your application, you may decide it is appropriate to fall back to an older MIDI API + //Console.WriteLine("Windows MIDI Services is not available"); + } + else + { + // bootstrap the SDK runtime. Should check the return result here + init::MidiServicesInitializer::InitializeSdkRuntime(); + + StartVirtualDevice(); + + uint8_t notes[] { 50, 52, 53, 55, 57, 58, 60, 62, 64, 65, 67, 69, 70, 72, 74, 76 }; + + for (auto const noteNumber : notes) + { + winrt::virtual_device_app_winui::Note note{}; + + note.NoteNumber(noteNumber); + note.Connection(m_connection); + note.GroupIndex(0); + note.ChannelIndex(0); + + m_notes.Append(note); + } + } } //void myButton_Click(IInspectable const& sender, Microsoft::UI::Xaml::RoutedEventArgs const& args); + winrt::Windows::Foundation::Collections::IVector Notes() { return m_notes; } + private: void OnMidiMessageReceived(_In_ midi2::IMidiMessageReceivedEventSource const&, _In_ midi2::MidiMessageReceivedEventArgs const& args); void OnStreamConfigurationRequestReceived(_In_ virt::MidiVirtualDevice const&, _In_ virt::MidiStreamConfigRequestReceivedEventArgs const& args); @@ -26,6 +55,10 @@ namespace winrt::virtual_device_app_winui::implementation midi2::MidiEndpointConnection m_connection{ nullptr }; virt::MidiVirtualDevice m_virtualDevice{ nullptr }; + // have to use IInspectable for binding. But this is a vector of the Note type + winrt::Windows::Foundation::Collections::IVector m_notes{ + winrt::single_threaded_vector() }; + }; } diff --git a/samples/cpp-winrt/virtual-device-app-winui/Note.cpp b/samples/cpp-winrt/virtual-device-app-winui/Note.cpp index 9fd669508..61fd58668 100644 --- a/samples/cpp-winrt/virtual-device-app-winui/Note.cpp +++ b/samples/cpp-winrt/virtual-device-app-winui/Note.cpp @@ -6,10 +6,43 @@ namespace winrt::virtual_device_app_winui::implementation { void Note::NoteOn() { - throw hresult_not_implemented(); + uint16_t index = NoteNumber(); + + index <<= 8; + + uint16_t velocity = 0xFFFF; + + uint16_t word1 = (uint32_t)velocity << 16; + + if (midi2::MidiEndpointConnection::SendMessageSucceeded(Connection().SendSingleMessagePacket( + msgs::MidiMessageBuilder::BuildMidi2ChannelVoiceMessage( + 0, + midi2::MidiGroup(GroupIndex()), + msgs::Midi2ChannelVoiceMessageStatus::NoteOn, + midi2::MidiChannel(ChannelIndex()), + index, + word1)))) + { + //System.Diagnostics.Debug.WriteLine(" - sent"); + } } + + void Note::NoteOff() { - throw hresult_not_implemented(); + uint16_t index = NoteNumber(); + index <<= 8; + + if (midi2::MidiEndpointConnection::SendMessageSucceeded(Connection().SendSingleMessagePacket( + msgs::MidiMessageBuilder::BuildMidi2ChannelVoiceMessage( + 0, + midi2::MidiGroup(GroupIndex()), + msgs::Midi2ChannelVoiceMessageStatus::NoteOff, + midi2::MidiChannel(ChannelIndex()), + index, + 0)))) + { + //System.Diagnostics.Debug.WriteLine(" - sent"); + } } } diff --git a/samples/cpp-winrt/virtual-device-app-winui/packages.config b/samples/cpp-winrt/virtual-device-app-winui/packages.config index e696494ef..1499ba73c 100644 --- a/samples/cpp-winrt/virtual-device-app-winui/packages.config +++ b/samples/cpp-winrt/virtual-device-app-winui/packages.config @@ -4,5 +4,5 @@ - + \ No newline at end of file diff --git a/samples/cpp-winrt/virtual-device-app-winui/pch.h b/samples/cpp-winrt/virtual-device-app-winui/pch.h index 44c4d6caa..6fe0f1785 100644 --- a/samples/cpp-winrt/virtual-device-app-winui/pch.h +++ b/samples/cpp-winrt/virtual-device-app-winui/pch.h @@ -11,11 +11,13 @@ #include #include #include + #include #include #include #include #include +#include #include #include #include diff --git a/samples/cpp-winrt/virtual-device-app-winui/virtual-device-app-winui.vcxproj b/samples/cpp-winrt/virtual-device-app-winui/virtual-device-app-winui.vcxproj index 904ff71af..af1983693 100644 --- a/samples/cpp-winrt/virtual-device-app-winui/virtual-device-app-winui.vcxproj +++ b/samples/cpp-winrt/virtual-device-app-winui/virtual-device-app-winui.vcxproj @@ -1,8 +1,8 @@  + - true @@ -185,10 +185,10 @@ - + @@ -196,12 +196,12 @@ - - + + \ No newline at end of file diff --git a/samples/cpp-winrt/virtual-device-app-winui/virtual-device-app-winui.vcxproj.filters b/samples/cpp-winrt/virtual-device-app-winui/virtual-device-app-winui.vcxproj.filters index b1648ba33..e605d50e7 100644 --- a/samples/cpp-winrt/virtual-device-app-winui/virtual-device-app-winui.vcxproj.filters +++ b/samples/cpp-winrt/virtual-device-app-winui/virtual-device-app-winui.vcxproj.filters @@ -8,13 +8,22 @@ + + Note + + + Note + + + Note + @@ -43,6 +52,9 @@ {ae87fdf9-202f-4b21-b4d1-d83886c29053} + + {4d02b124-21cf-43a8-b975-0b7bdad85c11} + @@ -56,4 +68,7 @@ + + + \ No newline at end of file diff --git a/samples/csharp-net/nuget.config b/samples/csharp-net/nuget.config new file mode 100644 index 000000000..88bb97b4d --- /dev/null +++ b/samples/csharp-net/nuget.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/src/api/Abstraction/KSAbstraction/Midi2.KSMidiEndpointManager.cpp b/src/api/Abstraction/KSAbstraction/Midi2.KSMidiEndpointManager.cpp index d86fe021b..25ae7fd95 100644 --- a/src/api/Abstraction/KSAbstraction/Midi2.KSMidiEndpointManager.cpp +++ b/src/api/Abstraction/KSAbstraction/Midi2.KSMidiEndpointManager.cpp @@ -866,6 +866,7 @@ CMidi2KSMidiEndpointManager::OnDeviceAdded( BYTE preferredProtocol{ MIDI_PROP_CONFIGURED_PROTOCOL_MIDI2 }; WORD negotiationTimeoutMilliseconds{ 5000 }; + // this pointer will be allocated and set in the negotiate method PENDPOINTPROTOCOLNEGOTIATIONRESULTS negotiationResults; LOG_IF_FAILED(m_MidiProtocolManager->NegotiateAndRequestMetadata( diff --git a/src/api/Abstraction/VirtualMidiAbstraction/Midi2.VirtualMidiConfigurationManager.cpp b/src/api/Abstraction/VirtualMidiAbstraction/Midi2.VirtualMidiConfigurationManager.cpp index 203b93153..dad450667 100644 --- a/src/api/Abstraction/VirtualMidiAbstraction/Midi2.VirtualMidiConfigurationManager.cpp +++ b/src/api/Abstraction/VirtualMidiAbstraction/Midi2.VirtualMidiConfigurationManager.cpp @@ -62,12 +62,13 @@ CMidi2VirtualMidiConfigurationManager::UpdateConfiguration( MidiVirtualMidiAbstractionTelemetryProvider::Provider(), MIDI_TRACE_EVENT_ERROR, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), - TraceLoggingLevel(WINEVENT_LEVEL_ERROR), + TraceLoggingLevel(WINEVENT_LEVEL_WARNING), TraceLoggingPointer(this, "this"), TraceLoggingWideString(L"Virtual endpoints can be created only at runtime through the API, not from the configuration file.", MIDI_TRACE_EVENT_MESSAGE_FIELD) ); - return E_FAIL; + // we return S_OK here because this can happen at service startup, and no reason to log an error here + return S_OK; } diff --git a/src/api/Inc/MidiDefs.h b/src/api/Inc/MidiDefs.h index fcf5f9f61..d57f833e6 100644 --- a/src/api/Inc/MidiDefs.h +++ b/src/api/Inc/MidiDefs.h @@ -16,10 +16,15 @@ #define MIDI_TRACE_EVENT_INFO "Midi.Info" -#define MIDI_TRACE_EVENT_MESSAGE_FIELD "message" -#define MIDI_TRACE_EVENT_LOCATION_FIELD "location" -#define MIDI_TRACE_EVENT_HRESULT_FIELD "hresult" -#define MIDI_TRACE_EVENT_INTERFACE_FIELD "interface" +#define MIDI_TRACE_EVENT_MESSAGE_FIELD "message" +#define MIDI_TRACE_EVENT_LOCATION_FIELD "location" +#define MIDI_TRACE_EVENT_HRESULT_FIELD "hresult" +#define MIDI_TRACE_EVENT_INTERFACE_FIELD "interface" + +#define MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD "swd" +#define MIDI_TRACE_EVENT_DEVICE_INSTANCE_ID_FIELD "device instance" + +#define MIDI_TRACE_EVENT_MIDI_WORD0_FIELD "word0" @@ -610,6 +615,13 @@ struct MidiDeviceIdentityProperty // TODO: double check this number #define MIDI_FUNCTION_BLOCK_NAME_MAX_LENGTH 96 +// this should probably just be an enum +#define MIDI_FUNCTION_BLOCK_DIRECTION_BLOCK_UNKNOWN 0x0 +#define MIDI_FUNCTION_BLOCK_DIRECTION_BLOCK_INPUT 0x1 +#define MIDI_FUNCTION_BLOCK_DIRECTION_BLOCK_OUTPUT 0x2 +#define MIDI_FUNCTION_BLOCK_DIRECTION_BLOCK_BIDIRECTIONAL 0x3 + + // for PKEY_MIDI_FunctionBlocks // these properties are raw from the messages struct MidiFunctionBlockProperty @@ -618,7 +630,7 @@ struct MidiFunctionBlockProperty bool IsActive{ false }; uint8_t BlockNumber{ 0 }; uint8_t Reserved0{ 0 }; // unused in UMP 1.1 - uint8_t Direction{ 0 }; + uint8_t Direction{ 0 }; // one of the MIDI_FUNCTION_BLOCK_DIRECTION_xxx values uint8_t Midi1{ 0 }; uint8_t UIHint{ 0 }; uint8_t FirstGroup{ 0 }; diff --git a/src/api/Inc/wstring_util.h b/src/api/Inc/wstring_util.h index 3ebf45414..9b7562fa4 100644 --- a/src/api/Inc/wstring_util.h +++ b/src/api/Inc/wstring_util.h @@ -100,7 +100,7 @@ namespace WindowsMidiServicesInternal return ToUpperTrimmedWStringCopy(guidString); } - // note that this produces a GUID with uppercase letters and enclosing braces + // This produces a GUID with uppercase letters and enclosing braces inline std::wstring GuidToString(_In_ GUID guid) { LPOLESTR str; @@ -118,6 +118,7 @@ namespace WindowsMidiServicesInternal } } + // Expects enclosing braces: {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} inline GUID StringToGuid(_In_ std::wstring value) { // this fails when {} are included diff --git a/src/api/Service/Exe/MidiEndpointProtocolWorker.cpp b/src/api/Service/Exe/MidiEndpointProtocolWorker.cpp index 5a8617fa9..ed8d1081b 100644 --- a/src/api/Service/Exe/MidiEndpointProtocolWorker.cpp +++ b/src/api/Service/Exe/MidiEndpointProtocolWorker.cpp @@ -36,25 +36,45 @@ CMidiEndpointProtocolWorker::Initialize( m_deviceManager = DeviceManager; m_sessionTracker = SessionTracker; - wil::com_ptr_nothrow midiAbstraction; + wil::com_ptr_nothrow serviceAbstraction; // we only support UMP data format for protocol negotiation - ABSTRACTIONCREATIONPARAMS abstractionCreationParams; + ABSTRACTIONCREATIONPARAMS abstractionCreationParams{ }; abstractionCreationParams.DataFormat = MidiDataFormat::MidiDataFormat_UMP; DWORD mmcssTaskId{ 0 }; LONGLONG context{ 0 }; - - // This approach ONLY works because all UMP endpoints are required to be multi-client - RETURN_IF_FAILED(CoCreateInstance(m_abstractionGuid, nullptr, CLSCTX_ALL, IID_PPV_ARGS(&midiAbstraction))); - RETURN_IF_FAILED(midiAbstraction->Activate(__uuidof(IMidiBiDi), (void**)&m_midiBiDiDevice)); - RETURN_IF_FAILED(m_midiBiDiDevice->Initialize(m_deviceInterfaceId.c_str(), &abstractionCreationParams, &mmcssTaskId, this, context, m_sessionId)); - - // todo: add this connection to the session tracker - - - + // Working directly with the abstraction doesn't work here. Something doesn't hook up + // properly. When we open the device here, then the normal client endpoints don't + // receive messages, even though they appear to be working. +// RETURN_IF_FAILED(CoCreateInstance(m_abstractionGuid, nullptr, CLSCTX_ALL, IID_PPV_ARGS(&midiAbstraction))); +// RETURN_IF_FAILED(midiAbstraction->Activate(__uuidof(IMidiBiDi), (void**)&m_midiBiDiDevice)); +// RETURN_IF_FAILED(m_midiBiDiDevice->Initialize(m_deviceInterfaceId.c_str(), &abstractionCreationParams, &mmcssTaskId, this, context, m_sessionId)); + + // this is not a good idea, but we don't have a reference to the lib here + GUID midi2MidiSrvAbstractionIID = internal::StringToGuid(L"{2BA15E4E-5417-4A66-85B8-2B2260EFBC84}"); + RETURN_IF_FAILED(CoCreateInstance((IID)midi2MidiSrvAbstractionIID, nullptr, CLSCTX_ALL, IID_PPV_ARGS(&serviceAbstraction))); + + // create the bidi device + RETURN_IF_FAILED(serviceAbstraction->Activate(__uuidof(IMidiBiDi), (void**)&m_midiBiDiDevice)); + + RETURN_IF_FAILED(m_midiBiDiDevice->Initialize( + (LPCWSTR)(m_deviceInterfaceId.c_str()), + &abstractionCreationParams, + &mmcssTaskId, + (IMidiCallback*)(this), + context, + m_sessionId + )); + + // add this connection to the session tracker. The manager already logged the overall session + //LOG_IF_FAILED(m_sessionTracker->AddClientEndpointConnection( + // m_sessionId, + // m_deviceInterfaceId.c_str(), + // (MidiClientHandle)nullptr)); + + RETURN_IF_FAILED(m_allNegotiationMessagesReceived.create(wil::EventOptions::ManualReset)); return S_OK; } @@ -169,7 +189,6 @@ CMidiEndpointProtocolWorker::NegotiateAndRequestMetadata( // The lifetime of this object (CMidiEndpointProtocolWorker instance for the SWD) is controlled by the CMidiEndpointProtocolManager. - // reset all the data collection fields in case negotiation was // called more than once (an allowed scenario) m_countFunctionBlocksReceived = 0; @@ -180,7 +199,7 @@ CMidiEndpointProtocolWorker::NegotiateAndRequestMetadata( m_endpointName.clear(); m_productInstanceId.clear(); - m_allNegotiationMessagesReceived.reset(); + m_allNegotiationMessagesReceived.ResetEvent(); m_alreadyTriedToNegotiationOnce = false; m_taskDeviceIdentityReceived = false; @@ -215,21 +234,29 @@ CMidiEndpointProtocolWorker::NegotiateAndRequestMetadata( m_mostRecentResults.EndpointSuppliedName = m_endpointName.c_str(); m_mostRecentResults.EndpointSuppliedProductInstanceId = m_productInstanceId.c_str(); - //results->FunctionBlocksAreStatic = - m_mostRecentResults.NumberOfFunctionBlocksReceived = m_countFunctionBlocksReceived; + m_mostRecentResults.FunctionBlocksAreStatic = m_functionBlocksAreStatic; m_mostRecentResults.NumberOfFunctionBlocksDeclared = m_declaredFunctionBlockCount; - // TODO: Loop through function blocks and copy the name pointers over + // Loop through function blocks and copy the name pointers over // into the structure before returning it. Seems extra, but we need a friendly // place to work on names before they are finished, and the structure only // knows about the LPCWSTR, not std::wstring - // MISSING NAME FUNCTIONALITY - + for (auto& fb : m_discoveredFunctionBlocks) + { + if (m_functionBlockNames.find(fb.Number) != m_functionBlockNames.end()) + { + fb.Name = m_functionBlockNames[fb.Number].c_str(); + } + else + { + fb.Name = nullptr; + } + } // add the function blocks now they are fully valid m_mostRecentResults.DiscoveredFunctionBlocks = m_discoveredFunctionBlocks.data(); - + m_mostRecentResults.NumberOfFunctionBlocksReceived = (BYTE)m_discoveredFunctionBlocks.size(); *NegotiationResults = &m_mostRecentResults; @@ -259,118 +286,21 @@ CMidiEndpointProtocolWorker::Callback( if (internal::GetUmpMessageTypeFromFirstWord(ump.word0) == MIDI_STREAM_MESSAGE_UMP_MESSAGE_TYPE) { - auto messageStatus = internal::GetStatusFromStreamMessageFirstWord(ump.word0); + LOG_IF_FAILED(ProcessStreamMessage(ump)); + + // check flags. If we've received everything, signal - switch (messageStatus) + if (m_taskEndpointInfoReceived && + m_taskEndpointNameReceived && + m_taskEndpointProductInstanceIdReceived && + m_taskDeviceIdentityReceived && + m_countFunctionBlockNamesReceived == m_declaredFunctionBlockCount && + m_countFunctionBlocksReceived == m_declaredFunctionBlockCount && + m_taskFinalStreamNegotiationResponseReceived) { - case MIDI_STREAM_MESSAGE_STATUS_ENDPOINT_INFO_NOTIFICATION: - TraceLoggingWrite( - MidiSrvTelemetryProvider::Provider(), - MIDI_TRACE_EVENT_INFO, - TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), - TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this"), - TraceLoggingWideString(L"Received Endpoint Info Notification", MIDI_TRACE_EVENT_MESSAGE_FIELD) - ); - - m_taskEndpointInfoReceived = true; - m_declaredFunctionBlockCount = internal::GetEndpointInfoNotificationNumberOfFunctionBlocksFromSecondWord(ump.word1); - - RequestAllFunctionBlocks(); - break; - - case MIDI_STREAM_MESSAGE_STATUS_DEVICE_IDENTITY_NOTIFICATION: - TraceLoggingWrite( - MidiSrvTelemetryProvider::Provider(), - MIDI_TRACE_EVENT_INFO, - TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), - TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this"), - TraceLoggingWideString(L"Received Device Identity Notification", MIDI_TRACE_EVENT_MESSAGE_FIELD) - ); - - m_taskDeviceIdentityReceived = true; - break; - - case MIDI_STREAM_MESSAGE_STATUS_STREAM_CONFIGURATION_NOTIFICATION: - TraceLoggingWrite( - MidiSrvTelemetryProvider::Provider(), - MIDI_TRACE_EVENT_INFO, - TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), - TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this"), - TraceLoggingWideString(L"Received Stream Configuration Notification", MIDI_TRACE_EVENT_MESSAGE_FIELD) - ); - - ProcessStreamConfigurationRequest(ump); - break; - - case MIDI_STREAM_MESSAGE_STATUS_FUNCTION_BLOCK_INFO_NOTIFICATION: - TraceLoggingWrite( - MidiSrvTelemetryProvider::Provider(), - MIDI_TRACE_EVENT_INFO, - TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), - TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this"), - TraceLoggingWideString(L"Received Function Block Info Notification", MIDI_TRACE_EVENT_MESSAGE_FIELD) - ); - - m_countFunctionBlocksReceived += 1; - break; - - case MIDI_STREAM_MESSAGE_STATUS_FUNCTION_BLOCK_NAME_NOTIFICATION: - TraceLoggingWrite( - MidiSrvTelemetryProvider::Provider(), - MIDI_TRACE_EVENT_INFO, - TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), - TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this"), - TraceLoggingWideString(L"Received Function Block Name Notification", MIDI_TRACE_EVENT_MESSAGE_FIELD) - ); - - if (internal::GetFormFromStreamMessageFirstWord(ump.word0) == MIDI_STREAM_MESSAGE_MULTI_FORM_COMPLETE || - internal::GetFormFromStreamMessageFirstWord(ump.word0) == MIDI_STREAM_MESSAGE_MULTI_FORM_END) - { - m_countFunctionBlockNamesReceived += 1; - } - break; - - case MIDI_STREAM_MESSAGE_STATUS_ENDPOINT_PRODUCT_INSTANCE_ID_NOTIFICATION: - TraceLoggingWrite( - MidiSrvTelemetryProvider::Provider(), - MIDI_TRACE_EVENT_INFO, - TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), - TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this"), - TraceLoggingWideString(L"Received Product Instance Id Notification", MIDI_TRACE_EVENT_MESSAGE_FIELD) - ); - - if (internal::GetFormFromStreamMessageFirstWord(ump.word0) == MIDI_STREAM_MESSAGE_MULTI_FORM_COMPLETE || - internal::GetFormFromStreamMessageFirstWord(ump.word0) == MIDI_STREAM_MESSAGE_MULTI_FORM_END) - { - m_taskEndpointProductInstanceIdReceived = true; - } - break; - - case MIDI_STREAM_MESSAGE_STATUS_ENDPOINT_NAME_NOTIFICATION: - TraceLoggingWrite( - MidiSrvTelemetryProvider::Provider(), - MIDI_TRACE_EVENT_INFO, - TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), - TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this"), - TraceLoggingWideString(L"Received Endpoint Name Notification", MIDI_TRACE_EVENT_MESSAGE_FIELD) - ); - - if (internal::GetFormFromStreamMessageFirstWord(ump.word0) == MIDI_STREAM_MESSAGE_MULTI_FORM_COMPLETE || - internal::GetFormFromStreamMessageFirstWord(ump.word0) == MIDI_STREAM_MESSAGE_MULTI_FORM_END) - { - m_taskEndpointNameReceived = true; - } - break; - - default: - break; + // we're done with negotiation, and can return from the initial function. Code will continue to + // capture new metadata when messages signal change, but the initial steps have completed. + m_allNegotiationMessagesReceived.SetEvent(); } } else @@ -399,23 +329,224 @@ CMidiEndpointProtocolWorker::Callback( } - // check flags. If we've received everything, signal + return S_OK; +} + + + +_Use_decl_annotations_ +HRESULT +CMidiEndpointProtocolWorker::ProcessStreamMessage(internal::PackedUmp128 ump) +{ + TraceLoggingWrite( + MidiSrvTelemetryProvider::Provider(), + MIDI_TRACE_EVENT_INFO, + TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), + TraceLoggingLevel(WINEVENT_LEVEL_INFO), + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD), + TraceLoggingUInt32(ump.word0, MIDI_TRACE_EVENT_MIDI_WORD0_FIELD) + ); + + auto messageStatus = internal::GetStatusFromStreamMessageFirstWord(ump.word0); - if (m_taskEndpointInfoReceived && - m_taskEndpointNameReceived && - m_taskEndpointProductInstanceIdReceived && - m_taskDeviceIdentityReceived && - m_countFunctionBlockNamesReceived == m_declaredFunctionBlockCount && - m_countFunctionBlocksReceived == m_declaredFunctionBlockCount && - m_taskFinalStreamNegotiationResponseReceived) + switch (messageStatus) + { + case MIDI_STREAM_MESSAGE_STATUS_ENDPOINT_INFO_NOTIFICATION: { - // m_allMessagesReceived.SetEvent(); +#ifdef _DEBUG + TraceLoggingWrite( + MidiSrvTelemetryProvider::Provider(), + MIDI_TRACE_EVENT_INFO, + TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), + TraceLoggingLevel(WINEVENT_LEVEL_INFO), + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(L"Received Endpoint Info Notification", MIDI_TRACE_EVENT_MESSAGE_FIELD) + ); +#endif + + LOG_IF_FAILED(UpdateEndpointInfoProperties(ump)); + + m_taskEndpointInfoReceived = true; + + m_declaredFunctionBlockCount = internal::GetEndpointInfoNotificationNumberOfFunctionBlocksFromSecondWord(ump.word1); + m_functionBlocksAreStatic = internal::GetEndpointInfoNotificationStaticFunctionBlocksFlagFromSecondWord(ump.word1); + + // TODO: Update other internal values as needed + + LOG_IF_FAILED(RequestAllFunctionBlocks()); + } + break; + + case MIDI_STREAM_MESSAGE_STATUS_DEVICE_IDENTITY_NOTIFICATION: + { +#ifdef _DEBUG + TraceLoggingWrite( + MidiSrvTelemetryProvider::Provider(), + MIDI_TRACE_EVENT_INFO, + TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), + TraceLoggingLevel(WINEVENT_LEVEL_INFO), + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(L"Received Device Identity Notification", MIDI_TRACE_EVENT_MESSAGE_FIELD) + ); +#endif + + LOG_IF_FAILED(UpdateDeviceIdentityProperty(ump)); + + m_taskDeviceIdentityReceived = true; + } + break; + + case MIDI_STREAM_MESSAGE_STATUS_STREAM_CONFIGURATION_NOTIFICATION: + { +#ifdef _DEBUG + TraceLoggingWrite( + MidiSrvTelemetryProvider::Provider(), + MIDI_TRACE_EVENT_INFO, + TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), + TraceLoggingLevel(WINEVENT_LEVEL_INFO), + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(L"Received Stream Configuration Notification", MIDI_TRACE_EVENT_MESSAGE_FIELD) + ); +#endif + + LOG_IF_FAILED(UpdateStreamConfigurationProperties(ump)); + LOG_IF_FAILED(ProcessStreamConfigurationRequest(ump)); + } + break; + + case MIDI_STREAM_MESSAGE_STATUS_FUNCTION_BLOCK_INFO_NOTIFICATION: + { +#ifdef _DEBUG + TraceLoggingWrite( + MidiSrvTelemetryProvider::Provider(), + MIDI_TRACE_EVENT_INFO, + TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), + TraceLoggingLevel(WINEVENT_LEVEL_INFO), + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(L"Received Function Block Info Notification", MIDI_TRACE_EVENT_MESSAGE_FIELD) + ); +#endif + + m_countFunctionBlocksReceived += 1; + + DISCOVEREDFUNCTIONBLOCK block{}; + + auto direction = MIDIWORDBYTE4LOWCRUMB1(ump.word0); + + if (direction == MIDI_FUNCTION_BLOCK_DIRECTION_BLOCK_INPUT || direction == MIDI_FUNCTION_BLOCK_DIRECTION_BLOCK_BIDIRECTIONAL) + { + // input to block == is a MIDI Output from PC + block.IsMIDIMessageDestination = true; + } + + if (direction == MIDI_FUNCTION_BLOCK_DIRECTION_BLOCK_OUTPUT || direction == MIDI_FUNCTION_BLOCK_DIRECTION_BLOCK_BIDIRECTIONAL) + { + // output from block == is a MIDI input to PC + block.IsMIDIMessageSource = true; + } + + block.IsActive = (BOOL)(MIDIWORDBYTE3HIGHBIT(ump.word0)); + block.Number = internal::CleanupByte7(MIDIWORDBYTE3(ump.word0)); + block.FirstGroup = MIDIWORDBYTE1(ump.word1); + block.NumberOfGroupsSpanned = MIDIWORDBYTE2(ump.word1); + + m_discoveredFunctionBlocks.push_back(block); + + LOG_IF_FAILED(UpdateFunctionBlockProperty(ump)); + } + break; + + case MIDI_STREAM_MESSAGE_STATUS_FUNCTION_BLOCK_NAME_NOTIFICATION: + { +#ifdef _DEBUG + TraceLoggingWrite( + MidiSrvTelemetryProvider::Provider(), + MIDI_TRACE_EVENT_INFO, + TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), + TraceLoggingLevel(WINEVENT_LEVEL_INFO), + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(L"Received Function Block Name Notification", MIDI_TRACE_EVENT_MESSAGE_FIELD) + ); +#endif + + if (internal::GetFormFromStreamMessageFirstWord(ump.word0) == MIDI_STREAM_MESSAGE_MULTI_FORM_COMPLETE || + internal::GetFormFromStreamMessageFirstWord(ump.word0) == MIDI_STREAM_MESSAGE_MULTI_FORM_END) + { + m_countFunctionBlockNamesReceived += 1; + } + + LOG_IF_FAILED(HandleFunctionBlockNameMessage(ump)); + } + break; + + case MIDI_STREAM_MESSAGE_STATUS_ENDPOINT_PRODUCT_INSTANCE_ID_NOTIFICATION: + { +#ifdef _DEBUG + TraceLoggingWrite( + MidiSrvTelemetryProvider::Provider(), + MIDI_TRACE_EVENT_INFO, + TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), + TraceLoggingLevel(WINEVENT_LEVEL_INFO), + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(L"Received Product Instance Id Notification", MIDI_TRACE_EVENT_MESSAGE_FIELD) + ); +#endif + + if (internal::GetFormFromStreamMessageFirstWord(ump.word0) == MIDI_STREAM_MESSAGE_MULTI_FORM_COMPLETE || + internal::GetFormFromStreamMessageFirstWord(ump.word0) == MIDI_STREAM_MESSAGE_MULTI_FORM_END) + { + m_taskEndpointProductInstanceIdReceived = true; + } + + LOG_IF_FAILED(HandleProductInstanceIdMessage(ump)); + } + break; + + case MIDI_STREAM_MESSAGE_STATUS_ENDPOINT_NAME_NOTIFICATION: + { +#ifdef _DEBUG + TraceLoggingWrite( + MidiSrvTelemetryProvider::Provider(), + MIDI_TRACE_EVENT_INFO, + TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), + TraceLoggingLevel(WINEVENT_LEVEL_INFO), + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(L"Received Endpoint Name Notification", MIDI_TRACE_EVENT_MESSAGE_FIELD) + ); +#endif + + if (internal::GetFormFromStreamMessageFirstWord(ump.word0) == MIDI_STREAM_MESSAGE_MULTI_FORM_COMPLETE || + internal::GetFormFromStreamMessageFirstWord(ump.word0) == MIDI_STREAM_MESSAGE_MULTI_FORM_END) + { + m_taskEndpointNameReceived = true; + } + LOG_IF_FAILED(HandleEndpointNameMessage(ump)); + } + break; + + default: + { + TraceLoggingWrite( + MidiSrvTelemetryProvider::Provider(), + MIDI_TRACE_EVENT_INFO, + TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), + TraceLoggingLevel(WINEVENT_LEVEL_INFO), + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(L"Message is unidentified stream message", MIDI_TRACE_EVENT_MESSAGE_FIELD) + ); + // some other type F we don't understand. Just ignore + } + break; + } return S_OK; } + + HRESULT CMidiEndpointProtocolWorker::RequestAllFunctionBlocks() { @@ -424,7 +555,8 @@ CMidiEndpointProtocolWorker::RequestAllFunctionBlocks() MIDI_TRACE_EVENT_INFO, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD) ); internal::PackedUmp128 ump{}; @@ -451,7 +583,8 @@ CMidiEndpointProtocolWorker::RequestAllEndpointDiscoveryInformation() MIDI_TRACE_EVENT_INFO, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD) ); internal::PackedUmp128 ump{}; @@ -492,7 +625,8 @@ CMidiEndpointProtocolWorker::ProcessStreamConfigurationRequest(internal::PackedU MIDI_TRACE_EVENT_INFO, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD) ); // see if all is what we want. If not, we'll send a request to change configuration. @@ -549,10 +683,13 @@ CMidiEndpointProtocolWorker::Cleanup() MIDI_TRACE_EVENT_INFO, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD) ); + LOG_IF_FAILED(m_sessionTracker->RemoveClientEndpointConnection(m_sessionId, m_deviceInterfaceId.c_str(), (MidiClientHandle)nullptr)); + // stop worker thread m_shutdown = true; @@ -562,12 +699,20 @@ CMidiEndpointProtocolWorker::Cleanup() // m_queueWorkerThread.join(); + m_allNegotiationMessagesReceived.reset(); + + return S_OK; } +// TODO: An optimization that will help prevent so many update notifications (which trigger device manager +// refresh, as well as client-side events) would be to build a complete update list when in the middle of +// initial discovery/negotiation and committing them only after that completes or times out. + + HRESULT CMidiEndpointProtocolWorker::UpdateEndpointNameProperty() { @@ -576,29 +721,39 @@ CMidiEndpointProtocolWorker::UpdateEndpointNameProperty() MIDI_TRACE_EVENT_INFO, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD) ); auto cleanedValue{ internal::TrimmedWStringCopy(m_endpointName) + L"\0" }; - FILETIME currentTime; - GetSystemTimePreciseAsFileTime(¤tTime); + if (!cleanedValue.empty()) + { + FILETIME currentTime; + GetSystemTimePreciseAsFileTime(¤tTime); - DEVPROPERTY props[] = - { - {{ PKEY_MIDI_EndpointProvidedName, DEVPROP_STORE_SYSTEM, nullptr}, - DEVPROP_TYPE_STRING, static_cast((cleanedValue.length() + 1) * sizeof(WCHAR)), (PVOID)(cleanedValue.c_str()) }, - {{ PKEY_MIDI_EndpointProvidedNameLastUpdateTime, DEVPROP_STORE_SYSTEM, nullptr}, - DEVPROP_TYPE_FILETIME, static_cast(sizeof(FILETIME)), (PVOID)(¤tTime) }, - }; + DEVPROPERTY props[] = + { + {{ PKEY_MIDI_EndpointProvidedName, DEVPROP_STORE_SYSTEM, nullptr}, + DEVPROP_TYPE_STRING, static_cast((cleanedValue.length() + 1) * sizeof(WCHAR)), (PVOID)(cleanedValue.c_str()) }, + {{ PKEY_MIDI_EndpointProvidedNameLastUpdateTime, DEVPROP_STORE_SYSTEM, nullptr}, + DEVPROP_TYPE_FILETIME, static_cast(sizeof(FILETIME)), (PVOID)(¤tTime) }, + }; - RETURN_IF_FAILED(m_deviceManager->UpdateEndpointProperties(m_deviceInstanceId.c_str(), ARRAYSIZE(props), (PVOID)props)); + RETURN_IF_FAILED(m_deviceManager->UpdateEndpointProperties(m_deviceInterfaceId.c_str(), ARRAYSIZE(props), (PVOID)props)); - // clear out any old value that's in there - //m_endpointName.clear(); + // clear out any old value that's in there + //m_endpointName.clear(); - return S_OK; + return S_OK; + } + else + { + // TODO: Need to remove the property + + return S_OK; + } } HRESULT @@ -609,7 +764,8 @@ CMidiEndpointProtocolWorker::UpdateEndpointProductInstanceIdProperty() MIDI_TRACE_EVENT_INFO, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD) ); @@ -619,20 +775,29 @@ CMidiEndpointProtocolWorker::UpdateEndpointProductInstanceIdProperty() std::wstring cleanedValue{ internal::TrimmedWStringCopy(m_productInstanceId) + L"\0" }; - DEVPROPERTY props[] = + if (!cleanedValue.empty()) { - {{ PKEY_MIDI_EndpointProvidedProductInstanceId, DEVPROP_STORE_SYSTEM, nullptr}, - DEVPROP_TYPE_STRING, static_cast((cleanedValue.length() + 1) * sizeof(WCHAR)), (PVOID)(cleanedValue.c_str()) }, - {{ PKEY_MIDI_EndpointProvidedProductInstanceIdLastUpdateTime, DEVPROP_STORE_SYSTEM, nullptr}, - DEVPROP_TYPE_FILETIME, static_cast(sizeof(FILETIME)), (PVOID)(¤tTime) }, - }; + DEVPROPERTY props[] = + { + {{ PKEY_MIDI_EndpointProvidedProductInstanceId, DEVPROP_STORE_SYSTEM, nullptr}, + DEVPROP_TYPE_STRING, static_cast((cleanedValue.length() + 1) * sizeof(WCHAR)), (PVOID)(cleanedValue.c_str()) }, + {{ PKEY_MIDI_EndpointProvidedProductInstanceIdLastUpdateTime, DEVPROP_STORE_SYSTEM, nullptr}, + DEVPROP_TYPE_FILETIME, static_cast(sizeof(FILETIME)), (PVOID)(¤tTime) }, + }; - RETURN_IF_FAILED(m_deviceManager->UpdateEndpointProperties(m_deviceInstanceId.c_str(), ARRAYSIZE(props), (PVOID)props)); + RETURN_IF_FAILED(m_deviceManager->UpdateEndpointProperties(m_deviceInterfaceId.c_str(), ARRAYSIZE(props), (PVOID)props)); - // clear out any old value that's in there - //m_productInstanceId.clear(); + // clear out any old value that's in there + //m_productInstanceId.clear(); - return S_OK; + return S_OK; + } + else + { + // TODO: Need to remove the property + + return S_OK; + } } @@ -645,29 +810,38 @@ CMidiEndpointProtocolWorker::UpdateFunctionBlockNameProperty(uint8_t functionBlo MIDI_TRACE_EVENT_INFO, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD) ); FILETIME currentTime; GetSystemTimePreciseAsFileTime(¤tTime); - std::wstring cleanedValue{ internal::TrimmedWStringCopy(name) + L"\0" }; - DEVPROPERTY props[] = + if (!cleanedValue.empty()) { - {{ FunctionBlockNamePropertyKeyFromNumber(functionBlockNumber), DEVPROP_STORE_SYSTEM, nullptr}, - DEVPROP_TYPE_STRING, static_cast((cleanedValue.length() + 1) * sizeof(WCHAR)), (PVOID)(cleanedValue.c_str()) }, - {{ PKEY_MIDI_FunctionBlocksLastUpdateTime, DEVPROP_STORE_SYSTEM, nullptr}, - DEVPROP_TYPE_FILETIME, static_cast(sizeof(FILETIME)), (PVOID)(¤tTime) }, - }; - RETURN_IF_FAILED(m_deviceManager->UpdateEndpointProperties(m_deviceInstanceId.c_str(), ARRAYSIZE(props), (PVOID)props)); + DEVPROPERTY props[] = + { + {{ FunctionBlockNamePropertyKeyFromNumber(functionBlockNumber), DEVPROP_STORE_SYSTEM, nullptr}, + DEVPROP_TYPE_STRING, static_cast((cleanedValue.length() + 1) * sizeof(WCHAR)), (PVOID)(cleanedValue.c_str()) }, + {{ PKEY_MIDI_FunctionBlocksLastUpdateTime, DEVPROP_STORE_SYSTEM, nullptr}, + DEVPROP_TYPE_FILETIME, static_cast(sizeof(FILETIME)), (PVOID)(¤tTime) }, + }; - // clear out any old name that's in there - // m_functionBlockNames.erase(functionBlockNumber); + RETURN_IF_FAILED(m_deviceManager->UpdateEndpointProperties(m_deviceInterfaceId.c_str(), ARRAYSIZE(props), (PVOID)props)); - return S_OK; + // clear out any old name that's in there + // m_functionBlockNames.erase(functionBlockNumber); + return S_OK; + } + else + { + // TODO: Need to remove the property + + return S_OK; + } } _Use_decl_annotations_ @@ -679,7 +853,8 @@ CMidiEndpointProtocolWorker::UpdateStreamConfigurationProperties(internal::Packe MIDI_TRACE_EVENT_INFO, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD) ); FILETIME currentTime; @@ -706,13 +881,12 @@ CMidiEndpointProtocolWorker::UpdateStreamConfigurationProperties(internal::Packe }; - RETURN_IF_FAILED(m_deviceManager->UpdateEndpointProperties(m_deviceInstanceId.c_str(), ARRAYSIZE(props), (PVOID)props)); + RETURN_IF_FAILED(m_deviceManager->UpdateEndpointProperties(m_deviceInterfaceId.c_str(), ARRAYSIZE(props), (PVOID)props)); return S_OK; } - // The device identity is a single message, so we don't keep a copy. Instead, we just do // the parsing here and then update the property. We assume this has already been identified // as a type=F, form=0, status=0x02 stream message @@ -725,7 +899,8 @@ CMidiEndpointProtocolWorker::UpdateDeviceIdentityProperty(internal::PackedUmp128 MIDI_TRACE_EVENT_INFO, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD) ); @@ -761,7 +936,7 @@ CMidiEndpointProtocolWorker::UpdateDeviceIdentityProperty(internal::PackedUmp128 }; - RETURN_IF_FAILED(m_deviceManager->UpdateEndpointProperties(m_deviceInstanceId.c_str(), ARRAYSIZE(props), (PVOID)props)); + RETURN_IF_FAILED(m_deviceManager->UpdateEndpointProperties(m_deviceInterfaceId.c_str(), ARRAYSIZE(props), (PVOID)props)); return S_OK; } @@ -776,7 +951,8 @@ CMidiEndpointProtocolWorker::UpdateEndpointInfoProperties(internal::PackedUmp128 MIDI_TRACE_EVENT_INFO, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD) ); BYTE umpVersionMajor = MIDIWORDBYTE3(endpointInfoNotificationMessage.word0); @@ -826,7 +1002,7 @@ CMidiEndpointProtocolWorker::UpdateEndpointInfoProperties(internal::PackedUmp128 }; - RETURN_IF_FAILED(m_deviceManager->UpdateEndpointProperties(m_deviceInstanceId.c_str(), ARRAYSIZE(props), (PVOID)props)); + RETURN_IF_FAILED(m_deviceManager->UpdateEndpointProperties(m_deviceInterfaceId.c_str(), ARRAYSIZE(props), (PVOID)props)); return S_OK; } @@ -841,7 +1017,8 @@ CMidiEndpointProtocolWorker::UpdateFunctionBlockProperty(internal::PackedUmp128& MIDI_TRACE_EVENT_INFO, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD) ); MidiFunctionBlockProperty prop; @@ -876,72 +1053,7 @@ CMidiEndpointProtocolWorker::UpdateFunctionBlockProperty(internal::PackedUmp128& }; - - RETURN_IF_FAILED(m_deviceManager->UpdateEndpointProperties(m_deviceInstanceId.c_str(), ARRAYSIZE(props), (PVOID)props)); - - return S_OK; -} - -_Use_decl_annotations_ -HRESULT -CMidiEndpointProtocolWorker::ProcessStreamMessage(internal::PackedUmp128 ump) -{ - TraceLoggingWrite( - MidiSrvTelemetryProvider::Provider(), - MIDI_TRACE_EVENT_INFO, - TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), - TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") - ); - - auto messageStatus = internal::GetStatusFromStreamMessageFirstWord(ump.word0); - - switch (messageStatus) - { - case MIDI_STREAM_MESSAGE_STATUS_ENDPOINT_INFO_NOTIFICATION: - UpdateEndpointInfoProperties(ump); - //m_currentWorkItem.TaskEndpointInfoReceived = true; - //m_currentWorkItem.DeclaredFunctionBlockCount = internal::GetEndpointInfoNotificationNumberOfFunctionBlocksFromSecondWord(ump.word1); - - //RequestAllFunctionBlocks(); - break; - - case MIDI_STREAM_MESSAGE_STATUS_DEVICE_IDENTITY_NOTIFICATION: - UpdateDeviceIdentityProperty(ump); - //m_currentWorkItem.TaskDeviceIdentityReceived = true; - break; - - case MIDI_STREAM_MESSAGE_STATUS_STREAM_CONFIGURATION_NOTIFICATION: - UpdateStreamConfigurationProperties(ump); - break; - - case MIDI_STREAM_MESSAGE_STATUS_FUNCTION_BLOCK_INFO_NOTIFICATION: - UpdateFunctionBlockProperty(ump); - break; - - case MIDI_STREAM_MESSAGE_STATUS_FUNCTION_BLOCK_NAME_NOTIFICATION: - HandleFunctionBlockNameMessage(ump); - break; - - case MIDI_STREAM_MESSAGE_STATUS_ENDPOINT_PRODUCT_INSTANCE_ID_NOTIFICATION: - HandleProductInstanceIdMessage(ump); - break; - - case MIDI_STREAM_MESSAGE_STATUS_ENDPOINT_NAME_NOTIFICATION: - HandleEndpointNameMessage(ump); - break; - - default: - TraceLoggingWrite( - MidiSrvTelemetryProvider::Provider(), - MIDI_TRACE_EVENT_INFO, - TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), - TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this"), - TraceLoggingWideString(L"Message is unidentified stream message", MIDI_TRACE_EVENT_MESSAGE_FIELD) - ); - break; - } + RETURN_IF_FAILED(m_deviceManager->UpdateEndpointProperties(m_deviceInterfaceId.c_str(), ARRAYSIZE(props), (PVOID)props)); return S_OK; } @@ -958,7 +1070,8 @@ CMidiEndpointProtocolWorker::ParseStreamTextMessage(internal::PackedUmp128& mess MIDI_TRACE_EVENT_INFO, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD) ); @@ -1031,7 +1144,8 @@ CMidiEndpointProtocolWorker::HandleFunctionBlockNameMessage(internal::PackedUmp1 MIDI_TRACE_EVENT_INFO, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD) ); @@ -1097,7 +1211,8 @@ CMidiEndpointProtocolWorker::HandleEndpointNameMessage(internal::PackedUmp128& e MIDI_TRACE_EVENT_INFO, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD) ); switch (internal::GetFormFromStreamMessageFirstWord(endpointNameMessage.word0)) @@ -1154,7 +1269,8 @@ CMidiEndpointProtocolWorker::HandleProductInstanceIdMessage(internal::PackedUmp1 MIDI_TRACE_EVENT_INFO, TraceLoggingString(__FUNCTION__, MIDI_TRACE_EVENT_LOCATION_FIELD), TraceLoggingLevel(WINEVENT_LEVEL_INFO), - TraceLoggingPointer(this, "this") + TraceLoggingPointer(this, "this"), + TraceLoggingWideString(m_deviceInterfaceId.c_str(), MIDI_TRACE_EVENT_DEVICE_SWD_ID_FIELD) ); switch (internal::GetFormFromStreamMessageFirstWord(productInstanceIdMessage.word0)) diff --git a/src/api/Service/Exe/MidiEndpointProtocolWorker.h b/src/api/Service/Exe/MidiEndpointProtocolWorker.h index 11f1de2d7..cf7aec70c 100644 --- a/src/api/Service/Exe/MidiEndpointProtocolWorker.h +++ b/src/api/Service/Exe/MidiEndpointProtocolWorker.h @@ -42,7 +42,7 @@ class CMidiEndpointProtocolWorker : public Microsoft::WRL::RuntimeClass< private: std::wstring m_deviceInterfaceId; - std::wstring m_deviceInstanceId; + //std::wstring m_deviceInstanceId; GUID m_sessionId; GUID m_abstractionGuid; @@ -84,6 +84,7 @@ class CMidiEndpointProtocolWorker : public Microsoft::WRL::RuntimeClass< bool m_taskEndpointProductInstanceIdReceived{ false }; bool m_taskDeviceIdentityReceived{ false }; + bool m_functionBlocksAreStatic{ false }; uint8_t m_declaredFunctionBlockCount{ 0 }; uint8_t m_countFunctionBlocksReceived{ 0 }; diff --git a/src/app-sdk/MyMidiApp.exe.manifest b/src/app-sdk/MyMidiApp.exe.manifest new file mode 100644 index 000000000..066d36592 --- /dev/null +++ b/src/app-sdk/MyMidiApp.exe.manifest @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/app-sdk/app-sdk.sln b/src/app-sdk/app-sdk.sln index e973c931b..89512fa7b 100644 --- a/src/app-sdk/app-sdk.sln +++ b/src/app-sdk/app-sdk.sln @@ -18,6 +18,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "0 Shared", "0 Shared", "{78B3E981-FFD4-4C8D-9575-B288DED97905}" ProjectSection(SolutionItems) = preProject sdk-shared\SdkTraceLogging.h = sdk-shared\SdkTraceLogging.h + MyMidiApp.exe.manifest = MyMidiApp.exe.manifest EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tools", "Tools", "{C8B31D71-0226-4D2D-AC78-53D5C84F472F}" diff --git a/src/app-sdk/projections/dotnet-and-cpp/nuget/Microsoft.Windows.Devices.Midi2.nuspec b/src/app-sdk/projections/dotnet-and-cpp/nuget/Microsoft.Windows.Devices.Midi2.nuspec index 587b2b11a..99c3a5fba 100644 --- a/src/app-sdk/projections/dotnet-and-cpp/nuget/Microsoft.Windows.Devices.Midi2.nuspec +++ b/src/app-sdk/projections/dotnet-and-cpp/nuget/Microsoft.Windows.Devices.Midi2.nuspec @@ -20,46 +20,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -75,47 +35,25 @@ - - - - - - - - - - - + + + + - - + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + - - + + + + + diff --git a/src/app-sdk/projections/dotnet-and-cpp/nuget/Microsoft.Windows.Devices.Midi2.targets b/src/app-sdk/projections/dotnet-and-cpp/nuget/Microsoft.Windows.Devices.Midi2.targets index 2cdea5d13..199c8ba28 100644 --- a/src/app-sdk/projections/dotnet-and-cpp/nuget/Microsoft.Windows.Devices.Midi2.targets +++ b/src/app-sdk/projections/dotnet-and-cpp/nuget/Microsoft.Windows.Devices.Midi2.targets @@ -27,8 +27,8 @@ AfterTargets="AfterBuild;AfterRebuild"> - - + + diff --git a/src/app-sdk/sdk-runtime-installer/main-bundle/Bundle.wxs b/src/app-sdk/sdk-runtime-installer/main-bundle/Bundle.wxs index 5f627fd03..e6e703de0 100644 --- a/src/app-sdk/sdk-runtime-installer/main-bundle/Bundle.wxs +++ b/src/app-sdk/sdk-runtime-installer/main-bundle/Bundle.wxs @@ -18,7 +18,7 @@ + UpgradeCode="738243ea-170f-4385-94d5-be4059d9d2fb"> diff --git a/src/app-sdk/sdk-runtime-installer/sdk-package/WindowsMidiServicesSdkRedist.wxs b/src/app-sdk/sdk-runtime-installer/sdk-package/WindowsMidiServicesSdkRedist.wxs index 1c5b7bd4f..43a29ce71 100644 --- a/src/app-sdk/sdk-runtime-installer/sdk-package/WindowsMidiServicesSdkRedist.wxs +++ b/src/app-sdk/sdk-runtime-installer/sdk-package/WindowsMidiServicesSdkRedist.wxs @@ -6,7 +6,7 @@ Name="Windows MIDI Services (App SDK Runtime) $(var.Platform)" Manufacturer="Microsoft Corporation" Version="1.0.0.0" - UpgradeCode="22755cab-e442-4848-a082-51d7fad4848d" + UpgradeCode="297714bb-dd77-4748-a4c1-553ad66da5d0" > @@ -26,7 +26,7 @@ + Guid="7016a59d-d844-4984-93e8-fa53f279abb4"> @@ -56,7 +56,7 @@ + Guid="e14e94ef-1974-43b5-a587-b07ef930143d"> @@ -85,7 +85,7 @@ + Guid="7ce28fd9-252d-4ae7-ad9e-7de049ab6c94"> @@ -115,7 +115,7 @@ + Guid="a10cb6cb-571a-462e-9df7-f388460da50f" > @@ -129,7 +129,7 @@ + Guid="0ce8cde5-b1b8-4825-854d-c31427b91cb5"> diff --git a/src/oob-setup/main-bundle/Bundle.wxs b/src/oob-setup/main-bundle/Bundle.wxs index 074231d65..6900737ba 100644 --- a/src/oob-setup/main-bundle/Bundle.wxs +++ b/src/oob-setup/main-bundle/Bundle.wxs @@ -16,7 +16,7 @@ - diff --git a/src/user-tools/midi-console-setup/console-main-bundle/Bundle.wxs b/src/user-tools/midi-console-setup/console-main-bundle/Bundle.wxs new file mode 100644 index 000000000..c16868a5e --- /dev/null +++ b/src/user-tools/midi-console-setup/console-main-bundle/Bundle.wxs @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/user-tools/midi-console-setup/console-main-bundle/console-bundle.wixproj b/src/user-tools/midi-console-setup/console-main-bundle/console-bundle.wixproj new file mode 100644 index 000000000..d040b0f88 --- /dev/null +++ b/src/user-tools/midi-console-setup/console-main-bundle/console-bundle.wixproj @@ -0,0 +1,25 @@ + + + Bundle + WindowsMidiServicesConsoleSetup + $([System.DateTime]::Now.ToString("yyyyMMddhhmm")) + BuildDate=$(BuildDate) + + + true + + + true + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/user-tools/midi-console-setup/console-main-bundle/midi_installer_logo_square.png b/src/user-tools/midi-console-setup/console-main-bundle/midi_installer_logo_square.png new file mode 100644 index 000000000..b9de34302 Binary files /dev/null and b/src/user-tools/midi-console-setup/console-main-bundle/midi_installer_logo_square.png differ diff --git a/src/user-tools/midi-console-setup/console-package/WindowsMidiServicesConsole.wixpdb b/src/user-tools/midi-console-setup/console-package/WindowsMidiServicesConsole.wixpdb new file mode 100644 index 000000000..c33f849e4 Binary files /dev/null and b/src/user-tools/midi-console-setup/console-package/WindowsMidiServicesConsole.wixpdb differ diff --git a/src/user-tools/midi-console-setup/console-package/WindowsMidiServicesConsole.wxs b/src/user-tools/midi-console-setup/console-package/WindowsMidiServicesConsole.wxs new file mode 100644 index 000000000..abf78f6f3 --- /dev/null +++ b/src/user-tools/midi-console-setup/console-package/WindowsMidiServicesConsole.wxs @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/user-tools/midi-console-setup/console-package/console-package.wixproj b/src/user-tools/midi-console-setup/console-package/console-package.wixproj new file mode 100644 index 000000000..006482aa1 --- /dev/null +++ b/src/user-tools/midi-console-setup/console-package/console-package.wixproj @@ -0,0 +1,17 @@ + + + WindowsMIDIServicesConsoleStandAloneSetup + + + false + true + + + false + true + + + + + + \ No newline at end of file diff --git a/src/user-tools/midi-console-setup/midi-console-setup.sln b/src/user-tools/midi-console-setup/midi-console-setup.sln new file mode 100644 index 000000000..fe2ad6d3b --- /dev/null +++ b/src/user-tools/midi-console-setup/midi-console-setup.sln @@ -0,0 +1,51 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35017.193 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{B7DD6F7E-DEF8-4E67-B5B7-07EF123DB6F0}") = "console-bundle", "console-main-bundle\console-bundle.wixproj", "{FC3C2E59-C242-4CD0-8E22-B613AEB0B208}" +EndProject +Project("{B7DD6F7E-DEF8-4E67-B5B7-07EF123DB6F0}") = "console-package", "console-package\console-package.wixproj", "{7EC61BFB-521E-48D8-AEC6-D23A10A3CEBE}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|ARM64 = Debug|ARM64 + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|ARM64 = Release|ARM64 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {FC3C2E59-C242-4CD0-8E22-B613AEB0B208}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {FC3C2E59-C242-4CD0-8E22-B613AEB0B208}.Debug|ARM64.Build.0 = Debug|ARM64 + {FC3C2E59-C242-4CD0-8E22-B613AEB0B208}.Debug|x64.ActiveCfg = Debug|x64 + {FC3C2E59-C242-4CD0-8E22-B613AEB0B208}.Debug|x64.Build.0 = Debug|x64 + {FC3C2E59-C242-4CD0-8E22-B613AEB0B208}.Debug|x86.ActiveCfg = Debug|x86 + {FC3C2E59-C242-4CD0-8E22-B613AEB0B208}.Debug|x86.Build.0 = Debug|x86 + {FC3C2E59-C242-4CD0-8E22-B613AEB0B208}.Release|ARM64.ActiveCfg = Release|ARM64 + {FC3C2E59-C242-4CD0-8E22-B613AEB0B208}.Release|ARM64.Build.0 = Release|ARM64 + {FC3C2E59-C242-4CD0-8E22-B613AEB0B208}.Release|x64.ActiveCfg = Release|x64 + {FC3C2E59-C242-4CD0-8E22-B613AEB0B208}.Release|x64.Build.0 = Release|x64 + {FC3C2E59-C242-4CD0-8E22-B613AEB0B208}.Release|x86.ActiveCfg = Release|x86 + {FC3C2E59-C242-4CD0-8E22-B613AEB0B208}.Release|x86.Build.0 = Release|x86 + {7EC61BFB-521E-48D8-AEC6-D23A10A3CEBE}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {7EC61BFB-521E-48D8-AEC6-D23A10A3CEBE}.Debug|ARM64.Build.0 = Debug|ARM64 + {7EC61BFB-521E-48D8-AEC6-D23A10A3CEBE}.Debug|x64.ActiveCfg = Debug|x64 + {7EC61BFB-521E-48D8-AEC6-D23A10A3CEBE}.Debug|x64.Build.0 = Debug|x64 + {7EC61BFB-521E-48D8-AEC6-D23A10A3CEBE}.Debug|x86.ActiveCfg = Debug|x86 + {7EC61BFB-521E-48D8-AEC6-D23A10A3CEBE}.Debug|x86.Build.0 = Debug|x86 + {7EC61BFB-521E-48D8-AEC6-D23A10A3CEBE}.Release|ARM64.ActiveCfg = Release|ARM64 + {7EC61BFB-521E-48D8-AEC6-D23A10A3CEBE}.Release|ARM64.Build.0 = Release|ARM64 + {7EC61BFB-521E-48D8-AEC6-D23A10A3CEBE}.Release|x64.ActiveCfg = Release|x64 + {7EC61BFB-521E-48D8-AEC6-D23A10A3CEBE}.Release|x64.Build.0 = Release|x64 + {7EC61BFB-521E-48D8-AEC6-D23A10A3CEBE}.Release|x86.ActiveCfg = Release|x86 + {7EC61BFB-521E-48D8-AEC6-D23A10A3CEBE}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9E79E9E0-D0E6-45E2-91E7-3FDEE7904F90} + EndGlobalSection +EndGlobal diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/README.md b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/README.md similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/README.md rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/README.md diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/Microsoft.Windows.Devices.Midi2.props diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets similarity index 91% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets index 2cdea5d13..199c8ba28 100644 --- a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets +++ b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/Microsoft.Windows.Devices.Midi2.targets @@ -27,8 +27,8 @@ AfterTargets="AfterBuild;AfterRebuild"> - - + + diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ClientPlugins.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Diagnostics.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Initialization.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.Messages.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.ServiceConfig.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/Microsoft.Windows.Devices.Midi2.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.0.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.1.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.2.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.0.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.1.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.2.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.0.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.1.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ClientPlugins.2.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.0.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.1.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Diagnostics.2.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.0.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.1.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.2.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.0.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.1.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.2.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.0.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.1.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Initialization.2.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.0.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.1.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.Messages.2.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.0.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.1.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/build/native/include/midi2/impl/Microsoft.Windows.Devices.Midi2.ServiceConfig.2.h diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd similarity index 96% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd index 7fe83395a..486b0a8df 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd similarity index 98% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd index f8d03b278..9d0730cba 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd similarity index 97% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd index 2b1aa5c4b..01a198130 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd similarity index 97% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd index be3e131b5..787a386a7 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd similarity index 98% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd index 6d1d55bf5..16ae64f4f 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd similarity index 92% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd index 25f462d84..90ffb27c4 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd similarity index 99% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd index 6a4532ab4..81fe5781c 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd similarity index 96% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd index 0d897d0a4..338dafbb1 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd similarity index 99% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd index f10b95cdd..a3aec41fe 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd similarity index 96% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd index 7fe83395a..486b0a8df 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd similarity index 98% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd index f8d03b278..9d0730cba 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd similarity index 97% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd index ed9db7ba8..01a198130 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd similarity index 97% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd index d94c28773..787a386a7 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd similarity index 98% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd index 6d1d55bf5..16ae64f4f 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd similarity index 92% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd index 290e2d6c7..90ffb27c4 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.Messages.winmd similarity index 99% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.Messages.winmd index 43a8b1d39..81fe5781c 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.Messages.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll similarity index 99% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll index 1c963097c..1779e5426 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/net6.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd similarity index 96% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd index 17d899219..338dafbb1 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.winmd similarity index 99% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.winmd index f10b95cdd..a3aec41fe 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net6.0/Microsoft.Windows.Devices.Midi2.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd similarity index 96% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd index 7fa3f53a0..486b0a8df 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd similarity index 98% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd index f8d03b278..9d0730cba 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd similarity index 97% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd index ed9db7ba8..01a198130 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd similarity index 97% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd index be3e131b5..787a386a7 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd similarity index 98% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd index 6d1d55bf5..16ae64f4f 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd similarity index 92% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd index 25f462d84..90ffb27c4 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.Messages.winmd similarity index 99% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.Messages.winmd index 43a8b1d39..81fe5781c 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Messages.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.Messages.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll similarity index 99% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll index 1c963097c..1779e5426 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/net7.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd similarity index 96% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd index 0d897d0a4..338dafbb1 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.winmd similarity index 99% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.winmd index f10b95cdd..a3aec41fe 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net7.0/Microsoft.Windows.Devices.Midi2.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd similarity index 96% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd index 7fa3f53a0..486b0a8df 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd similarity index 98% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd index f8d03b278..9d0730cba 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd similarity index 97% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd index 2b1aa5c4b..01a198130 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd similarity index 97% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd index d94c28773..787a386a7 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd similarity index 98% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd index 6d1d55bf5..16ae64f4f 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd similarity index 92% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd index 290e2d6c7..90ffb27c4 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/ref/native/Microsoft.Windows.Devices.Midi2.Initialization.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.Messages.winmd similarity index 99% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.Messages.winmd index 6a4532ab4..81fe5781c 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.Messages.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll similarity index 99% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll index 1c963097c..1779e5426 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/net8.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd similarity index 96% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd index 17d899219..338dafbb1 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.winmd similarity index 99% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.winmd index f10b95cdd..a3aec41fe 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net8.0/Microsoft.Windows.Devices.Midi2.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd new file mode 100644 index 000000000..486b0a8df Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd new file mode 100644 index 000000000..9d0730cba Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd new file mode 100644 index 000000000..01a198130 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd new file mode 100644 index 000000000..787a386a7 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd new file mode 100644 index 000000000..16ae64f4f Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd new file mode 100644 index 000000000..90ffb27c4 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.Messages.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.Messages.winmd new file mode 100644 index 000000000..81fe5781c Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.Messages.winmd differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll similarity index 99% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll index 1c963097c..1779e5426 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/net9.0-windows10.0.20348.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd new file mode 100644 index 000000000..338dafbb1 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.winmd new file mode 100644 index 000000000..a3aec41fe Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/net9.0/Microsoft.Windows.Devices.Midi2.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd new file mode 100644 index 000000000..486b0a8df Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd new file mode 100644 index 000000000..9d0730cba Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd new file mode 100644 index 000000000..01a198130 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Diagnostics.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd new file mode 100644 index 000000000..787a386a7 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd new file mode 100644 index 000000000..16ae64f4f Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd new file mode 100644 index 000000000..90ffb27c4 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Initialization.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd new file mode 100644 index 000000000..81fe5781c Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.Messages.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd new file mode 100644 index 000000000..338dafbb1 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd new file mode 100644 index 000000000..a3aec41fe Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/ref/uap10.0/Microsoft.Windows.Devices.Midi2.winmd differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll new file mode 100644 index 000000000..55d0c7676 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri new file mode 100644 index 000000000..4af4a0be4 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll new file mode 100644 index 000000000..9610ae222 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri similarity index 60% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.pri rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri index fc8fd508a..efbf4b049 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1521-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.pri and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.dll new file mode 100644 index 000000000..fa4fb354f Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.pri new file mode 100644 index 000000000..999cb8dfa Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll new file mode 100644 index 000000000..9adc5f841 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri new file mode 100644 index 000000000..e45544f7c Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll new file mode 100644 index 000000000..128a4e46d Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri new file mode 100644 index 000000000..4fcb1d74c Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.dll new file mode 100644 index 000000000..e0ffde812 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.dll differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.pri similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.pri rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.pri diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.dll new file mode 100644 index 000000000..55264661a Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.pri new file mode 100644 index 000000000..516db2a4e Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll new file mode 100644 index 000000000..93be5792b Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri new file mode 100644 index 000000000..423fbea31 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.dll new file mode 100644 index 000000000..1e34706a3 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.pri new file mode 100644 index 000000000..2192ad1f6 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net6.0/Microsoft.Windows.Devices.Midi2.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net7.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net7.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll new file mode 100644 index 000000000..1779e5426 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net7.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net8.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net8.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll new file mode 100644 index 000000000..1779e5426 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net8.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net9.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net9.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll new file mode 100644 index 000000000..1779e5426 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/lib/net9.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll new file mode 100644 index 000000000..55d0c7676 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri new file mode 100644 index 000000000..4af4a0be4 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll new file mode 100644 index 000000000..9610ae222 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri new file mode 100644 index 000000000..efbf4b049 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Diagnostics.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Diagnostics.dll new file mode 100644 index 000000000..fa4fb354f Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Diagnostics.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Diagnostics.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Diagnostics.pri new file mode 100644 index 000000000..999cb8dfa Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Diagnostics.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll new file mode 100644 index 000000000..9adc5f841 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri new file mode 100644 index 000000000..e45544f7c Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll new file mode 100644 index 000000000..128a4e46d Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri new file mode 100644 index 000000000..4fcb1d74c Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Initialization.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Initialization.dll new file mode 100644 index 000000000..e0ffde812 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Initialization.dll differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Initialization.pri similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.pri rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Initialization.pri diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Messages.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Messages.dll new file mode 100644 index 000000000..55264661a Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Messages.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Messages.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Messages.pri new file mode 100644 index 000000000..516db2a4e Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.Messages.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll new file mode 100644 index 000000000..93be5792b Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri new file mode 100644 index 000000000..423fbea31 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.dll new file mode 100644 index 000000000..1e34706a3 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.pri new file mode 100644 index 000000000..2192ad1f6 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64/native/Microsoft.Windows.Devices.Midi2.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll new file mode 100644 index 000000000..1cc720d82 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri new file mode 100644 index 000000000..4af4a0be4 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll new file mode 100644 index 000000000..043b34b5e Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri new file mode 100644 index 000000000..efbf4b049 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.dll new file mode 100644 index 000000000..1e9d71bd9 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.pri new file mode 100644 index 000000000..999cb8dfa Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll new file mode 100644 index 000000000..c96b3cc5f Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri new file mode 100644 index 000000000..e45544f7c Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll new file mode 100644 index 000000000..4cb33dd71 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri new file mode 100644 index 000000000..4fcb1d74c Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.dll similarity index 99% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.dll index 3e71dd3a7..e70941e5f 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24171.1740-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.dll differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.pri similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2036-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.pri rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.pri diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.dll new file mode 100644 index 000000000..c177a296e Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.pri new file mode 100644 index 000000000..516db2a4e Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll new file mode 100644 index 000000000..13279bf97 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri new file mode 100644 index 000000000..423fbea31 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.dll new file mode 100644 index 000000000..0772f8326 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.pri new file mode 100644 index 000000000..2192ad1f6 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net6.0/Microsoft.Windows.Devices.Midi2.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net7.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net7.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll new file mode 100644 index 000000000..1779e5426 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net7.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net8.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net8.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll new file mode 100644 index 000000000..1779e5426 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net8.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net9.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net9.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll new file mode 100644 index 000000000..1779e5426 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/lib/net9.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll new file mode 100644 index 000000000..1cc720d82 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri new file mode 100644 index 000000000..4af4a0be4 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll new file mode 100644 index 000000000..043b34b5e Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri new file mode 100644 index 000000000..efbf4b049 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Diagnostics.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Diagnostics.dll new file mode 100644 index 000000000..1e9d71bd9 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Diagnostics.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Diagnostics.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Diagnostics.pri new file mode 100644 index 000000000..999cb8dfa Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Diagnostics.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll new file mode 100644 index 000000000..c96b3cc5f Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri new file mode 100644 index 000000000..e45544f7c Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll new file mode 100644 index 000000000..4cb33dd71 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri new file mode 100644 index 000000000..4fcb1d74c Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Initialization.dll similarity index 99% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Initialization.dll index 3e71dd3a7..e70941e5f 100644 Binary files a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24172.2018-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.dll and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Initialization.dll differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Initialization.pri similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1413-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.pri rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Initialization.pri diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Messages.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Messages.dll new file mode 100644 index 000000000..c177a296e Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Messages.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Messages.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Messages.pri new file mode 100644 index 000000000..516db2a4e Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.Messages.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll new file mode 100644 index 000000000..13279bf97 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri new file mode 100644 index 000000000..423fbea31 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.dll new file mode 100644 index 000000000..0772f8326 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.pri new file mode 100644 index 000000000..2192ad1f6 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-arm64ec/native/Microsoft.Windows.Devices.Midi2.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll new file mode 100644 index 000000000..b75b493f5 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri new file mode 100644 index 000000000..4af4a0be4 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll new file mode 100644 index 000000000..df1170424 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri new file mode 100644 index 000000000..efbf4b049 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.dll new file mode 100644 index 000000000..14c35c408 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.pri new file mode 100644 index 000000000..999cb8dfa Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Diagnostics.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll new file mode 100644 index 000000000..a4add17f5 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri new file mode 100644 index 000000000..e45544f7c Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll new file mode 100644 index 000000000..e8108ee1e Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri new file mode 100644 index 000000000..4fcb1d74c Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.dll new file mode 100644 index 000000000..d43d36091 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.dll differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.pri similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1445-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.pri rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Initialization.pri diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.dll new file mode 100644 index 000000000..a9c22ec1a Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.pri new file mode 100644 index 000000000..516db2a4e Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.Messages.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll new file mode 100644 index 000000000..a01f9420e Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri new file mode 100644 index 000000000..423fbea31 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.dll new file mode 100644 index 000000000..e92b05d8a Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.pri new file mode 100644 index 000000000..2192ad1f6 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net6.0/Microsoft.Windows.Devices.Midi2.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net7.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net7.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll new file mode 100644 index 000000000..1779e5426 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net7.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net8.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net8.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll new file mode 100644 index 000000000..1779e5426 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net8.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net9.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net9.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll new file mode 100644 index 000000000..1779e5426 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/lib/net9.0/Microsoft.Windows.Devices.Midi2.NetProjection.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll new file mode 100644 index 000000000..b75b493f5 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri new file mode 100644 index 000000000..4af4a0be4 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.CapabilityInquiry.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll new file mode 100644 index 000000000..df1170424 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri new file mode 100644 index 000000000..efbf4b049 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.ClientPlugins.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Diagnostics.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Diagnostics.dll new file mode 100644 index 000000000..14c35c408 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Diagnostics.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Diagnostics.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Diagnostics.pri new file mode 100644 index 000000000..999cb8dfa Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Diagnostics.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll new file mode 100644 index 000000000..a4add17f5 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri new file mode 100644 index 000000000..e45544f7c Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Loopback.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll new file mode 100644 index 000000000..e8108ee1e Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri new file mode 100644 index 000000000..4fcb1d74c Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Endpoints.Virtual.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Initialization.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Initialization.dll new file mode 100644 index 000000000..d43d36091 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Initialization.dll differ diff --git a/samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Initialization.pri similarity index 100% rename from samples/cpp-winrt/Microsoft.Windows.Devices.Midi2.1.0.24173.1517-preview.6/lib/native/Arm64EC/Microsoft.Windows.Devices.Midi2.Initialization.pri rename to src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Initialization.pri diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Messages.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Messages.dll new file mode 100644 index 000000000..a9c22ec1a Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Messages.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Messages.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Messages.pri new file mode 100644 index 000000000..516db2a4e Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.Messages.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll new file mode 100644 index 000000000..a01f9420e Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri new file mode 100644 index 000000000..423fbea31 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.ServiceConfig.pri differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.dll b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.dll new file mode 100644 index 000000000..e92b05d8a Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.dll differ diff --git a/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.pri b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.pri new file mode 100644 index 000000000..2192ad1f6 Binary files /dev/null and b/src/user-tools/midi-console/Microsoft.Windows.Devices.Midi2.1.0.24182.1446-preview.6/runtimes/win-x64/native/Microsoft.Windows.Devices.Midi2.pri differ diff --git a/src/user-tools/midi-console/Midi/Commands/DiagnosticsReportCommand.cs b/src/user-tools/midi-console/Midi/Commands/DiagnosticsReportCommand.cs index 89a90f978..6fab1c323 100644 --- a/src/user-tools/midi-console/Midi/Commands/DiagnosticsReportCommand.cs +++ b/src/user-tools/midi-console/Midi/Commands/DiagnosticsReportCommand.cs @@ -8,6 +8,8 @@ +using Microsoft.Windows.Devices.Midi2.Initialization; + namespace Microsoft.Midi.ConsoleApp { // commands to check the health of Windows MIDI Services on this PC @@ -37,7 +39,7 @@ public override ValidationResult Validate(CommandContext context, Settings setti public override int Execute(CommandContext context, Settings settings) { - if (!MidiService.EnsureServiceAvailable()) + if (!MidiServicesInitializer.EnsureServiceAvailable()) { AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatError("MIDI Service is not available.")); return (int)MidiConsoleReturnCode.ErrorServiceNotAvailable; diff --git a/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointMonitorCommand.cs b/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointMonitorCommand.cs index 0b4da0fdb..944e576b7 100644 --- a/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointMonitorCommand.cs +++ b/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointMonitorCommand.cs @@ -8,6 +8,7 @@ +using Microsoft.Windows.Devices.Midi2.Initialization; using Microsoft.Windows.Devices.Midi2.Messages; namespace Microsoft.Midi.ConsoleApp @@ -121,11 +122,11 @@ private void MonitorEndpointConnectionStatusInTheBackground(string endpointId) { var deviceWatcherThread = new Thread(() => { - var watcher = MidiEndpointDeviceWatcher.CreateWatcher( - MidiEndpointDeviceInformationFilters.IncludeDiagnosticLoopback | - MidiEndpointDeviceInformationFilters.IncludeClientUmpNative | - MidiEndpointDeviceInformationFilters.IncludeVirtualDeviceResponder | - MidiEndpointDeviceInformationFilters.IncludeClientByteStreamNative + var watcher = MidiEndpointDeviceWatcher.Create( + MidiEndpointDeviceInformationFilters.DiagnosticLoopback | + MidiEndpointDeviceInformationFilters.StandardNativeUniversalMidiPacketFormat | + MidiEndpointDeviceInformationFilters.VirtualDeviceResponder | + MidiEndpointDeviceInformationFilters.StandardNativeMidi1ByteFormat ); @@ -159,7 +160,7 @@ private void MonitorEndpointConnectionStatusInTheBackground(string endpointId) public override int Execute(CommandContext context, Settings settings) { - if (!MidiService.EnsureServiceAvailable()) + if (!MidiServicesInitializer.EnsureServiceAvailable()) { AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatError("MIDI Service is not available.")); return (int)MidiConsoleReturnCode.ErrorServiceNotAvailable; diff --git a/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointPropertiesCommand.cs b/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointPropertiesCommand.cs index 8d5452631..4fb5f7e45 100644 --- a/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointPropertiesCommand.cs +++ b/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointPropertiesCommand.cs @@ -8,6 +8,8 @@ +using Microsoft.Windows.Devices.Midi2.Initialization; + namespace Microsoft.Midi.ConsoleApp { @@ -39,7 +41,7 @@ public override Spectre.Console.ValidationResult Validate(CommandContext context public override int Execute(CommandContext context, Settings settings) { - if (!MidiService.EnsureServiceAvailable()) + if (!MidiServicesInitializer.EnsureServiceAvailable()) { AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatError("MIDI Service is not available.")); return (int)MidiConsoleReturnCode.ErrorServiceNotAvailable; @@ -114,11 +116,11 @@ public override int Execute(CommandContext context, Settings settings) // data format - if (transportSuppliedInfo.NativeDataFormat == MidiEndpointNativeDataFormat.UniversalMidiPacket) + if (transportSuppliedInfo.NativeDataFormat == MidiEndpointNativeDataFormat.UniversalMidiPacketFormat) { table.AddRow(Strings.PropertiesTablePropertyLabelNativeDataFormat, Strings.PropertyValueNativeDataFormatUmp); } - else if (transportSuppliedInfo.NativeDataFormat == MidiEndpointNativeDataFormat.ByteStream) + else if (transportSuppliedInfo.NativeDataFormat == MidiEndpointNativeDataFormat.Midi1ByteFormat) { table.AddRow(Strings.PropertiesTablePropertyLabelNativeDataFormat, Strings.PropertyValueNativeDataFormatByteStream); } @@ -140,7 +142,7 @@ public override int Execute(CommandContext context, Settings settings) // we only show protocol negotiation stuff if we're native UMP - if (transportSuppliedInfo.NativeDataFormat == MidiEndpointNativeDataFormat.UniversalMidiPacket) + if (transportSuppliedInfo.NativeDataFormat == MidiEndpointNativeDataFormat.UniversalMidiPacketFormat) { if (settings.Verbose) { @@ -191,7 +193,7 @@ public override int Execute(CommandContext context, Settings settings) - if (transportSuppliedInfo.NativeDataFormat == MidiEndpointNativeDataFormat.UniversalMidiPacket) + if (transportSuppliedInfo.NativeDataFormat == MidiEndpointNativeDataFormat.UniversalMidiPacketFormat) { table.AddEmptyRow(); table.AddRow(AnsiMarkupFormatter.FormatTableColumnHeading(Strings.PropertyTableSectionHeaderActiveConfiguration), ""); @@ -221,12 +223,12 @@ public override int Execute(CommandContext context, Settings settings) table.AddRow(AnsiMarkupFormatter.FormatPropertySectionDescription(Strings.PropertyTableSectionDescriptionTransportInformation), ""); table.AddRow(Strings.PropertyTablePropertyLabelTransportSuppliedName, AnsiMarkupFormatter.FormatEndpointName(transportSuppliedInfo.Name)); table.AddRow(Strings.PropertyTablePropertyLabelTransportId, AnsiMarkupFormatter.EscapeString(transportSuppliedInfo.TransportId.ToString())); - table.AddRow(Strings.PropertyTablePropertyLabelTransportMnemonic, AnsiMarkupFormatter.EscapeString(transportSuppliedInfo.TransportMnemonic)); + table.AddRow(Strings.PropertyTablePropertyLabelTransportMnemonic, AnsiMarkupFormatter.EscapeString(transportSuppliedInfo.TransportAbbreviation)); } table.AddEmptyRow(); - if (transportSuppliedInfo.NativeDataFormat == MidiEndpointNativeDataFormat.UniversalMidiPacket) + if (transportSuppliedInfo.NativeDataFormat == MidiEndpointNativeDataFormat.UniversalMidiPacketFormat) { table.AddEmptyRow(); table.AddRow(AnsiMarkupFormatter.FormatTableColumnHeading(Strings.PropertyTableSectionHeaderFunctionBlocks), ""); diff --git a/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointSendMessageCommand.cs b/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointSendMessageCommand.cs index 7715adae6..c497a4b74 100644 --- a/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointSendMessageCommand.cs +++ b/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointSendMessageCommand.cs @@ -7,19 +7,22 @@ // ============================================================================ +using Microsoft.Windows.Devices.Midi2.Initialization; using Microsoft.Windows.Devices.Midi2.Messages; namespace Microsoft.Midi.ConsoleApp { internal class EndpointSendMessageCommand : Command { + private UInt32[]? _parsedWords; + public sealed class Settings : SendMessageCommandSettings { // Would be better to remove this and just do an enumeration lookup to see what type of endpoint it is [LocalizedDescription("ParameterSendMessageWords")] [CommandArgument(1, "")] - public UInt32[]? Words { get; set; } + public string[]? Words { get; set; } [LocalizedDescription("ParameterSendMessageCount")] [CommandOption("-c|--count")] @@ -46,33 +49,79 @@ public sealed class Settings : SendMessageCommandSettings public override Spectre.Console.ValidationResult Validate(CommandContext context, Settings settings) { - if (settings.TimestampOffsetMicroseconds > 0 && settings.Timestamp != null) + if (settings.Words != null) { - // TODO: Localize - return Spectre.Console.ValidationResult.Error("Please specify a timestamp or an offset, but not both."); - } + _parsedWords = new UInt32[settings.Words.Length]; - if (settings.Words == null) - { - return Spectre.Console.ValidationResult.Error(Strings.MessageValidationErrorTooFewWords); - } - if (settings.Words.Length == 0) - { - return Spectre.Console.ValidationResult.Error(Strings.MessageValidationErrorTooFewWords); - } - else if (settings.Words.Length > 4) - { - return Spectre.Console.ValidationResult.Error(Strings.MessageValidationErrorTooManyWords); - } - else if (!ValidateMessage(settings.Words)) - { - return Spectre.Console.ValidationResult.Error(Strings.MessageValidationErrorInvalidUmp); - } + for (int i = 0; i < settings.Words.Length; i++) + { + UInt32 word = 0; + + string w = settings.Words[i]; + + if (w.ToLower().StartsWith("0x")) + { + // hex, but the globalization setting doesn't like this prefix + w = w.Substring(2); + word = UInt32.Parse(w, System.Globalization.NumberStyles.HexNumber); + _parsedWords![i] = word; + } + else if (w.ToLower().StartsWith("0b")) + { + // binary, but the globalization setting doesn't like this prefix + w = w.Substring(2); + word = UInt32.Parse(w, System.Globalization.NumberStyles.BinaryNumber); + _parsedWords![i] = word; + } + else if (settings.WordDataFormat == MidiWordDataFormat.Hex) + { + if (w.ToLower().StartsWith("0x")) w = w.Substring(2); + word = UInt32.Parse(w, System.Globalization.NumberStyles.HexNumber); + _parsedWords![i] = word; + } + else if (settings.WordDataFormat == MidiWordDataFormat.Binary) + { + if (w.ToLower().StartsWith("0b")) w = w.Substring(2); + + word = UInt32.Parse(w, System.Globalization.NumberStyles.BinaryNumber); + _parsedWords![i] = word; + } + else if (settings.WordDataFormat == MidiWordDataFormat.Decimal) + { + word = UInt32.Parse(w, System.Globalization.NumberStyles.Number); + _parsedWords![i] = word; + } + + } + + if (settings.TimestampOffsetMicroseconds > 0 && settings.Timestamp != null) + { + // TODO: Localize + return Spectre.Console.ValidationResult.Error("Please specify a timestamp or an offset, but not both."); + } + + if (_parsedWords!.Length == 0) + { + return Spectre.Console.ValidationResult.Error(Strings.MessageValidationErrorTooFewWords); + } + else if (_parsedWords!.Length > 4) + { + return Spectre.Console.ValidationResult.Error(Strings.MessageValidationErrorTooManyWords); + } + else if (!ValidateMessage(_parsedWords)) + { + return Spectre.Console.ValidationResult.Error(Strings.MessageValidationErrorInvalidUmp); + } - if (settings.Count < 1) + if (settings.Count < 1) + { + return Spectre.Console.ValidationResult.Error(Strings.ValidationErrorInvalidMessageCount); + } + } + else { - return Spectre.Console.ValidationResult.Error(Strings.ValidationErrorInvalidMessageCount); + return Spectre.Console.ValidationResult.Error(Strings.MessageValidationErrorTooFewWords); } return base.Validate(context, settings); @@ -94,7 +143,7 @@ private bool ValidateMessage(UInt32[] words) public override int Execute(CommandContext context, Settings settings) { - if (!MidiService.EnsureServiceAvailable()) + if (!MidiServicesInitializer.EnsureServiceAvailable()) { AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatError("MIDI Service is not available.")); return (int)MidiConsoleReturnCode.ErrorServiceNotAvailable; @@ -192,14 +241,14 @@ public override int Execute(CommandContext context, Settings settings) // the debug auto increment - if (settings.Words!.Count() > 1 && settings.DebugAutoIncrementLastWord) + if (_parsedWords!.Count() > 1 && settings.DebugAutoIncrementLastWord) { - settings.Words![settings.Words!.Count() - 1] = (settings.Words![settings.Words!.Count() - 1] + 1) % UInt32.MaxValue; + _parsedWords![_parsedWords!.Count() - 1] = (_parsedWords![_parsedWords!.Count() - 1] + 1) % UInt32.MaxValue; } messagesAttempted++; - var sendResult = connection.SendSingleMessageWordArray(timestamp, 0, (byte)settings.Words!.Count(), settings.Words); + var sendResult = connection.SendSingleMessageWordArray(timestamp, 0, (byte)_parsedWords!.Count(), _parsedWords); if (MidiEndpointConnection.SendMessageSucceeded(sendResult)) { @@ -232,57 +281,65 @@ public override int Execute(CommandContext context, Settings settings) }); - // const uint bufferWarningThreshold = 10000; + // const uint bufferWarningThreshold = 10000; + if (settings.Count == 1) + { + messageSenderThread.Start(); - AnsiConsole.Progress() - .Start(ctx => + while (messagesAttempted < 1) { - //if (settings.DelayBetweenMessages == 0 && (settings.Count * (settings.Words!.Length + 2)) > bufferWarningThreshold) - //{ - // AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatWarning(Strings.SendMessageFloodWarning)); - // AnsiConsole.WriteLine(); - //} - - var sendTask = ctx.AddTask("[white]Sending messages[/]"); - sendTask.MaxValue = settings.Count; - sendTask.Value = 0; - - messageSenderThread.Start(); + Thread.Sleep(100); + } + } + else + { + AnsiConsole.Progress() + .Start(ctx => + { + var sendTask = ctx.AddTask("[white]Sending messages[/]"); + sendTask.MaxValue = settings.Count; + sendTask.Value = 0; + messageSenderThread.Start(); - AnsiConsole.MarkupLine(Strings.SendMessagePressEscapeToStopSendingMessage); - AnsiConsole.WriteLine(); - while (stillSending) - { - // check for input + if (settings.Count > 1) + { + AnsiConsole.MarkupLine(Strings.SendMessagePressEscapeToStopSendingMessage); + AnsiConsole.WriteLine(); + } - if (Console.KeyAvailable) + while (stillSending) { - var keyInfo = Console.ReadKey(true); + // check for input - if (keyInfo.Key == ConsoleKey.Escape) + if (Console.KeyAvailable) { - stillSending = false; + var keyInfo = Console.ReadKey(true); + + if (keyInfo.Key == ConsoleKey.Escape) + { + stillSending = false; + + // wake up the threads so they terminate + m_messageDispatcherThreadWakeup.Set(); - // wake up the threads so they terminate - m_messageDispatcherThreadWakeup.Set(); + AnsiConsole.WriteLine(); + AnsiConsole.MarkupLine("🛑 " + Strings.SendMessageEscapePressedMessage); + } - AnsiConsole.WriteLine(); - AnsiConsole.MarkupLine("🛑 " + Strings.SendMessageEscapePressedMessage); } + sendTask.Value = messagesSent; + ctx.Refresh(); + + if (stillSending) Thread.Sleep(100); } sendTask.Value = messagesSent; - ctx.Refresh(); - - if (stillSending) Thread.Sleep(100); - } - - sendTask.Value = messagesSent; - }); + }); + } if (messageFailures > 0) { @@ -291,18 +348,25 @@ public override int Execute(CommandContext context, Settings settings) } else { - // todo: localize - if (settings.DelayBetweenMessages > 0) + if (settings.Count > 1) { - AnsiConsole.MarkupLine($"Sent [steelblue1]{messagesSent.ToString("N0")}[/] message(s) with a delay of approximately [steelblue1]{settings.DelayBetweenMessages.ToString("N0")} ms[/] between each."); + // todo: localize + if (settings.DelayBetweenMessages > 0) + { + AnsiConsole.MarkupLine($"Sent [steelblue1]{messagesSent.ToString("N0")}[/] message(s) with a delay of approximately [steelblue1]{settings.DelayBetweenMessages.ToString("N0")} ms[/] between each."); + } + else + { + AnsiConsole.MarkupLine($"Sent [steelblue1]{messagesSent.ToString("N0")}[/] message(s)."); + } } else { - AnsiConsole.MarkupLine($"Sent [steelblue1]{messagesSent.ToString("N0")}[/] message(s)."); + AnsiConsole.MarkupLine($"Sent [steelblue1]1[/] message."); } } - if (messagesSent > 0 && messageSendingFinishTimestamp >= messageSendingStartTimestamp) + if (messagesSent > 1 && messageSendingFinishTimestamp >= messageSendingStartTimestamp) { // calculate total send time, not total display time diff --git a/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointSendMessagesFileCommand.cs b/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointSendMessagesFileCommand.cs index 29fbc95dc..397a5ebe8 100644 --- a/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointSendMessagesFileCommand.cs +++ b/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointSendMessagesFileCommand.cs @@ -8,6 +8,7 @@ +using Microsoft.Windows.Devices.Midi2.Initialization; using Microsoft.Windows.Devices.Midi2.Messages; namespace Microsoft.Midi.ConsoleApp @@ -82,7 +83,7 @@ private bool ValidateMessage(UInt32[]? words) public override int Execute(CommandContext context, Settings settings) { - if (!MidiService.EnsureServiceAvailable()) + if (!MidiServicesInitializer.EnsureServiceAvailable()) { AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatError("MIDI Service is not available.")); return (int)MidiConsoleReturnCode.ErrorServiceNotAvailable; diff --git a/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointUpdateCommand.cs b/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointUpdateCommand.cs index 69b3ae9b8..51698a3ba 100644 --- a/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointUpdateCommand.cs +++ b/src/user-tools/midi-console/Midi/Commands/Endpoint/EndpointUpdateCommand.cs @@ -8,6 +8,8 @@ +using Microsoft.Windows.Devices.Midi2.Initialization; + namespace Microsoft.Midi.ConsoleApp { internal class EndpointUpdateCommand : Command @@ -21,7 +23,7 @@ public sealed class Settings : EndpointCommandSettings public override int Execute(CommandContext context, Settings settings) { - if (!MidiService.EnsureServiceAvailable()) + if (!MidiServicesInitializer.EnsureServiceAvailable()) { AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatError("MIDI Service is not available.")); return (int)MidiConsoleReturnCode.ErrorServiceNotAvailable; diff --git a/src/user-tools/midi-console/Midi/Commands/Endpoint/Request/EndpointRequestEndpointMetadataCommand.cs b/src/user-tools/midi-console/Midi/Commands/Endpoint/Request/EndpointRequestEndpointMetadataCommand.cs index c8821b98e..d9d9b3e57 100644 --- a/src/user-tools/midi-console/Midi/Commands/Endpoint/Request/EndpointRequestEndpointMetadataCommand.cs +++ b/src/user-tools/midi-console/Midi/Commands/Endpoint/Request/EndpointRequestEndpointMetadataCommand.cs @@ -8,6 +8,7 @@ +using Microsoft.Windows.Devices.Midi2.Initialization; using Microsoft.Windows.Devices.Midi2.Messages; namespace Microsoft.Midi.ConsoleApp @@ -71,7 +72,7 @@ public override Spectre.Console.ValidationResult Validate(CommandContext context public override int Execute(CommandContext context, Settings settings) { - if (!MidiService.EnsureServiceAvailable()) + if (!MidiServicesInitializer.EnsureServiceAvailable()) { AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatError("MIDI Service is not available.")); return (int)MidiConsoleReturnCode.ErrorServiceNotAvailable; diff --git a/src/user-tools/midi-console/Midi/Commands/Endpoint/Request/EndpointRequestFunctionBlocksCommand.cs b/src/user-tools/midi-console/Midi/Commands/Endpoint/Request/EndpointRequestFunctionBlocksCommand.cs index 63a1ef402..a29675ce3 100644 --- a/src/user-tools/midi-console/Midi/Commands/Endpoint/Request/EndpointRequestFunctionBlocksCommand.cs +++ b/src/user-tools/midi-console/Midi/Commands/Endpoint/Request/EndpointRequestFunctionBlocksCommand.cs @@ -8,6 +8,7 @@ +using Microsoft.Windows.Devices.Midi2.Initialization; using Microsoft.Windows.Devices.Midi2.Messages; namespace Microsoft.Midi.ConsoleApp @@ -64,7 +65,7 @@ public override Spectre.Console.ValidationResult Validate(CommandContext context public override int Execute(CommandContext context, Settings settings) { - if (!MidiService.EnsureServiceAvailable()) + if (!MidiServicesInitializer.EnsureServiceAvailable()) { AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatError("MIDI Service is not available.")); return (int)MidiConsoleReturnCode.ErrorServiceNotAvailable; diff --git a/src/user-tools/midi-console/Midi/Commands/Enumerate/EnumActiveSessionsCommand.cs b/src/user-tools/midi-console/Midi/Commands/Enumerate/EnumActiveSessionsCommand.cs index d579e4ff4..54ac0ad22 100644 --- a/src/user-tools/midi-console/Midi/Commands/Enumerate/EnumActiveSessionsCommand.cs +++ b/src/user-tools/midi-console/Midi/Commands/Enumerate/EnumActiveSessionsCommand.cs @@ -6,6 +6,8 @@ // Further information: https://aka.ms/midi // ============================================================================ +using Microsoft.Windows.Devices.Midi2.Initialization; + namespace Microsoft.Midi.ConsoleApp { internal class EnumActiveSessionsCommand : Command @@ -16,7 +18,7 @@ public sealed class Settings : CommandSettings public override int Execute(CommandContext context, Settings settings) { - if (!MidiService.EnsureServiceAvailable()) + if (!MidiServicesInitializer.EnsureServiceAvailable()) { AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatError("MIDI Service is not available.")); return (int)MidiConsoleReturnCode.ErrorServiceNotAvailable; diff --git a/src/user-tools/midi-console/Midi/Commands/Enumerate/EnumEndpointsCommand.cs b/src/user-tools/midi-console/Midi/Commands/Enumerate/EnumEndpointsCommand.cs index 94abcb7f2..5f59af066 100644 --- a/src/user-tools/midi-console/Midi/Commands/Enumerate/EnumEndpointsCommand.cs +++ b/src/user-tools/midi-console/Midi/Commands/Enumerate/EnumEndpointsCommand.cs @@ -8,6 +8,7 @@ +using Microsoft.Windows.Devices.Midi2.Initialization; using Spectre.Console; namespace Microsoft.Midi.ConsoleApp @@ -43,7 +44,7 @@ public override int Execute(CommandContext context, Settings settings) { bool atLeastOneEndpointFound = false; - if (!MidiService.EnsureServiceAvailable()) + if (!MidiServicesInitializer.EnsureServiceAvailable()) { AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatError("MIDI Service is not available.")); return (int)MidiConsoleReturnCode.ErrorServiceNotAvailable; @@ -76,21 +77,21 @@ public override int Execute(CommandContext context, Settings settings) } MidiEndpointDeviceInformationFilters filter = - MidiEndpointDeviceInformationFilters.IncludeClientByteStreamNative | - MidiEndpointDeviceInformationFilters.IncludeClientUmpNative; + MidiEndpointDeviceInformationFilters.StandardNativeMidi1ByteFormat | + MidiEndpointDeviceInformationFilters.StandardNativeUniversalMidiPacketFormat; if (settings.IncludeAll) { filter = - MidiEndpointDeviceInformationFilters.IncludeClientByteStreamNative | - MidiEndpointDeviceInformationFilters.IncludeClientUmpNative | - MidiEndpointDeviceInformationFilters.IncludeDiagnosticLoopback | - MidiEndpointDeviceInformationFilters.IncludeDiagnosticPing | - MidiEndpointDeviceInformationFilters.IncludeVirtualDeviceResponder; + MidiEndpointDeviceInformationFilters.StandardNativeMidi1ByteFormat | + MidiEndpointDeviceInformationFilters.StandardNativeUniversalMidiPacketFormat | + MidiEndpointDeviceInformationFilters.DiagnosticLoopback | + MidiEndpointDeviceInformationFilters.DiagnosticPing | + MidiEndpointDeviceInformationFilters.VirtualDeviceResponder; } else if (settings.IncludeDiagnosticLoopback) { - filter |= MidiEndpointDeviceInformationFilters.IncludeDiagnosticLoopback; + filter |= MidiEndpointDeviceInformationFilters.DiagnosticLoopback; } var endpoints = MidiEndpointDeviceInformation.FindAll( diff --git a/src/user-tools/midi-console/Midi/Commands/Enumerate/EnumTransportsCommand.cs b/src/user-tools/midi-console/Midi/Commands/Enumerate/EnumTransportsCommand.cs index 3c797a62a..976b8e975 100644 --- a/src/user-tools/midi-console/Midi/Commands/Enumerate/EnumTransportsCommand.cs +++ b/src/user-tools/midi-console/Midi/Commands/Enumerate/EnumTransportsCommand.cs @@ -8,6 +8,8 @@ +using Microsoft.Windows.Devices.Midi2.Initialization; + namespace Microsoft.Midi.ConsoleApp { internal class EnumTransportsCommand : Command @@ -23,7 +25,7 @@ public sealed class Settings : CommandSettings public override int Execute(CommandContext context, Settings settings) { - if (!MidiService.EnsureServiceAvailable()) + if (!MidiServicesInitializer.EnsureServiceAvailable()) { AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatError("MIDI Service is not available.")); return (int)MidiConsoleReturnCode.ErrorServiceNotAvailable; @@ -49,7 +51,7 @@ public override int Execute(CommandContext context, Settings settings) foreach (var transport in transportList) { table.AddRow( - $"{AnsiMarkupFormatter.FormatTransportName(transport.Name)} ({AnsiMarkupFormatter.FormatTransportMnemonic(transport.Mnemonic)}) Version {AnsiMarkupFormatter.FormatTransportVersion(transport.Version)}" + $"{AnsiMarkupFormatter.FormatTransportName(transport.Name)} ({AnsiMarkupFormatter.FormatTransportMnemonic(transport.Abbreviation)}) Version {AnsiMarkupFormatter.FormatTransportVersion(transport.Version)}" ); table.AddRow( diff --git a/src/user-tools/midi-console/Midi/Commands/Interactive Simulation/InteractiveEndpointCommand.cs b/src/user-tools/midi-console/Midi/Commands/Interactive Simulation/InteractiveEndpointCommand.cs index b67515ffc..f3a9b0982 100644 --- a/src/user-tools/midi-console/Midi/Commands/Interactive Simulation/InteractiveEndpointCommand.cs +++ b/src/user-tools/midi-console/Midi/Commands/Interactive Simulation/InteractiveEndpointCommand.cs @@ -8,6 +8,8 @@ +using Microsoft.Windows.Devices.Midi2.Initialization; + namespace Microsoft.Midi.ConsoleApp { @@ -47,7 +49,7 @@ public override Spectre.Console.ValidationResult Validate(CommandContext context public override int Execute(CommandContext context, Settings settings) { - if (!MidiService.EnsureServiceAvailable()) + if (!MidiServicesInitializer.EnsureServiceAvailable()) { AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatError("MIDI Service is not available.")); return (int)MidiConsoleReturnCode.ErrorServiceNotAvailable; diff --git a/src/user-tools/midi-console/Midi/Commands/Service/ServicePingCommand.cs b/src/user-tools/midi-console/Midi/Commands/Service/ServicePingCommand.cs index 800c89856..72de0bfad 100644 --- a/src/user-tools/midi-console/Midi/Commands/Service/ServicePingCommand.cs +++ b/src/user-tools/midi-console/Midi/Commands/Service/ServicePingCommand.cs @@ -7,6 +7,8 @@ // ============================================================================ +using Microsoft.Windows.Devices.Midi2.Initialization; + namespace Microsoft.Midi.ConsoleApp { // commands to check the health of Windows MIDI Services on this PC @@ -59,7 +61,7 @@ public override Spectre.Console.ValidationResult Validate(CommandContext context public override int Execute(CommandContext context, Settings settings) { - if (!MidiService.EnsureServiceAvailable()) + if (!MidiServicesInitializer.EnsureServiceAvailable()) { AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatError("MIDI Service is not available.")); return (int)MidiConsoleReturnCode.ErrorServiceNotAvailable; diff --git a/src/user-tools/midi-console/Midi/Commands/Service/ServiceStatusCommand.cs b/src/user-tools/midi-console/Midi/Commands/Service/ServiceStatusCommand.cs index 802d854d8..e5e9457d3 100644 --- a/src/user-tools/midi-console/Midi/Commands/Service/ServiceStatusCommand.cs +++ b/src/user-tools/midi-console/Midi/Commands/Service/ServiceStatusCommand.cs @@ -6,6 +6,7 @@ // Further information: https://aka.ms/midi // ============================================================================ +using Microsoft.Windows.Devices.Midi2.Initialization; using System.Management; using System.ServiceProcess; @@ -32,7 +33,7 @@ public override int Execute(CommandContext context, Settings settings) // check to see if the service is running. // NOTE: Equivalent code can't be moved to the SDK due to Desktop/WinRT limitations. - if (MidiService.EnsureServiceAvailable()) + if (MidiServicesInitializer.EnsureServiceAvailable()) { AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatSuccess("Service reported as available by API.")); } diff --git a/src/user-tools/midi-console/Midi/Commands/Watcher/WatchEndpointsCommand.cs b/src/user-tools/midi-console/Midi/Commands/Watcher/WatchEndpointsCommand.cs index 325333f8e..af58574f8 100644 --- a/src/user-tools/midi-console/Midi/Commands/Watcher/WatchEndpointsCommand.cs +++ b/src/user-tools/midi-console/Midi/Commands/Watcher/WatchEndpointsCommand.cs @@ -6,6 +6,8 @@ // Further information: https://aka.ms/midi // ============================================================================ +using Microsoft.Windows.Devices.Midi2.Initialization; + namespace Microsoft.Midi.ConsoleApp { internal class WatchEndpointsCommand : Command @@ -22,7 +24,7 @@ internal class Settings : CommandSettings public override int Execute(CommandContext context, Settings settings) { - if (!MidiService.EnsureServiceAvailable()) + if (!MidiServicesInitializer.EnsureServiceAvailable()) { AnsiConsole.MarkupLine(AnsiMarkupFormatter.FormatError("MIDI Service is not available.")); return (int)MidiConsoleReturnCode.ErrorServiceNotAvailable; @@ -30,16 +32,16 @@ public override int Execute(CommandContext context, Settings settings) MidiEndpointDeviceInformationFilters filter = - MidiEndpointDeviceInformationFilters.IncludeClientUmpNative | - MidiEndpointDeviceInformationFilters.IncludeClientByteStreamNative | - MidiEndpointDeviceInformationFilters.IncludeVirtualDeviceResponder; + MidiEndpointDeviceInformationFilters.StandardNativeUniversalMidiPacketFormat | + MidiEndpointDeviceInformationFilters.StandardNativeMidi1ByteFormat | + MidiEndpointDeviceInformationFilters.VirtualDeviceResponder; if (settings.IncludeDiagnosticLoopback) { - filter |= MidiEndpointDeviceInformationFilters.IncludeDiagnosticLoopback; + filter |= MidiEndpointDeviceInformationFilters.DiagnosticLoopback; } - _watcher = MidiEndpointDeviceWatcher.CreateWatcher(filter); + _watcher = MidiEndpointDeviceWatcher.Create(filter); _watcher.Added += OnWatcherDeviceAdded; diff --git a/src/user-tools/midi-console/Midi/Global.cs b/src/user-tools/midi-console/Midi/Global.cs index b09aa8e52..8fa034ba2 100644 --- a/src/user-tools/midi-console/Midi/Global.cs +++ b/src/user-tools/midi-console/Midi/Global.cs @@ -14,7 +14,7 @@ global using Spectre.Console; global using Spectre.Console.Cli; -global using Microsoft.Windows.Devices.Midi2.Service; +global using Microsoft.Windows.Devices.Midi2.Initialization; global using Microsoft.Windows.Devices.Midi2; global using Microsoft.Windows.Devices.Midi2.Diagnostics; diff --git a/src/user-tools/midi-console/Midi/Midi.csproj b/src/user-tools/midi-console/Midi/Midi.csproj index 58136d05b..167e32e0d 100644 --- a/src/user-tools/midi-console/Midi/Midi.csproj +++ b/src/user-tools/midi-console/Midi/Midi.csproj @@ -8,26 +8,34 @@ midi Microsoft.Midi.ConsoleApp - + x64, arm64 False - true - true - False + false + false + false + false + false + ARM64;x64 - + win-x64;win-arm64 + + true - - true - False + midi.exe.manifest + + + true + + LatestMinor - + @@ -51,6 +59,12 @@ + + + PreserveNewest + + + diff --git a/src/user-tools/midi-console/Midi/Pickers/UmpEndpointPicker.cs b/src/user-tools/midi-console/Midi/Pickers/UmpEndpointPicker.cs index ab5972c1f..e26d98b48 100644 --- a/src/user-tools/midi-console/Midi/Pickers/UmpEndpointPicker.cs +++ b/src/user-tools/midi-console/Midi/Pickers/UmpEndpointPicker.cs @@ -42,9 +42,9 @@ private static void LoadChoices(List choices) { var endpoints = MidiEndpointDeviceInformation.FindAll( MidiEndpointDeviceInformationSortOrder.Name, - MidiEndpointDeviceInformationFilters.IncludeClientByteStreamNative | - MidiEndpointDeviceInformationFilters.IncludeClientUmpNative | - MidiEndpointDeviceInformationFilters.IncludeDiagnosticLoopback); + MidiEndpointDeviceInformationFilters.StandardNativeMidi1ByteFormat | + MidiEndpointDeviceInformationFilters.StandardNativeUniversalMidiPacketFormat | + MidiEndpointDeviceInformationFilters.DiagnosticLoopback); if (endpoints != null) { diff --git a/src/user-tools/midi-console/Midi/midi.exe.manifest b/src/user-tools/midi-console/Midi/midi.exe.manifest new file mode 100644 index 000000000..444ca0b02 --- /dev/null +++ b/src/user-tools/midi-console/Midi/midi.exe.manifest @@ -0,0 +1,168 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/user-tools/midi-console/nuget.config b/src/user-tools/midi-console/nuget.config new file mode 100644 index 000000000..88bb97b4d --- /dev/null +++ b/src/user-tools/midi-console/nuget.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/src/user-tools/midi-settings/nuget.config b/src/user-tools/midi-settings/nuget.config new file mode 100644 index 000000000..88bb97b4d --- /dev/null +++ b/src/user-tools/midi-settings/nuget.config @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file